X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FSources%2FHbbtvApplication.py;fp=lib%2Fpython%2FComponents%2FSources%2FHbbtvApplication.py;h=211e87f8a2db3ee612bc30e57b9332f8b87e1745;hp=0000000000000000000000000000000000000000;hb=0da688aba6cca5cc5b0b4406e384fa9e3345859c;hpb=051b4649736508a7a5ee64442f4ffa80b66f93e3 diff --git a/lib/python/Components/Sources/HbbtvApplication.py b/lib/python/Components/Sources/HbbtvApplication.py new file mode 100644 index 0000000..211e87f --- /dev/null +++ b/lib/python/Components/Sources/HbbtvApplication.py @@ -0,0 +1,25 @@ +from Source import Source +from Components.Element import cached + +class HbbtvApplication(Source): + def __init__(self): + Source.__init__(self) + self._available = False + self._appname = "" + + def setApplicationName(self, name): + self._appname = name + self._available = False + if name is not None and name != "": + self._available = True + self.changed((self.CHANGED_ALL,)) + + @cached + def getBoolean(self): + return self._available + boolean = property(getBoolean) + + @cached + def getName(self): + return self._appname + name = property(getName)