| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #ifndef UTIL_DEVICE_H
- #define UTIL_DEVICE_H
- #include <string>
- namespace PresenceDetection {
- namespace Util {
- class Device
- {
- public:
- Device(const std::string& wifiMac, const std::string& bluetoothMac);
- Device(const Device &other);
- ~Device();
- 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:
- 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_DEVICE_H
|