1 from Screens.Ci import MMIDialog
2 from enigma import eTimer, eSocket_UI
4 class SocketMMIMessageHandler:
8 self.handler = eSocket_UI.getInstance()
9 self.handler.socketStateChanged.get().append(self.socketStateChanged)
11 def setSession(self, session):
12 self.session = session
15 return self.handler.getState(0)
18 return self.handler.getName(0)
22 self.dlgs[slot] = self.session.openWithCallback(self.dlgClosed, MMIDialog, slot, 2, self.handler, _("wait for mmi..."))
24 def socketStateChanged(self, slot):
26 self.dlgs[slot].ciStateChanged()
27 elif self.handler.availableMMI(slot) == 1:
29 self.dlgs[slot] = self.session.openWithCallback(self.dlgClosed, MMIDialog, slot, 3, self.handler, _("wait for mmi..."))
31 def dlgClosed(self, slot):