aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/NimManager.py
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-09-08 12:43:12 +0200
committerghost <andreas.monzner@multimedia-labs.de>2009-09-08 12:43:12 +0200
commitb4785c62f2771c07d987e9a3e69bcfe4ce9c397f (patch)
tree981ad9fb88380170d2bf244b4e524ee804776f8b /lib/python/Components/NimManager.py
parentfb0f569733c71a83f0c73a518f8aead20af23513 (diff)
parentcfeea5d7bda036654206eefdb2ae96b03bd31969 (diff)
downloadenigma2-b4785c62f2771c07d987e9a3e69bcfe4ce9c397f.tar.gz
enigma2-b4785c62f2771c07d987e9a3e69bcfe4ce9c397f.zip
Merge branch 'master' of git.opendreambox.org:/git/enigma2
Diffstat (limited to 'lib/python/Components/NimManager.py')
-rw-r--r--lib/python/Components/NimManager.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py
index c278213c..70cde47c 100644
--- a/lib/python/Components/NimManager.py
+++ b/lib/python/Components/NimManager.py
@@ -759,6 +759,22 @@ class NimManager:
def getSatList(self):
return self.satList
+
+ # returns True if something is configured to be connected to this nim
+ # if slotid == -1, returns if something is connected to ANY nim
+ def somethingConnected(self, slotid = -1):
+ if (slotid == -1):
+ connected = False
+ for id in range(self.getSlotCount()):
+ if self.somethingConnected(id):
+ connected = True
+ return connected
+ else:
+ nim = config.Nims[slotid]
+ configMode = nim.configMode.value
+
+ if self.nim_slots[slotid].isCompatible("DVB-S") or self.nim_slots[slotid].isCompatible("DVB-T") or self.nim_slots[slotid].isCompatible("DVB-C"):
+ return not (configMode == "nothing")
def getSatListForNim(self, slotid):
list = []