1 from Components.Sources.TunerInfo import TunerInfo as TunerInfoSource
2 from Components.Converter.Converter import Converter
3 from Components.Element import cached
5 class TunerInfo(Converter, object):
6 def __init__(self, type):
7 Converter.__init__(self, type)
9 "TunerUseMask": TunerInfoSource.FE_USE_MASK
14 if self.type == TunerInfoSource.FE_USE_MASK:
15 return self.source.getTunerUseMask() and True or False
16 boolean = property(getBoolean)
20 if self.type == TunerInfoSource.FE_USE_MASK:
21 return str(self.source.getTunerUseMask())
23 text = property(getText)
27 if self.type == TunerInfoSource.FE_USE_MASK:
28 return self.source.getTunerUseMask()
30 value = property(getValue)
32 def changed(self, what):
33 if what[0] != self.CHANGED_SPECIFIC or what[1] == self.type:
34 Converter.changed(self, what)