diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-04 15:19:10 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-04 15:19:10 -0500 |
commit | 86febbf35190d680a61af4676704c5ece8a9de98 (patch) | |
tree | 343bfd3d767058240e1c9963b0e5b1231c8c47bf /tdecore/tdenetworkconnections.h | |
parent | 50a9b042eef60a6531b7fbb3c467342ac592d9e3 (diff) | |
download | tdelibs-86febbf35190d680a61af4676704c5ece8a9de98.tar.gz tdelibs-86febbf35190d680a61af4676704c5ece8a9de98.zip |
Add connection to device lookup routines
Diffstat (limited to 'tdecore/tdenetworkconnections.h')
-rw-r--r-- | tdecore/tdenetworkconnections.h | 32 |
1 files changed, 32 insertions, 0 deletions
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<TQ_UINT8> TDENetworkByteList; typedef TQValueList<TQHostAddress> TDENetworkAddressList; typedef TQMap<TQString, TQString> TDENetworkSettingsMap; @@ -990,6 +992,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. */ virtual bool networkingEnabled() = 0; @@ -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(); @@ -1150,6 +1167,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. */ virtual bool networkingEnabled(); @@ -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; }; |