aboutsummaryrefslogtreecommitdiff
path: root/timer.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-01-15 21:38:30 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-01-15 21:38:30 +0000
commit2d5b15f3ca1f7f92f949906d0199f9266d845e31 (patch)
treea734ea33ab1843988fc66451490eb8c008b06630 /timer.py
parent6fcea8c27cd8d20c01136774569c34842e9cbb4a (diff)
downloadenigma2-2d5b15f3ca1f7f92f949906d0199f9266d845e31.tar.gz
enigma2-2d5b15f3ca1f7f92f949906d0199f9266d845e31.zip
update timerlist when timerstate changes
Diffstat (limited to 'timer.py')
-rw-r--r--timer.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/timer.py b/timer.py
index 7123a84a..9fa0ab2a 100644
--- a/timer.py
+++ b/timer.py
@@ -53,6 +53,9 @@ class TimerEntry:
print time.strftime("%c", time.localtime(self.end))
self.begin += 86400
self.end += 86400
+
+ self.timeChanged()
+
def __lt__(self, o):
return self.getNextActivation() < o.getNextActivation()
@@ -102,9 +105,11 @@ class Timer:
self.lastActivation = time.time()
self.calcNextActivation()
+ self.on_state_change = [ ]
def stateChanged(self, entry):
- pass
+ for f in self.on_state_change:
+ f(entry)
def addTimerEntry(self, entry, noRecalc=0):
entry.processRepeated()