42 lines
741 B
C++
42 lines
741 B
C++
#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
|