Implemented a sorted alarm list
[gregoa/zavai.git] / src / zavai.vala
index 9672ec97ea921ca33158ea48dd51725ebcea9199..7a799533e897b2d6de4c3ea36956a8baf79474e3 100644 (file)
@@ -58,6 +58,11 @@ static int main (string[] args) {
        zavai.gps.init();
        zavai.clock.init();
 
+       zavai.clock.clock.schedule(new zavai.clock.Alarm(123456, "Second"));
+       zavai.clock.clock.schedule(new zavai.clock.Alarm(1234567, "Third"));
+       zavai.clock.clock.schedule(new zavai.clock.Alarm(12345, "First"));
+       zavai.clock.clock.check_alarms();
+
        zavai.registry.register_menu("menu.main", new zavai.Menu("Main menu"));
 
        // User interface