nx_server_plugin_sdk 1.0 Server Plugin SDK

discovery_manager.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 <camera/camera_plugin.h>
6 #include <plugins/plugin_tools.h>
7
9 class DiscoveryManager
10 :
11 public nxcip::CameraDiscoveryManager3
12 {
13 public:
14 DiscoveryManager();
15
17 virtual void* queryInterface( const nxpl::NX_GUID& interfaceID ) override;
19 virtual int addRef() const override;
21 virtual int releaseRef() const override;
22
24 virtual void getVendorName( char* buf ) const override;
26 virtual int findCameras( nxcip::CameraInfo* cameras, const char* localInterfaceIPAddr ) override;
28 virtual int checkHostAddress( nxcip::CameraInfo* cameras, const char* address, const char* login, const char* password ) override;
30 virtual int checkHostAddress2(nxcip::CameraInfo2* cameras, const char* address, const char* login, const char* password) override;
32 virtual int findCameras2(nxcip::CameraInfo2* cameras, const char* serverURL) override;
33
35 virtual int fromMDNSData(
36 const char* discoveredAddress,
37 const unsigned char* mdnsResponsePacket,
38 int mdnsResponsePacketSize,
39 nxcip::CameraInfo* cameraInfo ) override;
41 virtual int fromUpnpData( const char* upnpXMLData, int upnpXMLDataSize, nxcip::CameraInfo* cameraInfo ) override;
43 virtual nxcip::BaseCameraManager* createCameraManager( const nxcip::CameraInfo& info ) override;
45
48 virtual int getReservedModelList( char** modelList, int* count ) override;
49
51 virtual int getCapabilities() const override;
52
53 private:
54 nxpt::CommonRefManager m_refManager;
55 };
DiscoveryManager::getVendorName
virtual void getVendorName(char *buf) const override
Implementation of nxcip::CameraDiscoveryManager::getVendorName.
Definition: discovery_manager.cpp:63
DiscoveryManager::findCameras
virtual int findCameras(nxcip::CameraInfo *cameras, const char *localInterfaceIPAddr) override
Implementation of nxcip::CameraDiscoveryManager::findCameras.
Definition: discovery_manager.cpp:68
DiscoveryManager::queryInterface
virtual void * queryInterface(const nxpl::NX_GUID &interfaceID) override
Implementation of nxpl::PluginInterface::queryInterface.
Definition: discovery_manager.cpp:25
nxcip::CameraDiscoveryManager3
Definition: camera_plugin.h:252
DiscoveryManager
Represents defined (in settings) image directories as cameras with dts archive storage.
Definition: discovery_manager.h:9
DiscoveryManager::releaseRef
virtual int releaseRef() const override
Implementation of nxpl::PluginInterface::releaseRef.
Definition: discovery_manager.cpp:56
DiscoveryManager::findCameras2
virtual int findCameras2(nxcip::CameraInfo2 *cameras, const char *serverURL) override
Implementation of nxcip::CameraDiscoveryManager2::findCameras2.
Definition: discovery_manager.cpp:73
DiscoveryManager::addRef
virtual int addRef() const override
Implementation of nxpl::PluginInterface::addRef.
Definition: discovery_manager.cpp:51
DiscoveryManager::getCapabilities
virtual int getCapabilities() const override
Implementation of nxcip::CameraDiscoveryManager3::getCapabilities.
Definition: discovery_manager.cpp:169
DiscoveryManager::createCameraManager
virtual nxcip::BaseCameraManager * createCameraManager(const nxcip::CameraInfo &info) override
Implementation of nxcip::CameraDiscoveryManager::createCameraManager.
Definition: discovery_manager.cpp:153
nxpl::NX_GUID
GUID of plugin interface.
Definition: plugin_api.h:26
nxcip::CameraInfo
Contains base camera information.
Definition: camera_plugin.h:73
DiscoveryManager::fromMDNSData
virtual int fromMDNSData(const char *discoveredAddress, const unsigned char *mdnsResponsePacket, int mdnsResponsePacketSize, nxcip::CameraInfo *cameraInfo) override
Implementation of nxcip::CameraDiscoveryManager::fromMDNSData.
Definition: discovery_manager.cpp:139
DiscoveryManager::getReservedModelList
virtual int getReservedModelList(char **modelList, int *count) override
Implementation of nxcip::CameraDiscoveryManager::getReservedModelList.
Definition: discovery_manager.cpp:163
nxcip::CameraInfo2
Definition: camera_plugin.h:118
nxpt::CommonRefManager
Definition: plugin_tools.h:67
plugin_tools.h
DiscoveryManager::fromUpnpData
virtual int fromUpnpData(const char *upnpXMLData, int upnpXMLDataSize, nxcip::CameraInfo *cameraInfo) override
Implementation of nxcip::CameraDiscoveryManager::fromUpnpData.
Definition: discovery_manager.cpp:148
DiscoveryManager::checkHostAddress2
virtual int checkHostAddress2(nxcip::CameraInfo2 *cameras, const char *address, const char *login, const char *password) override
Implementation of nxcip::CameraDiscoveryManager2::checkHostAddress.
Definition: discovery_manager.cpp:134
nxcip::BaseCameraManager
Provides base camera operations: getting/settings fps, resolution, bitrate, media stream url(s)...
Definition: camera_plugin.h:533
DiscoveryManager::checkHostAddress
virtual int checkHostAddress(nxcip::CameraInfo *cameras, const char *address, const char *login, const char *password) override
Implementation of nxcip::CameraDiscoveryManager::checkHostAddress.
Definition: discovery_manager.cpp:78