Files
PresenceDetection/Device/Device.h
T
2021-07-28 16:23:27 +02:00

39 lines
658 B
C++

#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