Fix method signatures
authorEnrico Zini <enrico@enricozini.org>
Fri, 26 Mar 2010 17:14:28 +0000 (17:14 +0000)
committerEnrico Zini <enrico@enricozini.org>
Fri, 26 Mar 2010 17:14:28 +0000 (17:14 +0000)
test/test-gsm-receive.vala

index 2d8a9632afadfe07ae24856d0a6515367a0b7636..0c1a19c601775f10c3425a98926e32576581597b 100644 (file)
@@ -49,10 +49,6 @@ public class GSMReceive: Object //, zavai.Resource
                 "/org/freesmartphone/GSM/Device",
                 "org.freesmartphone.GSM.Call");
 
-       stderr.printf("Registering\n");
-       network.Register();
-       stderr.printf("Registered\n");
-
        stderr.printf("Antenna is %s\n", device.GetAntennaPower() ? "on" : "off");
        stderr.printf("Signal strength: %d\n", network.GetSignalStrength());
        stderr.printf("Calling identification: %s\n", network.GetCallingIdentification());
@@ -67,19 +63,19 @@ public class GSMReceive: Object //, zavai.Resource
         //zavai.gsm.gsm.release("GSMReceive");
     }
 
-    public void on_network_SignalStrength(int strength)
+    public void on_network_SignalStrength(DBus.Object sender, int strength)
     {
         stderr.printf("SIGNAL STRENGTH %d\n", strength);
     }
 
-    public void on_network_Status(GLib.HashTable<string, GLib.Value?> status)
+    public void on_network_Status(DBus.Object sender, HashTable<string, Value?> status)
     {
         stderr.printf("NETWORK STATUS\n");
 
         // dbg("cbNetworkStatus %s" % formatDict(status))
     }
 
-    public void on_call_Status(int index, string status, GLib.HashTable<string, GLib.Value?> properties)
+    public void on_call_Status(DBus.Object sender, int index, string status, HashTable<string, Value?> properties)
     {
         stderr.printf("CALL STATUS %d %s\n", index, status);
         /*