store and use previous selected audio pid
[enigma2.git] / lib / dvb_ci / dvbci_ui.h
1 #ifndef __dvbci_ui_h
2 #define __dvbci_ui_h
3
4 #include <string>
5 #include <Python.h>
6
7 #define MAX_SLOTS       2       
8
9 class eDVBCI_UI
10 {
11         int state[MAX_SLOTS];
12         static eDVBCI_UI *instance;
13         std::string appName;
14 #ifdef SWIG
15         eDVBCI_UI();
16         ~eDVBCI_UI();
17 #endif
18 public:
19 #ifndef SWIG
20         eDVBCI_UI();
21         ~eDVBCI_UI();
22 #endif
23         static eDVBCI_UI *getInstance();
24         
25         int getState(int slot);
26         void setState(int slot, int state);
27         std::string getAppName(int slot);
28         void setAppName(int slot, const char *name);
29         void setReset(int slot);
30         int initialize(int slot);
31         int startMMI(int slot);
32         int stopMMI(int slot);
33         int availableMMI(int slot);
34         int getMMIState(int slot);
35
36         int answerMenu(int slot, int answer);
37         int answerEnq(int slot, char *val);
38         int cancelEnq(int slot);
39
40         PyObject *eDVBCI_UI::getMMIScreen(int slot);
41         PyObject *mmiScreen;
42         int mmiTuplePos;
43         int mmiScreenReady;
44
45         int mmiScreenEnq(int slot, int blind, int answerLen, char *text);
46         int mmiScreenBegin(int slot, int listmenu);
47         int mmiScreenAddText(int slot, int type, char *value);
48         int mmiScreenFinish(int slot);
49 };
50
51 #endif