Logic.h 741 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef LOGIC_LOGIC_H
  2. #define LOGIC_LOGIC_H
  3. #include "Device/Device.h"
  4. #include <HttpClient.h>
  5. #include <string>
  6. #include <vector>
  7. namespace PresenceDetection {
  8. namespace Logic {
  9. class Logic
  10. {
  11. public:
  12. Logic(const std::string& inventoryURL);
  13. ~Logic();
  14. void LoadDevicesFromConfiguration();
  15. void UpdateDevicesFromInventory();
  16. void DumpDevices();
  17. private:
  18. //void UpdatePresentDevices();
  19. void PollBluetoothDevices();
  20. void PollWiFiDevices();
  21. private:
  22. Http::HttpClient m_httpClient;
  23. std::string m_inventoryURL;
  24. std::vector<Device::Device> m_dynamicDevices;
  25. std::vector<Device::Device> m_staticDevices;
  26. };
  27. } // namespace Logic
  28. } // namespace PresenceDetection
  29. #endif // LOGIC_LOGIC_H