def on_load(self, applet): self.Applet = applet self.agents = [] self.last_event_time = 0 self.agent_manager = Bluez.AgentManager()
def on_load(self, applet): self.Applet = applet self.add_dbus_method(self.SetTimeHint, in_signature="u") self.agents = [] self.last_event_time = 0 self.agent_manager = Bluez.AgentManager()
def __init__(self, status_icon, time_func): Agent.__init__(self, '/org/blueman/agent/bluez_agent') GObject.GObject.__init__(self) self.status_icon = status_icon self.dialog = None self.n = None self.time_func = time_func Bluez.AgentManager().register_agent(self, "KeyboardDisplay", default=True)
def __init__(self, status_icon, time_func): super(BluezAgent, self).__init__(self.__agent_path) self.status_icon = status_icon self.dialog = None self.n = None self.signal_id = None self.time_func = time_func Bluez.AgentManager().register_agent(self.__agent_path, "KeyboardDisplay", default=True)
def unregister_agent(self): logging.info("Unregister Agent") self._unregister_object() bluez.AgentManager().unregister_agent(self.__agent_path)
def register_agent(self): logging.info("Register Agent") self._register_object() bluez.AgentManager().register_agent(self.__agent_path, "KeyboardDisplay", default=True)
def __del__(self): dprint() Bluez.AgentManager().unregister_agent(self)