1 from enigma import eServiceReference, eServiceCenter
3 import NavigationInstance
5 class ServiceReference(eServiceReference):
6 def __init__(self, ref):
7 if not isinstance(ref, eServiceReference):
8 self.ref = eServiceReference(ref or "")
11 self.serviceHandler = eServiceCenter.getInstance()
14 return self.ref.toString()
16 def getServiceName(self):
18 return info and info.getName(self.ref) or ""
21 return self.serviceHandler.info(self.ref)
24 return self.serviceHandler.list(self.ref)