Index: sources/wifi/Network.h =================================================================== diff -u -rea52cee2614f319804690a9b1d5091bed9676753 -r2085962f7bd0a2239ee5c857928a11d5e38fe0a2 --- sources/wifi/Network.h (.../Network.h) (revision ea52cee2614f319804690a9b1d5091bed9676753) +++ sources/wifi/Network.h (.../Network.h) (revision 2085962f7bd0a2239ee5c857928a11d5e38fe0a2) @@ -43,6 +43,14 @@ DISCONNECTING }; + struct IPSettings { + QString mIPAddress; + QString mGateway; + QString mSubnetMask; + QString mBroadcast; + QString mDns; + }; + bool operator==(const Network &d1) { if (ssid() == d1.ssid()) return true; @@ -109,6 +117,15 @@ return NO_SIGNAL; } + IPSettings ipSettings() const { + return _ipSettings; + } + + void ipSettings(const IPSettings &vIPSettings) { + _ipSettings = vIPSettings; + } + + explicit Network() {} explicit Network(const QString &vMacAddress) {_macAddress = vMacAddress; } explicit Network(const QString &vMacAddress, const QString &vSSID, const SECURITY_LEVEL &vSecurityLevel, const STATUS &vStatus, const int &vSignalLevel) { _macAddress = vMacAddress; @@ -124,5 +141,6 @@ SECURITY_LEVEL _security = UNSUPPORTED; SIGNAL_LEVEL _signalLevel = NO_SIGNAL; STATUS _status = NOT_CONNECTED; + IPSettings _ipSettings; };