def __init__(self, sony_av_indicator, device_service, state_service, command_service):
threading.Thread.__init__(self)
self.sony_av_indicator = sony_av_indicator
self.device_service = device_service
self.state_service = state_service
self.command_service = command_service
self.properties = {
ROOT_INTERFACE: self._get_root_iface_properties(),
PLAYER_INTERFACE: self._get_player_iface_properties()
}
self.main_loop = dbus.mainloop.glib.DBusGMainLoop(set_as_default = True)
# self.main_loop = GObject.MainLoop()
self.bus = dbus.SessionBus(mainloop = self.main_loop)
self.bus_name = self._connect_to_dbus()
dbus.service.Object.__init__(self, self.bus_name, OBJECT_PATH)
评论列表
文章目录