summaryrefslogtreecommitdiffstats
path: root/tdecore/tdenetworkconnections.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tdenetworkconnections.h')
-rw-r--r--tdecore/tdenetworkconnections.h32
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;
};