1 from enigma import eTimer
5 self.__poll_timer = eTimer()
6 self.__poll_timer.callback.append(self.poll)
10 def __setInterval(self, interval):
11 self.__interval = interval
13 self.__poll_timer.start(self.__interval)
15 self.__poll_timer.stop()
17 def __setEnable(self, enabled):
18 self.__enabled = enabled
19 self.poll_interval = self.__interval
21 poll_interval = property(lambda self: self.__interval, __setInterval)
22 poll_enabled = property(lambda self: self.__enabled, __setEnable)
25 self.changed((self.CHANGED_POLL,))
27 def doSuspend(self, suspended):
30 self.__poll_timer.stop()
33 self.poll_enabled = True
36 self.__poll_timer.callback.remove(self.poll)