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 <nx/sdk/analytics/helpers/plugin.h>
6 #include <nx/sdk/analytics/helpers/engine.h>
7
8 namespace nx {
9 namespace vms_server_plugins {
10 namespace analytics {
11 namespace stub {
12 namespace settings {
13
14 static const std::string kEnginePluginSideSetting = "testPluginSideSpinBox";
15 static const std::string kEnginePluginSideSettingValue = "42";
16
17 class Engine: public nx::sdk::analytics::Engine
18 {
19 public:
20 Engine(nx::sdk::analytics::Plugin* plugin);
21 virtual ~Engine() override;
22
23 nx::sdk::analytics::Plugin* const plugin() const { return m_plugin; }
24
25 protected:
26 virtual std::string manifestString() const override;
27
28 virtual nx::sdk::Result<const nx::sdk::ISettingsResponse*> settingsReceived() override;
29
30 protected:
31 virtual void doObtainDeviceAgent(
32 nx::sdk::Result<nx::sdk::analytics::IDeviceAgent*>* outResult,
33 const nx::sdk::IDeviceInfo* deviceInfo) override;
34
35 virtual void getPluginSideSettings(
36 nx::sdk::Result<const nx::sdk::ISettingsResponse*>* outResult) const override;
37
38 private:
39 nx::sdk::analytics::Plugin* const m_plugin;
40 };
41
42 } // namespace settings
43 } // namespace stub
44 } // namespace analytics
45 } // namespace vms_server_plugins
46 } // namespace nx
nx::vms_server_plugins::analytics::stub::settings::Engine::settingsReceived
virtual nx::sdk::Result< const nx::sdk::ISettingsResponse * > settingsReceived() override
Definition: engine.cpp:72
nx::sdk::IDeviceInfo
Definition: i_device_info.h:14
nx::sdk::Result
Definition: result.h:47
nx
Definition: apple_utils.h:6
nx::sdk::analytics::Engine
Definition: engine.h:34
nx::vms_server_plugins::analytics::stub::settings::Engine
Definition: engine.h:17
nx::sdk::analytics::Plugin
Definition: plugin.h:23