From a576bfdf813cf928fa5d978278710f6b011dfd0f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 30 Aug 2012 12:07:25 -0500 Subject: Add wireless settings to network-manager backend --- tdecore/tdenetworkconnections.cpp | 42 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) (limited to 'tdecore/tdenetworkconnections.cpp') diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp index 70d528e9b..38d8a4e28 100644 --- a/tdecore/tdenetworkconnections.cpp +++ b/tdecore/tdenetworkconnections.cpp @@ -322,6 +322,27 @@ TDENetworkIPConfiguration::~TDENetworkIPConfiguration() { // } +/*================================================================================================*/ +/* TDENetworkWiFiSecurityConfiguration */ +/*================================================================================================*/ + +TDENetworkWiFiSecurityConfiguration::TDENetworkWiFiSecurityConfiguration() { + valid = false; + secretsValid = false; + wepKeyIndex = 0; + keyType = TDENetworkWiFiKeyType::Other; + authType = TDENetworkWiFiAuthType::Other; + wpaVersion = TDENetworkWiFiWPAVersion::Any; + wepKeyFlags = TDENetworkPasswordHandlingFlags::None; + pskFlags = TDENetworkPasswordHandlingFlags::None; + leapPasswordFlags = TDENetworkPasswordHandlingFlags::None; + wepKeyType = TDENetworkWepKeyType::Hexadecimal; +} + +TDENetworkWiFiSecurityConfiguration::~TDENetworkWiFiSecurityConfiguration() { + // +} + /*================================================================================================*/ /* TDENetworkWiFiDeviceInfo */ /*================================================================================================*/ @@ -377,6 +398,7 @@ TDENetworkWiFiAPInfo::~TDENetworkWiFiAPInfo() { /*================================================================================================*/ TDENetworkConnection::TDENetworkConnection() { + readOnly = false; autoConnect = false; fullDuplex = true; requireIPV4 = false; @@ -400,12 +422,30 @@ TDEWiredEthernetConnection::~TDEWiredEthernetConnection() { // } +/*================================================================================================*/ +/* TDEWiredInfinibandConnection */ +/*================================================================================================*/ + +TDEWiredInfinibandConnection::TDEWiredInfinibandConnection() : TDENetworkConnection() { + // +} + +TDEWiredInfinibandConnection::~TDEWiredInfinibandConnection() { + // +} + /*================================================================================================*/ /* TDEWiFiConnection */ /*================================================================================================*/ TDEWiFiConnection::TDEWiFiConnection() : TDENetworkConnection() { - // + operatingMode = TDEWiFiMode::Other; + bandRestriction = TDEWiFiFrequencyBand::None; + channelRestriction = -1; + bitRateRestriction = -1; + powerRestriction = -1; + isHiddenNetwork = false; + securityRequired = false; } TDEWiFiConnection::~TDEWiFiConnection() { -- cgit v1.2.1