gui/hdd_menu.cpp: convert to singleton;

add basic notify about device hotplug/remove
This commit is contained in:
[CST] Focus
2014-04-23 17:25:08 +04:00
parent bc5b5dd7f3
commit 6be2b32cd3
4 changed files with 66 additions and 8 deletions

View File

@@ -88,12 +88,16 @@ class CHDDMenuHandler : public CMenuTarget
int checkDevice(std::string dev);
int formatDevice(std::string dev);
void showError(neutrino_locale_t err);
CHDDMenuHandler();
public:
CHDDMenuHandler();
~CHDDMenuHandler();
int exec( CMenuTarget* parent, const std::string &actionkey);
int doMenu();
static CHDDMenuHandler* getInstance();
int exec( CMenuTarget* parent, const std::string &actionkey);
int doMenu();
int filterDevName(const char * name);
int handleMsg(const neutrino_msg_t _msg, neutrino_msg_data_t data);
};
#endif