fix possible crash on task abort and work with new getCD return value
[enigma2.git] / lib / dvb_ci / dvbci_ui.h
1 #ifndef __dvbci_ui_h
2 #define __dvbci_ui_h
3
4 #include <string>
5 #include <lib/mmi/mmi_ui.h>
6 #include <lib/python/connections.h>
7
8 class eDVBCI_UI: public eMMI_UI
9 {
10         static eDVBCI_UI *instance;
11 #ifdef SWIG
12         eDVBCI_UI();
13 #endif
14         void stateChanged(int val) { ciStateChanged(val); }
15 public:
16         PSignal1<void,int> ciStateChanged;
17 #ifndef SWIG
18         eDVBCI_UI();
19 #endif
20         static eDVBCI_UI *getInstance();
21         void setInit(int slot);
22         void setReset(int slot);
23         int startMMI(int slot);
24         int stopMMI(int slot);
25         int getMMIState(int slot);
26         int answerMenu(int slot, int answer);
27         int answerEnq(int slot, char *val);
28         int cancelEnq(int slot);
29 };
30
31 #endif