First attempt at satellite monitor
[gregoa/zavai.git] / src / zavai.vala
index 3a92d78c1958e6ca92d12b6eb05eed0c7bae40bd..38b9c240c7c6dd3cd82b1705222a3c35a090d1b6 100644 (file)
@@ -22,6 +22,11 @@ using GLib;
 
 //string VERSION = "0.1";
 
+void on_alarm()
+{
+       stderr.printf("RETURNED\n");
+}
+
 static int main (string[] args) {
        Gtk.init (ref args);
 
@@ -90,6 +95,22 @@ static int main (string[] args) {
        // app.connect("destroy", gtk.main_quit)
        // app.run()
 
+/*
+       dynamic DBus.Object otime = zavai.registry.sbus.get_object(
+                       "org.freesmartphone.otimed",
+                       "/org/freesmartphone/Time/Alarm",
+                       "org.freesmartphone.Time.Alarm");
+
+       otime.ClearAlarm();
+       otime.SetAlarm(time_t() + 10);
+
+       dynamic DBus.Object notification = zavai.registry.sbus.get_object(
+                       "org.freesmartphone",
+                       "org/freesmartphone/Notification",
+                       "org.freesmartphone.Notification");
+       notification.Alarm += on_alarm;
+*/
+
        zavai.app.run();
        Gtk.main();
        //registry.loop.run();