From 86febbf35190d680a61af4676704c5ece8a9de98 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 4 Sep 2012 15:19:10 -0500 Subject: Add connection to device lookup routines --- tdecore/tdenetworkconnections.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'tdecore/tdenetworkconnections.h') diff --git a/tdecore/tdenetworkconnections.h b/tdecore/tdenetworkconnections.h index 92e5e5cb5..e41251b9d 100644 --- a/tdecore/tdenetworkconnections.h +++ b/tdecore/tdenetworkconnections.h @@ -56,6 +56,8 @@ return a; \ } +class TDENetworkDevice; + typedef TQValueList TDENetworkByteList; typedef TQValueList TDENetworkAddressList; typedef TQMap TDENetworkSettingsMap; @@ -989,6 +991,13 @@ class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject */ virtual TDENetworkHWNeighborList* siteSurvey() = 0; + /** + * @return a TQStringList containing the UUIDs of all physical devices used by this connection + * This function may return an empty list if the connection is inactive, this behaviour is + * dependend on the specific network backend in use. + */ + virtual TQStringList connectionPhysicalDeviceUUIDs(TQString uuid) = 0; + /** * @return true if networking is enabled, false if not. */ @@ -1055,6 +1064,14 @@ class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject */ TDENetworkConnection* findConnectionByUUID(TQString uuid); + /** + * @return a pointer to a TDENetworkDevice object with the specified @param uuid, + * or a NULL pointer if no such connection exists. + * + * Note that the returned object is internally managed and must not be deleted! + */ + TDENetworkDevice* findDeviceByUUID(TQString uuid); + protected: void clearTDENetworkConnectionList(); void clearTDENetworkHWNeighborList(); @@ -1149,6 +1166,13 @@ class TDECORE_EXPORT TDEGlobalNetworkManager : public TQObject */ virtual TDENetworkHWNeighborList* siteSurvey(); + /** + * @return a TQStringList containing the UUIDs of all physical devices used by this connection + * This function may return an empty list if the connection is inactive, this behaviour is + * dependend on the specific network backend in use. + */ + virtual TQStringList connectionPhysicalDeviceUUIDs(TQString uuid); + /** * @return true if networking is enabled, false if not. */ @@ -1215,6 +1239,14 @@ class TDECORE_EXPORT TDEGlobalNetworkManager : public TQObject */ TDENetworkConnection* findConnectionByUUID(TQString uuid); + /** + * @return a pointer to a TDENetworkDevice object with the specified @param uuid, + * or a NULL pointer if no such connection exists. + * + * Note that the returned object is internally managed and must not be deleted! + */ + TDENetworkDevice* findDeviceByUUID(TQString uuid); + private: TDENetworkConnectionManager* m_internalConnectionManager; }; -- cgit v1.2.1