| 1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef DEVICE_DEVICE_H
- #define DEVICE_DEVICE_H
- #include <mutex>
- #include <string>
- namespace PresenceDetection {
- namespace Device {
- class Device
- {
- public:
- Device(int id, const std::string& wifiMacAddress, const std::string& bluetoothAddress);
- ~Device();
- Device(const Device& other);
- int ID() const;
- std::string WifiMacAddress() const;
- std::string BluetoothMacAddress() const;
- bool Online() const;
- void Online(bool online);
- private:
- int m_id;
- std::string m_wifiMacAddress;
- std::string m_bluetoothMacAddress;
- mutable std::mutex m_mutex;
- bool m_online;
- };
- } // namespace Device
- } // namespace PresenceDetection
- #endif // DEVICE_DEVICE_H
|