From 32e6eba8731f7f3328ae287d0493d941dadec06f Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 23 Aug 2012 18:19:49 -0500 Subject: Initial skeleton for network manager support --- tdecore/tdehardwaredevices.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'tdecore/tdehardwaredevices.h') diff --git a/tdecore/tdehardwaredevices.h b/tdecore/tdehardwaredevices.h index db94b31cc..819dfd85b 100644 --- a/tdecore/tdehardwaredevices.h +++ b/tdecore/tdehardwaredevices.h @@ -39,6 +39,8 @@ * @author Timothy Pearson */ +class TDENetworkConnectionManager; + // Keep readGenericDeviceTypeFromString(), getFriendlyDeviceTypeStringFromType(), and getDeviceTypeIconFromType() in tdehardwaredevices.cpp in sync with this enum namespace TDEGenericDeviceType { enum TDEGenericDeviceType { @@ -1172,6 +1174,11 @@ class TDECORE_EXPORT TDENetworkDevice : public TDEGenericDevice */ double txPackets(); + /** + * @return a pointer to a TDENetworkConnectionManager object, if available + */ + TDENetworkConnectionManager* connectionManager(); + protected: /** * @param ma a TQString containing the network device's MAC address @@ -1269,6 +1276,11 @@ class TDECORE_EXPORT TDENetworkDevice : public TDEGenericDevice */ void internalSetTxPackets(double tx); + /** + * @param mgr a pointer to a TDENetworkConnectionManager object, if available + */ + void internalSetConnectionManager(TDENetworkConnectionManager* mgr); + private: TQString m_macAddress; TQString m_state; @@ -1286,6 +1298,7 @@ class TDECORE_EXPORT TDENetworkDevice : public TDEGenericDevice double m_txbytes; double m_rxpackets; double m_txpackets; + TDENetworkConnectionManager* m_connectionManager; friend class TDEHardwareDevices; }; @@ -2032,4 +2045,4 @@ class TDECORE_EXPORT TDEHardwareDevices : public TQObject friend class TDECPUDevice; }; -#endif +#endif // _TDEHARDWAREDEVICES_H -- cgit v1.2.1