Network.py: change network interface description name to old state. (LAN connection...
[enigma2.git] / ServiceReference.py
index 78f7cc39140ad3e86e138a0c7697e6f0d1529c49..4907fa280bcf221f9238c53633349e5377e2ff98 100644 (file)
@@ -1,7 +1,4 @@
-
-from enigma import *
-
-import NavigationInstance
+from enigma import eServiceReference, eServiceCenter
 
 class ServiceReference(eServiceReference):
        def __init__(self, ref):
@@ -13,10 +10,26 @@ class ServiceReference(eServiceReference):
 
        def __str__(self):
                return self.ref.toString()
-       
+
        def getServiceName(self):
                info = self.info()
                return info and info.getName(self.ref) or ""
 
        def info(self):
                return self.serviceHandler.info(self.ref)
+
+       def list(self):
+               return self.serviceHandler.list(self.ref)
+
+       def getType(self):
+               return self.ref.type
+
+       def getPath(self):
+               return self.ref.getPath()
+
+       def getFlags(self):
+               return self.ref.flags
+
+       def isRecordable(self):
+               ref = self.ref
+               return ref.flags & eServiceReference.isGroup or (ref.type == eServiceReference.idDVB and ref.getPath() == "")
\ No newline at end of file