Example #1
0
 def stop(self):
     """
     Stop handling keys
     """
     logger.info("Stopping key handler for %s", self.__screen.device.uid)
     g15scheduler.stop_queue(self.queue_name)
     if self in self.__screen.screen_change_listeners:
         self.__screen.screen_change_listeners.remove(self)
     if self._profile_changed in g15profile.profile_listeners:
         g15profile.profile_listeners.remove(self._profile_changed)
     for h in self.__notify_handles:
         self.__conf_client.notify_remove(h)
     self.__notify_handles = []
     logger.info("Stopped key handler for %s", self.__screen.device.uid)
Example #2
0
 def stop(self):
     """
     Stop handling keys
     """
     logger.info("Stopping key handler for %s", self.__screen.device.uid)
     g15scheduler.stop_queue(self.queue_name)
     if self in self.__screen.screen_change_listeners:
         self.__screen.screen_change_listeners.remove(self)
     if self._profile_changed in g15profile.profile_listeners:
         g15profile.profile_listeners.remove(self._profile_changed)
     for h in self.__notify_handles:
         self.__conf_client.notify_remove(h)
     self.__notify_handles = []
     logger.info("Stopped key handler for %s", self.__screen.device.uid)
Example #3
0
 def shutdown(self, quickly=False):
     logger.info("Shutting down")
     self.shutting_down = True
     if self.global_plugins is not None:
         self.global_plugins.destroy()
     self.stop(quickly)
     g15scheduler.stop_queue(MACRO_HANDLER_QUEUE)
     g15scheduler.stop_queue(SERVICE_QUEUE)
     logger.info("Stopping all schedulers")
     g15scheduler.stop_all_schedulers()
     for listener in self.service_listeners:
         listener.service_stopped()
     logger.info("Quiting loop")
     self.loop.quit()
     logger.info("Stopping DBus service")
     self.dbus_service.stop()
Example #4
0
 def shutdown(self, quickly = False):
     logger.info("Shutting down")
     self.shutting_down = True
     if self.global_plugins is not None:
         self.global_plugins.destroy()
     self.stop(quickly)
     g15scheduler.stop_queue(MACRO_HANDLER_QUEUE)
     g15scheduler.stop_queue(SERVICE_QUEUE)
     logger.info("Stopping all schedulers")
     g15scheduler.stop_all_schedulers()
     for listener in self.service_listeners:
         listener.service_stopped()
     logger.info("Quiting loop")
     self.loop.quit()
     logger.info("Stopping DBus service")
     self.dbus_service.stop()