patch by Moritz Venn: allow plugins to provide a Wakeup-Time
[enigma2.git] / lib / python / Components / PluginComponent.py
index 590f428..818ea58 100644 (file)
@@ -116,4 +116,12 @@ class PluginComponent:
        def resetWarnings(self):
                self.warnings = [ ]
 
+       def getNextWakeupTime(self):
+               wakeup = -1
+               for p in self.pluginList:
+                       current = p.getWakeupTime()
+                       if current > -1 and wakeup < current:
+                               wakeup = current
+               return int(wakeup)
+
 plugins = PluginComponent()