From 152b9e6cfd73b952880d5186e775c6c472cb2114 Mon Sep 17 00:00:00 2001 From: pixl Date: Wed, 24 Jun 2020 02:05:05 -0400 Subject: [PATCH] Add interface for device features in logid::Device --- src/logid/Device.h | 2 ++ src/logid/features/DeviceFeature.h | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/logid/features/DeviceFeature.h diff --git a/src/logid/Device.h b/src/logid/Device.h index 8645697..9b4e130 100644 --- a/src/logid/Device.h +++ b/src/logid/Device.h @@ -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> _features; }; } diff --git a/src/logid/features/DeviceFeature.h b/src/logid/features/DeviceFeature.h new file mode 100644 index 0000000..762ff21 --- /dev/null +++ b/src/logid/features/DeviceFeature.h @@ -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