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

@@ -57,6 +57,9 @@ class CNetworkSetup : public CMenuTarget, CChangeObserver
std::string network_nameserver;
std::string network_gateway;
std::string network_hostname;
std::string network_ssid;
std::string network_key;
std::string mac_addr;
int old_network_dhcp;
int old_network_automatic_start;
@@ -66,14 +69,24 @@ class CNetworkSetup : public CMenuTarget, CChangeObserver
std::string old_network_nameserver;
std::string old_network_gateway;
std::string old_network_hostname;
std::string old_ifname;
std::string old_network_ssid;
std::string old_network_key;
std::string old_mac_addr;
CMenuForwarder* dhcpDisable[5];
CMenuForwarder* dhcpEnable[1];
CMenuForwarder* wlanEnable[2];
void restoreNetworkSettings();
void prepareSettings();
void readNetworkSettings();
void backupNetworkSettings();
void showNetworkSetup();
void showNetworkNTPSetup(CMenuWidget *menu_ntp);
void showNetworkNFSMounts(CMenuWidget *menu_nfs);
void saveChangesDialog();
int saveChangesDialog();
void applyNetworkSettings();
void saveNetworkSettings();
@@ -81,6 +94,7 @@ class CNetworkSetup : public CMenuTarget, CChangeObserver
bool checkStringSettings();
bool checkForIP();
bool settingsChanged();
const char * mypinghost(const char * const host);
public:
enum NETWORK_DHCP_MODE
@@ -115,6 +129,8 @@ class CNetworkSetup : public CMenuTarget, CChangeObserver
int exec(CMenuTarget* parent, const std::string & actionKey);
virtual bool changeNotify(const neutrino_locale_t, void * Data);
void showCurrentNetworkSettings();
void testNetworkSettings();
};