start_wizard: use a global enum; switch detection from bool to int

Origin commit data
------------------
Branch: ni/coolstream
Commit: af90286a30
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-05-15 (Fri, 15 May 2015)

Origin message was:
------------------
- start_wizard: use a global enum; switch detection from bool to int

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2015-05-15 03:39:24 +02:00
parent 3a1e7261cc
commit f26b53d4ad
18 changed files with 48 additions and 122 deletions

View File

@@ -65,7 +65,7 @@
extern int pinghost (const std::string &hostname, std::string *ip = NULL);
CNetworkSetup::CNetworkSetup(bool wizard_mode)
CNetworkSetup::CNetworkSetup(int wizard_mode)
{
networkConfig = CNetworkConfig::getInstance();
@@ -671,13 +671,6 @@ bool CNetworkSetup::changeNotify(const neutrino_locale_t locale, void * /*Data*/
return false;
}
//sets menu mode to "wizard" or "default"
void CNetworkSetup::setWizardMode(bool mode)
{
printf("[neutrino network setup] %s set network settings menu to mode %d...\n", __FUNCTION__, mode);
is_wizard = mode;
}
void CNetworkSetup::showCurrentNetworkSettings()
{
std::string ip, mask, broadcast, router, nameserver, text;