3e9eecc279
Split the BroadcastListener, DiscoveredDevice and other concerns out of the protocol header and implementation files.
31 lines
582 B
C++
31 lines
582 B
C++
#ifndef LIVOXPROTO1_CORE_H
|
|
#define LIVOXPROTO1_CORE_H
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <memory>
|
|
#include "livoxProto1Device.h"
|
|
#include "broadcastListener.h"
|
|
|
|
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
|