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 "engine.h"
8
9 namespace nx {
10 namespace vms_server_plugins {
11 namespace analytics {
12 namespace stub {
13 namespace custom_metadata {
14
15 class DeviceAgent: public nx::sdk::analytics::ConsumingDeviceAgent
16 {
17 public:
18 DeviceAgent(Engine* engine, const nx::sdk::IDeviceInfo* deviceInfo);
19 virtual ~DeviceAgent() override;
20
21 protected:
22 virtual std::string manifestString() const override;
23
24 virtual bool pushCustomMetadataPacket(
25 nx::sdk::Ptr<const nx::sdk::analytics::ICustomMetadataPacket> customMetadataPacket
26 ) override;
27
28 private:
29 Engine* const m_engine;
30 };
31
32 } // namespace custom_metadata
33 } // namespace stub
34 } // namespace analytics
35 } // namespace vms_server_plugins
36 } // namespace nx
nx::vms_server_plugins::analytics::stub::custom_metadata::DeviceAgent::pushCustomMetadataPacket
virtual bool pushCustomMetadataPacket(nx::sdk::Ptr< const nx::sdk::analytics::ICustomMetadataPacket > customMetadataPacket) override
Definition: device_agent.cpp:42
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::analytics::ConsumingDeviceAgent
Definition: consuming_device_agent.h:36
nx::vms_server_plugins::analytics::stub::custom_metadata::Engine
Definition: engine.h:18
nx::vms_server_plugins::analytics::stub::custom_metadata::DeviceAgent
Definition: device_agent.h:15
nx::sdk::IDeviceInfo
Definition: i_device_info.h:13
nx
Definition: apple_utils.h:6