- add opera browser.(with hbbtv)
[vuplus_dvbapp] / lib / python / Components / Converter / HbbtvApplicationInfo.py
1 from Components.Converter.Converter import Converter
2 from Components.Element import cached
3
4 class HbbtvApplicationInfo(Converter, object):
5         NAME = 0
6
7         def __init__(self, type):
8                 Converter.__init__(self, type)
9                 self.type = ""
10                 if type == "Name":
11                         self.type = self.NAME
12
13         @cached
14         def getText(self):
15                 if self.type == self.NAME:
16                         return self.source.name
17                 else:
18                         return ""
19
20         text = property(getText)