diff options
Diffstat (limited to 'lib/python/Components/Sources/CurrentService.py')
| -rw-r--r-- | lib/python/Components/Sources/CurrentService.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/python/Components/Sources/CurrentService.py b/lib/python/Components/Sources/CurrentService.py new file mode 100644 index 00000000..bec6d2dc --- /dev/null +++ b/lib/python/Components/Sources/CurrentService.py @@ -0,0 +1,22 @@ +from Components.PerServiceDisplay import PerServiceBase +from enigma import iPlayableService +from Source import Source + +class CurrentService(PerServiceBase, Source): + def __init__(self, navcore): + Source.__init__(self) + PerServiceBase.__init__(self, navcore, + { + iPlayableService.evStart: self.changed, + iPlayableService.evEnd: self.changed + }) + self.navcore = navcore + + def getCurrentService(self): + service = self.navcore.getCurrentService() + return service + + def stopEvent(self): + self.changed() + + service = property(getCurrentService) |
