gui/hdd_menu.cpp: convert to singleton;

add basic notify about device hotplug/remove


Origin commit data
------------------
Commit: 6be2b32cd3
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-04-23 (Wed, 23 Apr 2014)
This commit is contained in:
[CST] Focus
2014-04-23 17:25:08 +04:00
parent ad84a6225a
commit 0b24eecd2e
4 changed files with 66 additions and 8 deletions

View File

@@ -421,7 +421,7 @@ void CNeutrinoApp::InitMenuSettings()
// drive settings
if (g_settings.recording_type != CNeutrinoApp::RECORDING_OFF) {
mf = new CMenuForwarder(LOCALE_HDD_SETTINGS, true, NULL, new CHDDMenuHandler());
mf = new CMenuForwarder(LOCALE_HDD_SETTINGS, true, NULL, CHDDMenuHandler::getInstance());
mf->setHint(NEUTRINO_ICON_HINT_HDD, LOCALE_MENU_HINT_HDD);
personalize.addItem(MENU_SETTINGS, mf, &g_settings.personalize[SNeutrinoSettings::P_MSET_DRIVES]);
}