nx_server_plugin_sdk 1.0 Server Plugin SDK

device_agent.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/consuming_device_agent.h>
6
7 #include <string>
8
9 #include "engine.h"
10 #include "stub_analytics_plugin_roi_ini.h"
11
12 namespace nx {
13 namespace vms_server_plugins {
14 namespace analytics {
15 namespace stub {
16 namespace roi {
17
18 class DeviceAgent: public nx::sdk::analytics::ConsumingDeviceAgent
19 {
20 public:
21 DeviceAgent(Engine* engine, const nx::sdk::IDeviceInfo* deviceInfo);
22 virtual ~DeviceAgent() override;
23
24 protected:
25 virtual void getIntegrationSideSettings(
26 nx::sdk::Result<const nx::sdk::ISettingsResponse*>* outResult) const override;
27
28 virtual void doSetSettings(
29 nx::sdk::Result<const nx::sdk::ISettingsResponse*>* outResult,
30 const nx::sdk::IStringMap* settings) override;
31
32 virtual std::string manifestString() const override;
33
34 private:
35 Engine* const m_engine;
36 std::string m_integrationSideTestPolygonSettingValue;
37 };
38
39 } // namespace roi
40 } // namespace stub
41 } // namespace analytics
42 } // namespace vms_server_plugins
43 } // namespace nx
nx::sdk::IStringMap
Definition: i_string_map.h:9
nx::vms_server_plugins::analytics::stub::roi::Engine
Definition: engine.h:14
nx::sdk::analytics::ConsumingDeviceAgent
Definition: consuming_device_agent.h:36
nx::sdk::IDeviceInfo
Definition: i_device_info.h:13
nx::sdk::Result
Definition: result.h:52
nx
Definition: apple_utils.h:6
nx::vms_server_plugins::analytics::stub::roi::DeviceAgent
Definition: device_agent.h:18