Rename DeviceMonitor to DeviceManager

This commit is contained in:
pixl
2020-06-19 22:01:14 -04:00
parent 7f1af81910
commit f0c903d539
4 changed files with 10 additions and 10 deletions
+32
View File
@@ -0,0 +1,32 @@
#ifndef LOGID_DEVICEMONITOR_H
#define LOGID_DEVICEMONITOR_H
#include <map>
#include <thread>
#include <mutex>
#include "backend/raw/DeviceMonitor.h"
#include "backend/hidpp/Device.h"
#include "Device.h"
#include "Receiver.h"
namespace logid
{
class DeviceManager : public backend::raw::DeviceMonitor
{
public:
DeviceManager() = default;
protected:
void addDevice(std::string path) override;
void removeDevice(std::string path) override;
private:
std::map<std::string, std::shared_ptr<Device>> _devices;
std::map<std::string, std::shared_ptr<Receiver>> _receivers;
};
extern DeviceManager* finder;
}
#endif //LOGID_DEVICEFINDER_H