nx_metadata_sdk 1.0 Metadata SDK

i_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/interface.h>
6 #include <nx/sdk/ptr.h>
7
8 #include "i_action_response.h"
9 #include "i_settings_response.h"
10
11 namespace nx::sdk {
12
16 class IActiveSettingChangedResponse: public Interface<IActiveSettingChangedResponse>
17 {
18 public:
19 static auto interfaceId() { return makeId("nx::sdk::IActiveSettingChangedResponse"); }
20
22 protected: virtual const IActionResponse* getActionResponse() const = 0;
26 public: Ptr<const IActionResponse> actionResponse() const
27 {
28 return Ptr(getActionResponse());
29 }
30
32 protected: virtual const ISettingsResponse* getSettingsResponse() const = 0;
38 public: Ptr<const ISettingsResponse> settingsResponse() const
39 {
40 return Ptr(getSettingsResponse());
41 }
42 };
43 using IActiveSettingChangedResponse0 = IActiveSettingChangedResponse;
44
45 } // namespace nx::sdk
nx::sdk::ISettingsResponse
Definition: i_settings_response.h:40
nx::sdk::IActiveSettingChangedResponse::settingsResponse
Ptr< const ISettingsResponse > settingsResponse() const
Definition: i_active_setting_changed_response.h:38
nx::sdk::Interface
Definition: interface.h:48
nx::sdk::IActiveSettingChangedResponse::getActionResponse
virtual const IActionResponse * getActionResponse() const =0
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::IActiveSettingChangedResponse
Definition: i_active_setting_changed_response.h:16
nx::sdk
Definition: device_agent.h:12
nx::sdk::IActionResponse
Definition: i_action_response.h:31
nx::sdk::IActiveSettingChangedResponse::actionResponse
Ptr< const IActionResponse > actionResponse() const
Definition: i_active_setting_changed_response.h:26
nx::sdk::IActiveSettingChangedResponse::getSettingsResponse
virtual const ISettingsResponse * getSettingsResponse() const =0
nx::sdk::IRefCountable::makeId
static const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:77