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