2025-09-05 00:08:25 -04:00
|
|
|
#ifndef LIVOXPROTO1_CORE_H
|
|
|
|
|
#define LIVOXPROTO1_CORE_H
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <memory>
|
2025-09-06 08:50:07 -04:00
|
|
|
#include "livoxProto1Device.h"
|
|
|
|
|
#include "broadcastListener.h"
|
2025-09-05 00:08:25 -04:00
|
|
|
|
|
|
|
|
namespace livoxProto1 {
|
|
|
|
|
|
|
|
|
|
class DeviceManager
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
DeviceManager();
|
|
|
|
|
~DeviceManager() = default;
|
|
|
|
|
|
|
|
|
|
static void deviceGoneAwayInd(const comms::DiscoveredDevice &device);
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
std::vector<Device> devices;
|
|
|
|
|
comms::BroadcastListener broadcastListener;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void main(const std::shared_ptr<smo::ComponentThread> &componentThread);
|
|
|
|
|
void exit(void);
|
|
|
|
|
|
|
|
|
|
} // namespace livoxProto1
|
|
|
|
|
|
|
|
|
|
#endif // LIVOXPROTO1_CORE_H
|