diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/Ci.py | 12 | ||||
| -rw-r--r-- | lib/python/enigma_python.i | 2 |
2 files changed, 9 insertions, 5 deletions
diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py index ecc56044..9bf5b168 100644 --- a/lib/python/Screens/Ci.py +++ b/lib/python/Screens/Ci.py @@ -209,11 +209,10 @@ class CiMmi(Screen): #mmi session still active ? if eDVBCI_UI.getInstance().getMMIState(self.slotid) != 1: self.closeMmi() - - #new screen available? + if eDVBCI_UI.getInstance().availableMMI(self.slotid) == 1: self.showScreen() - + #FIXME: check for mmi-session closed class CiSelection(Screen): @@ -258,7 +257,10 @@ class CiSelection(Screen): def cancel(self): self.Timer.stop() self.close() - + + def mmiAvail(self, slot): + print "mmi avail slot", slot + def __init__(self, session): #FIXME support for one ci only Screen.__init__(self, session) @@ -276,3 +278,5 @@ class CiSelection(Screen): self.Timer = eTimer() self.Timer.timeout.get().append(self.TimerCheck) self.Timer.start(1000) + + eDVBCI_UI.getInstance().mmiAvail.get().append(self.mmiAvail) diff --git a/lib/python/enigma_python.i b/lib/python/enigma_python.i index 0ca55bb9..21f2b2ec 100644 --- a/lib/python/enigma_python.i +++ b/lib/python/enigma_python.i @@ -142,7 +142,6 @@ typedef long time_t; %template(eServiceCenterPtr) ePtr<eServiceCenter>; %include <lib/service/event.h> - // TODO: embed these... %immutable eConsoleAppContainer::appClosed; %immutable eConsoleAppContainer::dataAvail; @@ -153,6 +152,7 @@ typedef long time_t; %immutable eComponentScan::newService; %immutable pNavigation::m_event; %immutable eListbox::selectionChanged; +%immutable eDVBCI_UI::mmiAvail; %include <lib/base/console.h> %include <lib/base/nconfig.h> |
