- add opera browser.(with hbbtv)
[vuplus_dvbapp] / lib / python / Components / Converter / HbbtvApplicationInfo.py
diff --git a/lib/python/Components/Converter/HbbtvApplicationInfo.py b/lib/python/Components/Converter/HbbtvApplicationInfo.py
new file mode 100644 (file)
index 0000000..4f20c6f
--- /dev/null
@@ -0,0 +1,20 @@
+from Components.Converter.Converter import Converter
+from Components.Element import cached
+
+class HbbtvApplicationInfo(Converter, object):
+       NAME = 0
+
+       def __init__(self, type):
+               Converter.__init__(self, type)
+               self.type = ""
+               if type == "Name":
+                       self.type = self.NAME
+
+       @cached
+       def getText(self):
+               if self.type == self.NAME:
+                       return self.source.name
+               else:
+                       return ""
+
+       text = property(getText)
\ No newline at end of file