gui/hdd_menu.cpp: convert to singleton;

add basic notify about device hotplug/remove


Origin commit data
------------------
Branch: ni/coolstream
Commit: 6be2b32cd3
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-04-23 (Wed, 23 Apr 2014)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2014-04-23 17:25:08 +04:00
parent 752b0c2a8b
commit f3ebe06962
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