Show registration type
[gregoa/zavai.git] / src / gsm.vala
index 19a854da04554e5fb56391cd120b274619e19c41..841b995e042a02d4f5bbdc906c9cb6a6a83bc721 100644 (file)
@@ -133,6 +133,7 @@ public class GSM: zavai.ScriptMonitorService
     protected List<CallInfo> calls;
 
     public string info_provider;
+    public string info_registration;
     public int info_signal_strength;
 
     public signal void status_changed(string message);
@@ -165,7 +166,16 @@ public class GSM: zavai.ScriptMonitorService
             if (info_provider != vprovider.get_string())
             {
                 info_provider = vprovider.get_string();
-stderr.printf("ACQUIRE PROV %s\n", info_provider);
+                changed = true;
+            }
+        }
+
+        var vregistration = status.lookup("registration");
+        if (vregistration != null)
+        {
+            if (info_registration != vregistration.get_string())
+            {
+                info_registration = vregistration.get_string();
                 changed = true;
             }
         }