nx_metadata_sdk  1.0
Metadata SDK
engine.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 "active_settings_builder.h"
6 
7 #include <nx/sdk/analytics/helpers/plugin.h>
8 #include <nx/sdk/analytics/helpers/engine.h>
9 
10 namespace nx {
11 namespace vms_server_plugins {
12 namespace analytics {
13 namespace stub {
14 namespace settings {
15 
16 static const std::string kEnginePluginSideSetting = "testPluginSideSpinBox";
17 static const std::string kEnginePluginSideSettingValue = "42";
18 
20 {
21 public:
23  virtual ~Engine() override;
24 
25  nx::sdk::analytics::Plugin* const plugin() const { return m_plugin; }
26 
27 protected:
28  virtual std::string manifestString() const override;
29 
31 
32 protected:
33  virtual void doObtainDeviceAgent(
35  const nx::sdk::IDeviceInfo* deviceInfo) override;
36 
37  virtual void getPluginSideSettings(
38  nx::sdk::Result<const nx::sdk::ISettingsResponse*>* outResult) const override;
39 
40  virtual void doGetSettingsOnActiveSettingChange(
42  const nx::sdk::IActiveSettingChangedAction* activeSettingChangeAction) override;
43 
44 private:
45  nx::sdk::analytics::Plugin* const m_plugin;
46  ActiveSettingsBuilder m_activeSettingsBuilder;
47 };
48 
49 } // namespace settings
50 } // namespace stub
51 } // namespace analytics
52 } // namespace vms_server_plugins
53 } // namespace nx
Definition: i_active_setting_changed_action.h:15
virtual nx::sdk::Result< const nx::sdk::ISettingsResponse * > settingsReceived() override
Definition: engine.cpp:89
Definition: i_device_info.h:14
Definition: result.h:47
Definition: apple_utils.h:6
Definition: engine.h:34
Definition: plugin.h:23