Esempio n. 1
0
    def on_load(self, applet):
        self.Applet = applet

        self.agents = []
        self.last_event_time = 0

        self.agent_manager = Bluez.AgentManager()
Esempio n. 2
0
    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()
Esempio n. 3
0
    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)
Esempio n. 4
0
    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)
Esempio n. 5
0
 def unregister_agent(self):
     logging.info("Unregister Agent")
     self._unregister_object()
     bluez.AgentManager().unregister_agent(self.__agent_path)
Esempio n. 6
0
 def register_agent(self):
     logging.info("Register Agent")
     self._register_object()
     bluez.AgentManager().register_agent(self.__agent_path,
                                         "KeyboardDisplay",
                                         default=True)
Esempio n. 7
0
 def __del__(self):
     dprint()
     Bluez.AgentManager().unregister_agent(self)