diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-10 10:52:00 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-10 10:52:00 -0500 |
commit | 0a3b1be6318067d26fd20031f64caa380c55d5cc (patch) | |
tree | 3469cb624417cc2991e4c9a2ce607702aa6fa553 /tdecore/networkbackends | |
parent | d62684deefe7ee5c654e4fc5b6359db5661dd6a9 (diff) | |
download | tdelibs-0a3b1be6318067d26fd20031f64caa380c55d5cc.tar.gz tdelibs-0a3b1be6318067d26fd20031f64caa380c55d5cc.zip |
Add a couple of needed methods to the network-manager backend API
Diffstat (limited to 'tdecore/networkbackends')
-rw-r--r-- | tdecore/networkbackends/network-manager/network-manager.cpp | 17 | ||||
-rw-r--r-- | tdecore/networkbackends/network-manager/network-manager.h | 2 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tdecore/networkbackends/network-manager/network-manager.cpp b/tdecore/networkbackends/network-manager/network-manager.cpp index 48f76fd46..713c2d51e 100644 --- a/tdecore/networkbackends/network-manager/network-manager.cpp +++ b/tdecore/networkbackends/network-manager/network-manager.cpp @@ -1478,6 +1478,10 @@ TDENetworkConnectionType::TDENetworkConnectionType TDENetworkConnectionManager_B return connType; } +TQString TDENetworkConnectionManager_BackendNM::backendName() { + return i18n("NetworkManager"); +} + TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags TDENetworkConnectionManager_BackendNM::backendStatus() { if (d->m_networkManagerProxy) { TQ_UINT32 ret; @@ -4535,6 +4539,19 @@ TQStringList TDENetworkConnectionManager_BackendNM::connectionPhysicalDeviceUUID } } +TDENetworkVPNTypeList TDENetworkConnectionManager_BackendNM::availableVPNTypes() { + TDENetworkVPNTypeList ret; + + // FIXME + // This backend should query NetworkManager to verify plugin availability before claiming support for a VPN type! + ret.append(TDENetworkVPNType::OpenVPN); + ret.append(TDENetworkVPNType::PPTP); + ret.append(TDENetworkVPNType::StrongSwan); + ret.append(TDENetworkVPNType::VPNC); + + return ret; +} + TDENetworkConnectionStatus::TDENetworkConnectionStatus TDENetworkConnectionManager_BackendNM::deactivateConnection(TQString uuid) { TQT_DBusObjectPath existingConnection; TQT_DBusError error; diff --git a/tdecore/networkbackends/network-manager/network-manager.h b/tdecore/networkbackends/network-manager/network-manager.h index c9186e442..6a9e8ebc9 100644 --- a/tdecore/networkbackends/network-manager/network-manager.h +++ b/tdecore/networkbackends/network-manager/network-manager.h @@ -137,6 +137,7 @@ class TDECORE_EXPORT TDENetworkConnectionManager_BackendNM : public TDENetworkCo TDENetworkConnectionManager_BackendNM(TQString macAddress); ~TDENetworkConnectionManager_BackendNM(); + virtual TQString backendName(); virtual TDENetworkDeviceType::TDENetworkDeviceType deviceType(); virtual TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags backendStatus(); virtual TDENetworkDeviceInformation deviceInformation(); @@ -155,6 +156,7 @@ class TDECORE_EXPORT TDENetworkConnectionManager_BackendNM : public TDENetworkCo virtual TDENetworkHWNeighborList* siteSurvey(); virtual TQStringList connectionPhysicalDeviceUUIDs(TQString uuid); + virtual TDENetworkVPNTypeList availableVPNTypes(); virtual bool networkingEnabled(); virtual bool wiFiHardwareEnabled(); |