6 import dbus.mainloop.glib
8 def property_changed(name, value):
9 if name in ["Profiles", "Services", "Providers", "Technologies",
10 "Devices", "Networks"]:
13 val = val + " " + i[i.rfind("/") + 1:]
15 elif name in ["AvailableTechnologies", "EnabledTechnologies",
16 "ConnectedTechnologies",
17 "AvailableDebugs", "EnabledDebugs"]:
22 elif name in ["Strength", "Priority"]:
26 print "%s = %s" % (name, val)
28 if __name__ == '__main__':
29 dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
31 bus = dbus.SystemBus()
33 bus.add_signal_receiver(property_changed,
34 bus_name="org.moblin.connman",
35 dbus_interface="org.moblin.connman.Manager",
36 signal_name = "PropertyChanged")
38 mainloop = gobject.MainLoop()