nx_metadata_sdk 1.0 Metadata SDK

active_setting_changed_response.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/helpers/action_response.h>
6 #include <nx/sdk/helpers/ref_countable.h>
7 #include <nx/sdk/helpers/settings_response.h>
8 #include <nx/sdk/i_active_setting_changed_response.h>
9 #include <nx/sdk/ptr.h>
10
11 namespace nx::sdk {
12
13 class ActiveSettingChangedResponse: public RefCountable<IActiveSettingChangedResponse>
14 {
15 public:
16 ActiveSettingChangedResponse() = default;
17
18 void setActionResponse(Ptr<const ActionResponse> value);
19 void setSettingsResponse(Ptr<const SettingsResponse> value);
20
21 protected:
22 virtual const IActionResponse* getActionResponse() const override;
23 virtual const ISettingsResponse* getSettingsResponse() const override;
24
25 private:
26 Ptr<const ActionResponse> m_actionResponse;
27 Ptr<const SettingsResponse> m_settingsResponse;
28 };
29
30 } // namespace nx::sdk
nx::sdk::ISettingsResponse
Definition: i_settings_response.h:40
nx::sdk::ActiveSettingChangedResponse::getActionResponse
virtual const IActionResponse * getActionResponse() const override
Definition: active_setting_changed_response.cpp:18
nx::sdk::ActiveSettingChangedResponse
Definition: active_setting_changed_response.h:13
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk
Definition: device_agent.h:12
nx::sdk::IActionResponse
Definition: i_action_response.h:31
nx::sdk::ActiveSettingChangedResponse::getSettingsResponse
virtual const ISettingsResponse * getSettingsResponse() const override
Definition: active_setting_changed_response.cpp:23
nx::sdk::RefCountable
Definition: ref_countable.h:83