nx_metadata_sdk 1.0 Metadata SDK

active_setting_changed_action.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2
3 #pragma once
4
5 #include <string>
6
7 #include <nx/sdk/helpers/ref_countable.h>
8 #include <nx/sdk/helpers/string_map.h>
9 #include <nx/sdk/i_active_setting_changed_action.h>
10
11 namespace nx::sdk {
12
13 class ActiveSettingChangedAction: public RefCountable<IActiveSettingChangedAction>
14 {
15 public:
16 ActiveSettingChangedAction() = default;
17
18 void setActiveSettingId(std::string value);
19 void setSettingsModel(std::string value);
20 void setSettingsValues(Ptr<const StringMap> value);
21 void setParams(Ptr<const StringMap> value);
22
23 virtual const char* activeSettingName() const override;
24 virtual const char* settingsModel() const override;
25
26 protected:
27 virtual const IStringMap* getSettingsValues() const override;
28 virtual const IStringMap* getParams() const override;
29
30 private:
31 std::string m_activeSettingName;
32 std::string m_settingsModel;
33 Ptr<const StringMap> m_settingsValues;
34 Ptr<const StringMap> m_params;
35 };
36
37 } // namespace nx::sdk
nx::sdk::IStringMap
Definition: i_string_map.h:9
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::ActiveSettingChangedAction::getParams
virtual const IStringMap * getParams() const override
Definition: active_setting_changed_action.cpp:42
nx::sdk::ActiveSettingChangedAction::getSettingsValues
virtual const IStringMap * getSettingsValues() const override
Definition: active_setting_changed_action.cpp:37
nx::sdk
Definition: device_agent.h:12
nx::sdk::ActiveSettingChangedAction::settingsModel
virtual const char * settingsModel() const override
Definition: active_setting_changed_action.cpp:32
nx::sdk::ActiveSettingChangedAction
Definition: active_setting_changed_action.h:13
nx::sdk::RefCountable
Definition: ref_countable.h:83
nx::sdk::ActiveSettingChangedAction::activeSettingName
virtual const char * activeSettingName() const override
Definition: active_setting_changed_action.cpp:27