config: add new Configuration class to simplify handling json config update api
This commit is contained in:
@ -175,19 +175,6 @@ private:
|
||||
std::function<InputEvent(const InputEvent)> m_func;
|
||||
};
|
||||
|
||||
class ConfigTaskMixin : public virtual Loopable {
|
||||
public:
|
||||
void handleEvent(const InputEvent &evt) override {
|
||||
if (evt.intent == InputEvent::ConfigurationChanged) {
|
||||
handleConfigChange(evt);
|
||||
}
|
||||
}
|
||||
|
||||
void loop() override {}
|
||||
|
||||
virtual void handleConfigChange(const InputEvent& evt) {}
|
||||
};
|
||||
|
||||
class OnlineTaskMixin : public virtual Loopable {
|
||||
public:
|
||||
void handleEvent(const InputEvent &evt) override {
|
||||
|
Reference in New Issue
Block a user