diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-07 01:28:51 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-01-07 01:28:51 +0000 |
| commit | b58a0fa7cab89937586e2d08d79274fab3f14edc (patch) | |
| tree | 68d9d4078f46ffb280272c3678fea5c087c9a71d /RecordTimer.py | |
| parent | 674719294af7449c52d93b1969aeebbaa9117cbe (diff) | |
| download | enigma2-b58a0fa7cab89937586e2d08d79274fab3f14edc.tar.gz enigma2-b58a0fa7cab89937586e2d08d79274fab3f14edc.zip | |
ask user before a recordtimer set the box to standby or deepstandby
Diffstat (limited to 'RecordTimer.py')
| -rw-r--r-- | RecordTimer.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/RecordTimer.py b/RecordTimer.py index 839069ac..a380d67c 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -215,13 +215,21 @@ class RecordTimerEntry(timer.TimerEntry): if self.afterEvent == AFTEREVENT.STANDBY: global inStandby if not inStandby: - Notifications.AddNotification(Standby) + Notifications.AddNotificationWithCallback(self.sendStandbyNotification, MessageBox, _("A record timer want's to set your\nDreambox to standby. Do that now?"), timeout = 20) if self.afterEvent == AFTEREVENT.DEEPSTANDBY: global inTryQuitMainloop if not inTryQuitMainloop: - Notifications.AddNotification(TryQuitMainloop, 1) + Notifications.AddNotificationWithCallback(self.sendTryQuitMainloopNotification, MessageBox, _("A record timer want's to shut down\nyour Dreambox. Shutdown now?"), timeout = 20) return True + def sendStandbyNotification(self, answer): + if answer: + Notifications.AddNotification(Standby) + + def sendTryQuitMainloopNotification(self, answer): + if answer: + Notifications.AddNotification(TryQuitMainloop, 1) + def getNextActivation(self): if self.state == self.StateEnded: return self.end |
