7 #define _POSIX_C_SOURCE 200112L
8 #include <lib/python/python.h>
21 class eMMI_UI: public Object
24 virtual void stateChanged(int)=0;
26 slot_ui_data *slotdata;
27 eMMI_UI(int max_slots);
30 int getState(int slot);
31 void setState(int slot, int state);
32 std::string getAppName(int slot);
33 void setAppName(int slot, const char *name);
35 virtual void setInit(int slot)=0;
36 virtual void setReset(int slot)=0;
37 virtual int startMMI(int slot)=0;
38 virtual int stopMMI(int slot)=0;
39 virtual int answerMenu(int slot, int answer)=0;
40 virtual int answerEnq(int slot, char *val)=0;
41 virtual int cancelEnq(int slot)=0;
42 virtual int getMMIState(int slot)=0;
44 int availableMMI(int slot);
45 PyObject *getMMIScreen(int slot);
47 int processMMIData(int slot, const unsigned char *tag, const void *data, int len);
48 int mmiScreenClose(int slot, int timeout);
49 int mmiScreenEnq(int slot, int blind, int answerLen, char *text);
50 int mmiScreenBegin(int slot, int listmenu);
51 int mmiScreenAddText(int slot, int type, char *value);
52 int mmiScreenFinish(int slot);
53 void mmiSessionDestroyed(int slot);