def __init__(self, driver, bus_name, path, com_path, aux_path, io, st_m): self.io = io(self, com_path, aux_path) self.st_m = st_m(self) self.cache = {} self.driver = driver self.path = path DbusObject.__init__(self, bus_name, path)
def __init__(self, on_system_bus=True): dbus.mainloop.glib.DBusGMainLoop(set_as_default=True) self.mainloop = gobject.MainLoop() if on_system_bus == False : self.bus_name = BusName("org.gnome.MobileManager", dbus.SessionBus()) else: self.bus_name = BusName(MM_SERVICE, dbus.SystemBus()) DbusObject.__init__(self, self.bus_name, MM_PATH)