Monitor wake up/sleep events with Receiver

This commit is contained in:
pixl
2020-06-24 00:53:04 -04:00
parent 22455af615
commit 1d001237ba
7 changed files with 55 additions and 28 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ namespace logid
Receiver(std::string path);
protected:
virtual void addDevice(backend::hidpp::DeviceConnectionEvent event);
virtual void removeDevice(backend::hidpp::DeviceIndex index);
void addDevice(backend::hidpp::DeviceConnectionEvent event) override;
void removeDevice(backend::hidpp::DeviceIndex index) override;
private:
std::map<backend::hidpp::DeviceIndex, std::shared_ptr<Device>> _devices;
std::string _path;