| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- #ifndef UTIL_STATICDEVICE_H
- #define UTIL_STATICDEVICE_H
- #include "ProbeableDevice.h"
- #include <string>
- namespace PresenceDetection {
- namespace Util {
- class StaticDevice : public ProbeableDevice
- {
- public:
- StaticDevice(const std::string& wifiMac, const std::string& bluetoothMac);
- StaticDevice(const StaticDevice &other);
- ~StaticDevice();
- virtual int ProbeCounter() const override;
- virtual void IncrementProbeCounter() override;
- virtual void ResetProbeCounter() override;
- bool HasWifiMac() const;
- std::string WifiMac() const;
- void SetWifiState(bool present);
- bool GetWifiState() const;
- bool HasBluetoothMac() const;
- std::string BluetoothMac() const;
- void SetBluetoothState(bool present);
- bool GetBluetoothState() const;
- bool HasOnlineURL() const;
- void SetOnlineURL(const std::string& url);
- std::string OnlineURL() const;
- bool HasWifiOnlineURL() const;
- void SetWifiOnlineURL(const std::string& url);
- std::string WifiOnlineURL() const;
- bool HasBluetoothOnlineURL() const;
- void SetBluetoothOnlineURL(const std::string& url);
- std::string BluetoothOnlineURL() const;
- bool HasOfflineURL() const;
- void SetOfflineURL(const std::string& url);
- std::string OfflineURL() const;
- bool HasWifiOfflineURL() const;
- void SetWifiOfflineURL(const std::string& url);
- std::string WifiOfflineURL() const;
- bool HasBluetoothOfflineURL() const;
- void SetBluetoothOfflineURL(const std::string& url);
- std::string BluetoothOfflineURL() const;
- private:
- int m_probeCounter;
- std::string m_wifiMac;
- bool m_wifiState;
- std::string m_bluetoothMac;
- bool m_bluetoothState;
- std::string m_onlineURL;
- std::string m_wifiOnlineURL;
- std::string m_bluetoothOnlineURL;
- std::string m_offlineURL;
- std::string m_wifiOfflineURL;
- std::string m_bluetoothOfflineURL;
- };
- } // namespace Util
- } // namespace PresenceDetection
- #endif // UTIL_STATICDEVICE_H
|