gui/user_menue.cpp: add network settings and software update as user-menu items

This commit is contained in:
[CST] Focus
2014-10-16 13:40:10 +04:00
parent 37891d2de3
commit 5d6ea715d8
3 changed files with 19 additions and 2 deletions

View File

@@ -67,6 +67,9 @@
#include <mymenu.h>
#include <gui/widget/icons.h>
#include <gui/network_setup.h>
#include <gui/update_menue.h>
#include <gui/hdd_menu.h>
#include <driver/radiotext.h>
#include <driver/record.h>
@@ -406,9 +409,19 @@ bool CUserMenu::showUserMenu(neutrino_msg_t msg)
break;
case SNeutrinoSettings::ITEM_HDDMENU:
keyhelper.get(&key,&icon);
menu_item = new CMenuForwarder(LOCALE_HDD_SETTINGS, true, NULL, neutrino, "hddmenu", key, icon);
menu_item = new CMenuForwarder(LOCALE_HDD_SETTINGS, true, NULL, CHDDMenuHandler::getInstance(), NULL, key, icon);
menu_item->setHint(NEUTRINO_ICON_HINT_HDD, LOCALE_MENU_HINT_HDD);
break;
case SNeutrinoSettings::ITEM_NETSETTINGS:
keyhelper.get(&key,&icon);
menu_item = new CMenuForwarder(LOCALE_MAINSETTINGS_NETWORK, true, NULL, CNetworkSetup::getInstance(), NULL, key, icon);
menu_item->setHint(NEUTRINO_ICON_HINT_NETWORK, LOCALE_MENU_HINT_NETWORK);
break;
case SNeutrinoSettings::ITEM_SWUPDATE:
keyhelper.get(&key,&icon);
menu_item = new CMenuDForwarder(LOCALE_SERVICEMENU_UPDATE, true, NULL, new CSoftwareUpdate(), NULL, key, icon);
menu_item->setHint(NEUTRINO_ICON_HINT_SW_UPDATE, LOCALE_MENU_HINT_SW_UPDATE);
break;
case -1: // plugin
{
int number_of_plugins = g_PluginList->getNumberOfPlugins();