-}
-
-int eDVBCI_UI::availableMMI(int slot)
-{
- return mmiScreenReady;
-}
-
-int eDVBCI_UI::mmiScreenEnq(int slot, int blind, int answerLen, char *text)
-{
- mmiScreenReady = 0;
-
- mmiScreen = PyList_New(2);
-
- PyObject *tuple = PyTuple_New(1);
- PyTuple_SetItem(tuple, 0, PyString_FromString("ENQ"));
- PyList_SetItem(mmiScreen, 0, tuple);
-
- tuple = PyTuple_New(4);
-
- PyTuple_SetItem(tuple, 0, PyString_FromString("PIN"));
- PyTuple_SetItem(tuple, 1, PyInt_FromLong(answerLen));
- PyTuple_SetItem(tuple, 2, PyString_FromString(text));
- PyTuple_SetItem(tuple, 3, PyInt_FromLong(blind));
- PyList_SetItem(mmiScreen, 1, tuple);
-
- mmiScreenReady = 1;
-
- return 0;
-}
-
-int eDVBCI_UI::mmiScreenBegin(int slot, int listmenu)
-{
- printf("eDVBCI_UI::mmiScreenBegin\n");
-
- mmiScreenReady = 0;
-
- mmiScreen = PyList_New(1);
-
- PyObject *tuple = PyTuple_New(1);
- if(listmenu == 0) //menu
- PyTuple_SetItem(tuple, 0, PyString_FromString("MENU"));
- else //list
- PyTuple_SetItem(tuple, 0, PyString_FromString("LIST"));
-
- PyList_SetItem(mmiScreen, 0, tuple);
-
- mmiTuplePos = 1;
-
- return 0;
-}
-
-int eDVBCI_UI::mmiScreenAddText(int slot, int type, char *value)
-{
- printf("eDVBCI_UI::mmiScreenAddText(%s)\n",value);
-
- PyObject *tuple = PyTuple_New(3);
-
- if(type == 0) //title
- PyTuple_SetItem(tuple, 0, PyString_FromString("TITLE"));
- else if(type == 1) //subtitle
- PyTuple_SetItem(tuple, 0, PyString_FromString("SUBTITLE"));
- else if(type == 2) //bottom
- PyTuple_SetItem(tuple, 0, PyString_FromString("BOTTOM"));
- else
- PyTuple_SetItem(tuple, 0, PyString_FromString("TEXT"));
-
- printf("addText %s with id %d\n", value, type);
-
- PyTuple_SetItem(tuple, 1, PyString_FromString(value));
-
- if(type > 2)
- PyTuple_SetItem(tuple, 2, PyInt_FromLong(type-2));
- else
- PyTuple_SetItem(tuple, 2, PyInt_FromLong(-1));
-
- PyList_Append(mmiScreen, tuple);
-
- return 0;
-}
-
-int eDVBCI_UI::mmiScreenFinish(int slot)
-{
- printf("eDVBCI_UI::mmiScreenFinish\n");
-
- mmiScreenReady = 1;
-