aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/NimManager.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-23 10:43:12 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-23 10:43:12 +0000
commit811adc0b841cadc54fd8f07f6d0925a558684178 (patch)
tree903e5efd348503e1fb85a6ebeacc383e26f0821b /lib/python/Components/NimManager.py
parent400bd2feeb0558791604f2653919dae8db6b094c (diff)
downloadenigma2-811adc0b841cadc54fd8f07f6d0925a558684178.tar.gz
enigma2-811adc0b841cadc54fd8f07f6d0925a558684178.zip
prepare calls for linked tuners
Diffstat (limited to 'lib/python/Components/NimManager.py')
-rw-r--r--lib/python/Components/NimManager.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/python/Components/NimManager.py b/lib/python/Components/NimManager.py
index 2baf50b3..31c09446 100644
--- a/lib/python/Components/NimManager.py
+++ b/lib/python/Components/NimManager.py
@@ -321,8 +321,16 @@ class NimManager:
#callbacks for c++ config
def nimConfigModeChanged(self, slotid, mode):
- #print "nimConfigModeChanged set to " + str(mode)
- pass
+ if (mode != 1): # not linked
+ print "Unlinking slot " + str(slotid)
+ # TODO call c++ to unlink nim in slot slotid
+ if (mode == 1): # linked
+ if (len(self.getNimListOfType(self.nimType["DVB-S"], slotid)) > 0):
+ print "Linking slot " + str(slotid) + " to " + str(nimmgr.getConfigPrefix(slotid).value)
+ # TODO call c++ to link nim in slot slotid with nim in slot nimmgr.getConfigPrefix(slotid).value
+ def nimLinkedToChanged(self, slotid, val):
+ print "Linking slot " + str(slotid) + " to " + str(val)
+ # TODO call c++ to link nim in slot slotid with nim in slot val
def nimDiseqcModeChanged(self, slotid, mode):
#print "nimDiseqcModeChanged set to " + str(mode)
pass
@@ -340,7 +348,6 @@ class NimManager:
#print "nimDiseqcD set to " + str(val)
pass
-
def InitNimManager(nimmgr):
config.Nims = []
for x in range(nimmgr.nimCount):
@@ -348,6 +355,8 @@ def InitNimManager(nimmgr):
def nimConfigModeChanged(slotid, configElement):
nimmgr.nimConfigModeChanged(slotid, configElement.value)
+ def nimLinkedToChanged(slotid, configElement):
+ nimmgr.nimLinkedToChanged(slotid, configElement.value)
def nimDiseqcModeChanged(slotid, configElement):
nimmgr.nimDiseqcModeChanged(slotid, configElement.value)
@@ -388,6 +397,7 @@ def InitNimManager(nimmgr):
nim.diseqcB.addNotifier(boundFunction(nimPortBChanged,x))
nim.diseqcC.addNotifier(boundFunction(nimPortCChanged,x))
nim.diseqcD.addNotifier(boundFunction(nimPortDChanged,x))
+ nim.linkedTo.addNotifier(boundFunction(nimLinkedToChanged,x))
elif slot.nimType == nimmgr.nimType["DVB-C"]:
nim.cable = configElement(cname + "cable", configSelection, 0, nimmgr.cablesList);
elif slot.nimType == nimmgr.nimType["DVB-T"]: