7 import dbus.mainloop.glib
9 class Agent(dbus.service.Object):
10 @dbus.service.method("org.moblin.connman.Agent",
11 in_signature='', out_signature='')
16 if __name__ == '__main__':
17 dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
19 bus = dbus.SystemBus()
20 manager = dbus.Interface(bus.get_object('org.moblin.connman', "/"),
21 'org.moblin.connman.Manager')
24 object = Agent(bus, path)
26 manager.RegisterAgent(path)
28 mainloop = gobject.MainLoop()
31 #manager.UnregisterAgent(path)