mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
gui/user_menue.cpp: add network settings and software update as user-menu items
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5d6ea715d8
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-10-16 (Thu, 16 Oct 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user