gui/cam_menu.cpp: rework, handle mmi timeout, close menu on CI/card insert/remove

This commit is contained in:
[CST] Focus
2014-03-17 15:31:10 +04:00
parent 47609eb2f1
commit ffce0866bc
2 changed files with 77 additions and 62 deletions

View File

@@ -37,10 +37,13 @@ class CCAMMenuHandler : public CMenuTarget, public CChangeObserver
CHintBox * hintBox;
cCA *ca;
uint64_t timeoutEnd;
//int slot;
uint32_t close_timer;
int menu_slot;
int menu_type;
bool in_menu;
int doMenu(int slot, CA_SLOT_TYPE slotType);
int doMainMenu();
int handleCamMsg (const neutrino_msg_t msg, neutrino_msg_data_t data, bool from_menu = false);
int handleCamMsg (const neutrino_msg_t msg, neutrino_msg_data_t data, int &msgret, bool from_menu = false);
void hideHintBox(void);
void showHintBox(const neutrino_locale_t Caption, const char * const Text, uint32_t timeout = 0);
public: