Device.h 645 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef BLUETOOTH_DEVICE_H
  2. #define BLUETOOTH_DEVICE_H
  3. #include <string>
  4. #include <vector>
  5. #include "Util/Timer.h"
  6. #include "Util/HttpClient.h"
  7. namespace PresenceDetection {
  8. namespace Bluetooth {
  9. class Device
  10. {
  11. public:
  12. Device(const std::string& devices, const std::string& target);
  13. ~Device();
  14. void Start();
  15. void Stop();
  16. void Wait();
  17. private:
  18. void UpdatePresentDevices();
  19. private:
  20. Util::Timer m_timer;
  21. Util::HttpClient m_httpClient;
  22. std::vector<std::string> m_devices;
  23. std::string m_target;
  24. std::vector<std::string> m_presentDevices;
  25. };
  26. } // namespace Bluetooth
  27. } // namespace PresenceDetection
  28. #endif // BLUETOOTH_DEVICE_H