add dynamic m3u playlist
[enigma2.git] / RecordTimer.py
index 839069acd62e6e6521f61ff1a7b4c5101fdc32e0..8689c056b3ca42aece66e2f7badf05ee90aaa674 100644 (file)
@@ -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 finished record timer wants 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 finished record timer wants 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