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

@@ -35,9 +35,14 @@ class CNetworkConfig
std::string orig_nameserver;
std::string orig_hostname;
bool orig_inet_static;
std::string orig_ifname;
std::string orig_ssid;
std::string orig_key;
void copy_to_orig(void);
void init_vars(void);
void readWpaConfig();
void saveWpaConfig();
public:
bool automatic_start;
@@ -47,7 +52,12 @@ class CNetworkConfig
std::string gateway;
std::string nameserver;
std::string hostname;
std::string mac_addr;
std::string ifname;
std::string ssid;
std::string key;
bool inet_static;
bool wireless;
CNetworkConfig();
~CNetworkConfig();
@@ -55,10 +65,12 @@ class CNetworkConfig
static CNetworkConfig* getInstance();
bool modified_from_orig(void);
void readConfig(std::string iname);
void commitConfig(void);
void startNetwork(void);
void stopNetwork(void);
void setIfName(std::string name) { ifname = name;};
};
class CNetAdapter