summaryrefslogtreecommitdiffstats
path: root/tdecore/tdenetworkconnections.h
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-05 15:01:20 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-05 15:01:20 -0500
commit0216dae757a1ae8e4971b00b0c79fbafb33bbd57 (patch)
tree36a4910508e7d205578c4f04a6e0280cf91a962a /tdecore/tdenetworkconnections.h
parent60ee06f236470525bb1bb0094fb6b2a8701533b6 (diff)
downloadtdelibs-0216dae757a1ae8e4971b00b0c79fbafb33bbd57.tar.gz
tdelibs-0216dae757a1ae8e4971b00b0c79fbafb33bbd57.zip
Make access point notifications more extensible
Diffstat (limited to 'tdecore/tdenetworkconnections.h')
-rw-r--r--tdecore/tdenetworkconnections.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/tdecore/tdenetworkconnections.h b/tdecore/tdenetworkconnections.h
index 720b93378..3bff2e5db 100644
--- a/tdecore/tdenetworkconnections.h
+++ b/tdecore/tdenetworkconnections.h
@@ -176,6 +176,16 @@ namespace TDENetworkSlaveDeviceType {
};
};
+namespace TDENetworkAPEventType {
+ enum TDENetworkAPEventType {
+ Discovered,
+ Lost,
+ SignalStrengthChanged,
+ Other,
+ Last = Other
+ };
+};
+
namespace TDENetworkGlobalManagerFlags {
enum TDENetworkGlobalManagerFlags {
Unknown = 0x00000000,
@@ -1045,10 +1055,10 @@ class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject
void networkDeviceStateChanged(TDENetworkConnectionStatus::TDENetworkConnectionStatus newState, TDENetworkConnectionStatus::TDENetworkConnectionStatus previousState, TQString hwAddress);
/**
- * Emitted whenever a wireless access point is detected or lost
- * If a new access point was detected, @param detected will be set to TRUE, otherwise if lost it will be set to FALSE
+ * Emitted whenever the status of a wireless access point changes
+ * The event type that caused the signal is available in @param event
*/
- void accessPointVisibilityChanged(TDEMACAddress BSSID, bool detected);
+ void accessPointStatusChanged(TDEMACAddress BSSID, TDENetworkAPEventType::TDENetworkAPEventType event);
public:
/**
@@ -1095,7 +1105,7 @@ class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject
void clearTDENetworkHWNeighborList();
void internalNetworkConnectionStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags newState);
void internalNetworkDeviceStateChanged(TDENetworkConnectionStatus::TDENetworkConnectionStatus newState, TQString hwAddress=TQString::null);
- void internalAccessPointVisibilityChanged(TDEMACAddress BSSID, bool detected);
+ void internalAccessPointStatusChanged(TDEMACAddress BSSID, TDENetworkAPEventType::TDENetworkAPEventType event);
protected:
TDENetworkConnectionList* m_connectionList;
@@ -1235,10 +1245,10 @@ class TDECORE_EXPORT TDEGlobalNetworkManager : public TQObject
void networkDeviceStateChanged(TDENetworkConnectionStatus::TDENetworkConnectionStatus newState, TDENetworkConnectionStatus::TDENetworkConnectionStatus previousState, TQString hwAddress);
/**
- * Emitted whenever a wireless access point is detected or lost
- * If a new access point was detected, @param detected will be set to TRUE, otherwise if lost it will be set to FALSE
+ * Emitted whenever the status of a wireless access point changes
+ * The event type that caused the signal is available in @param event
*/
- void accessPointVisibilityChanged(TDEMACAddress BSSID, bool detected);
+ void accessPointStatusChanged(TDEMACAddress BSSID, TDENetworkAPEventType::TDENetworkAPEventType event);
public:
/**