Testing changes to support wireless network adapters configuration.

All network setup GUI related code now part of gui/network_setup.cpp,
old code in setting_helpers.cpp commented.
Removed recursive menu call in network setup gui.
When compiled with -DDEBUG, ifup/ifdown not executed, only printed.


git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@1305 e54a6e83-5905-42d5-8d5c-058d10e6a962


Origin commit data
------------------
Branch: ni/coolstream
Commit: 18f85cd9cd
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2011-03-16 (Wed, 16 Mar 2011)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2011-03-16 12:57:09 +00:00
parent c67cd22b1c
commit 8fd7591079
5 changed files with 482 additions and 83 deletions

View File

@@ -220,6 +220,8 @@ bool CTP_scanNotifier::changeNotify(const neutrino_locale_t, void * Data)
}
return true;
}
#if 0 // not used
CDHCPNotifier::CDHCPNotifier( CMenuForwarder* a1, CMenuForwarder* a2, CMenuForwarder* a3, CMenuForwarder* a4, CMenuForwarder* a5, CMenuForwarder* a6)
{
toDisable[0] = a1;
@@ -240,7 +242,7 @@ bool CDHCPNotifier::changeNotify(const neutrino_locale_t, void * data)
toEnable[0]->setActive(!CNetworkConfig::getInstance()->inet_static);
return true;
}
#endif
COnOffNotifier::COnOffNotifier( CMenuItem* a1,CMenuItem* a2,CMenuItem* a3,CMenuItem* a4,CMenuItem* a5)
{
number = 0;
@@ -514,6 +516,7 @@ bool CKeySetupNotifier::changeNotify(const neutrino_locale_t, void *)
return false;
}
#if 0 // not used
bool CIPChangeNotifier::changeNotify(const neutrino_locale_t, void * Data)
{
char ip[16];
@@ -531,6 +534,7 @@ bool CIPChangeNotifier::changeNotify(const neutrino_locale_t, void * Data)
return true;
}
#endif
bool CConsoleDestChangeNotifier::changeNotify(const neutrino_locale_t, void * Data)
{
@@ -778,6 +782,7 @@ std::string CNetAdapter::getMacAddr(void)
}
}
#if 0 // not used, moved to gui/network_setup.cpp
const char * mypinghost(const char * const host)
{
int retvalue = pinghost(host);
@@ -899,6 +904,7 @@ void showCurrentNetworkSettings()
}
ShowMsgUTF(LOCALE_NETWORKMENU_SHOW, text, CMessageBox::mbrBack, CMessageBox::mbBack); // UTF-8
}
#endif
uint64_t getcurrenttime()
{