From 0a3b1be6318067d26fd20031f64caa380c55d5cc Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 10 Sep 2012 10:52:00 -0500 Subject: Add a couple of needed methods to the network-manager backend API --- tdecore/tdenetworkconnections.h | 43 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) (limited to 'tdecore/tdenetworkconnections.h') diff --git a/tdecore/tdenetworkconnections.h b/tdecore/tdenetworkconnections.h index 3d3976e99..2ba894732 100644 --- a/tdecore/tdenetworkconnections.h +++ b/tdecore/tdenetworkconnections.h @@ -302,6 +302,19 @@ namespace TDENetworkWiFiClientFlags { CREATE_FLAG_BITWISE_MANIPULATION_FUNCTIONS(TDENetworkWiFiClientFlags) }; +namespace TDENetworkVPNType { + enum TDENetworkVPNType { + OpenVPN, + PPTP, + StrongSwan, + VPNC, + Other, + Last = Other + }; +}; + +typedef TQValueList TDENetworkVPNTypeList; + namespace TDENetworkWiFiConnectionCipher { enum TDENetworkWiFiConnectionCipher { None, @@ -315,6 +328,8 @@ namespace TDENetworkWiFiConnectionCipher { }; }; +typedef TQValueList TDENetworkWiFiConnectionCipherList; + namespace TDENetworkWepKeyType { enum TDENetworkWepKeyType { Hexadecimal, @@ -334,8 +349,6 @@ namespace TDENetworkVLANFlags { CREATE_FLAG_BITWISE_MANIPULATION_FUNCTIONS(TDENetworkVLANFlags) }; -typedef TQValueList TDENetworkWiFiConnectionCipherList; - namespace TDENetworkWiFiKeyType { enum TDENetworkWiFiKeyType { WEP, @@ -976,9 +989,9 @@ class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject ~TDENetworkConnectionManager(); /** - * @return the MAC address of this device + * @return a TQString containing the name of the backend in use */ - TQString deviceMACAddress(); + virtual TQString backendName() = 0; /** * @return the type of connection supported by this device @@ -1091,6 +1104,12 @@ class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject */ virtual TQStringList connectionPhysicalDeviceUUIDs(TQString uuid) = 0; + /** + * @return a TDENetworkVPNTypeList object containing all supported VPN types + * If a type is not in this list, it is not supported by the backend in use + */ + virtual TDENetworkVPNTypeList availableVPNTypes() = 0; + /** * @return true if networking is enabled, false if not. */ @@ -1173,6 +1192,11 @@ class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject */ virtual TDENetworkConnectionList* connections(); + /** + * @return the MAC address of this device + */ + TQString deviceMACAddress(); + /** * @return a pointer to a TDENetworkConnection object with the specified @param uuid, * or a NULL pointer if no such connection exists. @@ -1276,6 +1300,11 @@ class TDECORE_EXPORT TDEGlobalNetworkManager : public TQObject */ ~TDEGlobalNetworkManager(); + /** + * @return a TQString containing the name of the backend in use + */ + virtual TQString backendName(); + /** * @return A TDENetworkGlobalManagerFlags enum value with the current status of the networking backend. */ @@ -1375,6 +1404,12 @@ class TDECORE_EXPORT TDEGlobalNetworkManager : public TQObject */ virtual TQStringList connectionPhysicalDeviceUUIDs(TQString uuid); + /** + * @return a TDENetworkVPNTypeList object containing all supported VPN types + * If a type is not in this list, it is not supported by the backend in use + */ + virtual TDENetworkVPNTypeList availableVPNTypes(); + /** * @return true if networking is enabled, false if not. */ -- cgit v1.2.1