nx_server_plugin_sdk 1.0 Server Plugin 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/engine.h>
6 #include <nx/sdk/analytics/helpers/integration.h>
7 #include <nx/sdk/uuid.h>
8
9 namespace nx {
10 namespace vms_server_plugins {
11 namespace analytics {
12 namespace stub {
13 namespace error_reporting {
14
15 class Engine: public nx::sdk::analytics::Engine
16 {
17 public:
18 Engine(nx::sdk::analytics::Integration* integration);
19 virtual ~Engine() override;
20
21 nx::sdk::analytics::Integration* const integration() const { return m_integration; }
22
23 protected:
24 virtual std::string manifestString() const override;
25
26 virtual void doObtainDeviceAgent(
27 nx::sdk::Result<nx::sdk::analytics::IDeviceAgent*>* outResult,
28 const nx::sdk::IDeviceInfo* deviceInfo) override;
29
30 virtual void doSetSettings(
31 nx::sdk::Result<const nx::sdk::ISettingsResponse*>* outResult,
32 const nx::sdk::IStringMap* settings) override;
33
34 virtual void getIntegrationSideSettings(
35 nx::sdk::Result<const nx::sdk::ISettingsResponse*>* outResult) const override;
36
37 virtual void doGetSettingsOnActiveSettingChange(
38 nx::sdk::Result<const nx::sdk::IActiveSettingChangedResponse*>* outResult,
39 const nx::sdk::IActiveSettingChangedAction* activeSettingChangedAction) override;
40
41 virtual nx::sdk::Result<const nx::sdk::ISettingsResponse*> settingsReceived() override;
42
43 private:
44 nx::sdk::analytics::Integration* const m_integration;
45 };
46
47 } // namespace error_reporting
48 } // namespace stub
49 } // namespace analytics
50 } // namespace vms_server_plugins
51 } // namespace nx
nx::sdk::IStringMap
Definition: i_string_map.h:9
nx::sdk::IActiveSettingChangedAction
Definition: i_active_setting_changed_action.h:14
nx::vms_server_plugins::analytics::stub::error_reporting::Engine::settingsReceived
virtual nx::sdk::Result< const nx::sdk::ISettingsResponse * > settingsReceived() override
Definition: engine.cpp:114
nx::vms_server_plugins::analytics::stub::error_reporting::Engine
Definition: engine.h:15
nx::sdk::IDeviceInfo
Definition: i_device_info.h:13
nx::sdk::Result
Definition: result.h:52
nx
Definition: apple_utils.h:6
nx::sdk::analytics::Engine
Definition: engine.h:31
nx::sdk::analytics::Integration
Definition: integration.h:21