Add interface for device features in logid::Device
This commit is contained in:
parent
1d001237ba
commit
152b9e6cfd
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "backend/hidpp/defs.h"
|
||||
#include "backend/hidpp20/Device.h"
|
||||
#include "features/DeviceFeature.h"
|
||||
|
||||
namespace logid
|
||||
{
|
||||
|
@ -40,6 +41,7 @@ namespace logid
|
|||
backend::hidpp20::Device _hidpp20;
|
||||
std::string _path;
|
||||
backend::hidpp::DeviceIndex _index;
|
||||
std::vector<std::shared_ptr<features::DeviceFeature>> _features;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
15
src/logid/features/DeviceFeature.h
Normal file
15
src/logid/features/DeviceFeature.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef LOGID_FEATURES_DEVICEFEATURE_H
|
||||
#define LOGID_FEATURES_DEVICEFEATURE_H
|
||||
|
||||
namespace logid {
|
||||
namespace features
|
||||
{
|
||||
class DeviceFeature
|
||||
{
|
||||
public:
|
||||
virtual void configure() = 0;
|
||||
virtual void listen() = 0;
|
||||
};
|
||||
}}
|
||||
|
||||
#endif //LOGID_FEATURES_DEVICEFEATURE_H
|
Loading…
Reference in New Issue
Block a user