Added configuration and logging for lightcontrol
[wakeup.git] / src / event.h
index ab1214e..b4cdd27 100644 (file)
@@ -1,12 +1,15 @@
 
+#include <list>
+#include <xml.h>
+#include <date.h>
 
 #include "action.h"
 
 class Event
 {
-   String            label;
-   date              start_time;
-   std::list<Action> sequence;
+   String              label;
+   UTC                 start_time;
+   std::list<Action *> sequence;
 
 public:
 
@@ -15,5 +18,11 @@ public:
       label = lbl;
    }
 
-   void FromXML(xmlnode x);
-}
+   void   FromXML(xml_element x);
+   String ToXML(void);
+
+   void  add_action(String command);
+};
+
+std::list<Event> read_alarms(const char *filename);
+String alarms_to_XML(std::list<Event> alarms);