4 import NavigationInstance
6 class ServiceReference(eServiceReference):
7 def __init__(self, ref):
8 if isinstance(ref, str):
9 ref = eServiceReference(ref)
12 def getStaticServiceInformation(self):
13 info = iStaticServiceInformationPtr()
14 if NavigationInstance.instance.ServiceHandler.info(self.ref, info):
19 return self.ref.toString()
21 def getServiceName(self):
22 info = self.getStaticServiceInformation()
26 return info.getName(self.ref)