73 lines
1.8 KiB
C++
73 lines
1.8 KiB
C++
#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
|