+
+ @cached
+ def getText(self):
+ service = self.source.service
+ info = service and service.info()
+ if not info:
+ return ""
+
+ if self.type == self.XRES:
+ return self.getServiceInfoString(info, iServiceInformation.sVideoWidth)
+ if self.type == self.YRES:
+ return self.getServiceInfoString(info, iServiceInformation.sVideoHeight)
+ return ""
+
+ text = property(getText)
+
+ @cached
+ def getValue(self):
+ service = self.source.service
+ info = service and service.info()
+ if not info:
+ return -1
+
+ if self.type == self.XRES:
+ return info.getInfo(iServiceInformation.sVideoWidth)
+ if self.type == self.YRES:
+ return info.getInfo(iServiceInformation.sVideoHeight)
+
+ return -1
+
+ value = property(getValue)