| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef LOGIC_LOGIC_H
- #define LOGIC_LOGIC_H
- #include "Device/Device.h"
- #include <HttpClient.h>
- #include <string>
- #include <vector>
- namespace PresenceDetection {
- namespace Logic {
- class Logic
- {
- public:
- Logic(const std::string& inventoryURL);
- ~Logic();
- void LoadDevicesFromConfiguration();
- void UpdateDevicesFromInventory();
- void DumpDevices();
- private:
- //void UpdatePresentDevices();
- void PollBluetoothDevices();
- void PollWiFiDevices();
- private:
- Http::HttpClient m_httpClient;
- std::string m_inventoryURL;
- std::vector<Device::Device> m_dynamicDevices;
- std::vector<Device::Device> m_staticDevices;
- };
- } // namespace Logic
- } // namespace PresenceDetection
- #endif // LOGIC_LOGIC_H
|