nx_metadata_sdk 1.0 Metadata SDK

i_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 <nx/sdk/i_string_map.h>
6 #include <nx/sdk/interface.h>
7 #include <nx/sdk/ptr.h>
8
9 namespace nx::sdk {
10
14 class IActiveSettingChangedAction: public Interface<IActiveSettingChangedAction>
15 {
16 public:
17 static auto interfaceId() { return makeId("nx::sdk::IActiveSettingChangedAction"); }
18
22 virtual const char* activeSettingName() const = 0;
23
27 virtual const char* settingsModel() const = 0;
28
30 protected: virtual const IStringMap* getSettingsValues() const = 0;
34 public: Ptr<const IStringMap> settingsValues() const { return Ptr(getSettingsValues()); }
35
37 protected: virtual const IStringMap* getParams() const = 0;
42 public: Ptr<const IStringMap> params() const { return Ptr(getParams()); }
43 };
44 using IActiveSettingChangedAction0 = IActiveSettingChangedAction;
45
46 } // namespace nx::sdk
nx::sdk::IStringMap
Definition: i_string_map.h:9
nx::sdk::IActiveSettingChangedAction
Definition: i_active_setting_changed_action.h:14
nx::sdk::IActiveSettingChangedAction::params
Ptr< const IStringMap > params() const
Definition: i_active_setting_changed_action.h:42
nx::sdk::Interface
Definition: interface.h:48
nx::sdk::IActiveSettingChangedAction::getParams
virtual const IStringMap * getParams() const =0
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::IActiveSettingChangedAction::settingsModel
virtual const char * settingsModel() const =0
nx::sdk::IActiveSettingChangedAction::getSettingsValues
virtual const IStringMap * getSettingsValues() const =0
nx::sdk::IActiveSettingChangedAction::activeSettingName
virtual const char * activeSettingName() const =0
nx::sdk::IActiveSettingChangedAction::settingsValues
Ptr< const IStringMap > settingsValues() const
Definition: i_active_setting_changed_action.h:34
nx::sdk
Definition: device_agent.h:12
nx::sdk::IRefCountable::makeId
static const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:77