Initial Commit
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
#ifndef BLUETOOTH_DEVICE_H
|
||||
#define BLUETOOTH_DEVICE_H
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "Util/Timer.h"
|
||||
#include "Util/HttpClient.h"
|
||||
|
||||
|
||||
namespace PresenceDetection {
|
||||
namespace Bluetooth {
|
||||
|
||||
class Device
|
||||
{
|
||||
public:
|
||||
Device(const std::string& devices, const std::string& target);
|
||||
~Device();
|
||||
|
||||
void Start();
|
||||
void Stop();
|
||||
void Wait();
|
||||
|
||||
private:
|
||||
void UpdatePresentDevices();
|
||||
|
||||
private:
|
||||
Util::Timer m_timer;
|
||||
Util::HttpClient m_httpClient;
|
||||
|
||||
std::vector<std::string> m_devices;
|
||||
|
||||
std::string m_target;
|
||||
|
||||
std::vector<std::string> m_presentDevices;
|
||||
};
|
||||
|
||||
} // namespace Bluetooth
|
||||
} // namespace PresenceDetection
|
||||
|
||||
#endif // BLUETOOTH_DEVICE_H
|
||||
Reference in New Issue
Block a user