示例#1
0
 def disableDeviceNotification(self, dev_id):
     sc = SCODCache()
     return sc.add_to_ddn(self._dbus_array_to_list(dev_id))
示例#2
0
 def enableDeviceNotification(self, dev_id):
     sc = SCODCache()
     return sc.del_from_ddn(dev_id)
示例#3
0
文件: scoddevice.py 项目: elemc/scod
 def _init_cache(self):
     sc = SCODCache()
     self.disabled_devices = sc.read_ddn()