nx_server_plugin_sdk 1.0 Server Plugin SDK

axis_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
14 class AxisCameraDiscoveryManager
15 :
16 public nxcip::CameraDiscoveryManager
17 {
18 public:
19 AxisCameraDiscoveryManager();
20 virtual ~AxisCameraDiscoveryManager();
21
23 virtual void* queryInterface( const nxpl::NX_GUID& interfaceID ) override;
25 virtual int addRef() const override;
27 virtual int releaseRef() const override;
28
30 virtual void getVendorName( char* buf ) const override;
32 virtual int findCameras( nxcip::CameraInfo* cameras, const char* localInterfaceIPAddr ) override;
34 virtual int checkHostAddress( nxcip::CameraInfo* cameras, const char* address, const char* login, const char* password ) override;
36 virtual int fromMDNSData(
37 const char* discoveredAddress,
38 const unsigned char* mdnsResponsePacket,
39 int mdnsResponsePacketSize,
40 nxcip::CameraInfo* cameraInfo ) override;
42 virtual int fromUpnpData( const char* upnpXMLData, int upnpXMLDataSize, nxcip::CameraInfo* cameraInfo ) override;
44 virtual nxcip::BaseCameraManager* createCameraManager( const nxcip::CameraInfo& info ) override;
46 virtual int getReservedModelList( char** modelList, int* count ) override;
47
48 private:
49 nxpt::CommonRefManager m_refManager;
50 };
AxisCameraDiscoveryManager::findCameras
virtual int findCameras(nxcip::CameraInfo *cameras, const char *localInterfaceIPAddr) override
Implementation of nxcip::CameraDiscoveryManager::findCameras.
Definition: axis_discovery_manager.cpp:59
AxisCameraDiscoveryManager::fromUpnpData
virtual int fromUpnpData(const char *upnpXMLData, int upnpXMLDataSize, nxcip::CameraInfo *cameraInfo) override
Implementation of nxcip::CameraDiscoveryManager::fromUpnpData.
Definition: axis_discovery_manager.cpp:206
AxisCameraDiscoveryManager
Discovers AXIS cameras with MDNS search method (implements nxcip::CameraDiscoveryManager) ...
Definition: axis_discovery_manager.h:14
AxisCameraDiscoveryManager::fromMDNSData
virtual int fromMDNSData(const char *discoveredAddress, const unsigned char *mdnsResponsePacket, int mdnsResponsePacketSize, nxcip::CameraInfo *cameraInfo) override
Implementation of nxcip::CameraDiscoveryManager::fromMDNSData.
Definition: axis_discovery_manager.cpp:145
AxisCameraDiscoveryManager::createCameraManager
virtual nxcip::BaseCameraManager * createCameraManager(const nxcip::CameraInfo &info) override
Implementation of nxcip::CameraDiscoveryManager::createCameraManager.
Definition: axis_discovery_manager.cpp:212
nxpl::NX_GUID
GUID of plugin interface.
Definition: plugin_api.h:26
AxisCameraDiscoveryManager::getReservedModelList
virtual int getReservedModelList(char **modelList, int *count) override
Implementation of nxcip::CameraDiscoveryManager::getReservedModelList.
Definition: axis_discovery_manager.cpp:220
nxcip::CameraDiscoveryManager
This interface is used to find cameras and create BaseCameraManager instance.
Definition: camera_plugin.h:161
nxcip::CameraInfo
Contains base camera information.
Definition: camera_plugin.h:73
nxpt::CommonRefManager
Definition: plugin_tools.h:67
AxisCameraDiscoveryManager::getVendorName
virtual void getVendorName(char *buf) const override
Implementation of nxcip::CameraDiscoveryManager::getVendorName.
Definition: axis_discovery_manager.cpp:54
plugin_tools.h
AxisCameraDiscoveryManager::queryInterface
virtual void * queryInterface(const nxpl::NX_GUID &interfaceID) override
Implementation of nxpl::PluginInterface::queryInterface.
Definition: axis_discovery_manager.cpp:27
nxcip::BaseCameraManager
Provides base camera operations: getting/settings fps, resolution, bitrate, media stream url(s)...
Definition: camera_plugin.h:533
AxisCameraDiscoveryManager::checkHostAddress
virtual int checkHostAddress(nxcip::CameraInfo *cameras, const char *address, const char *login, const char *password) override
Implementation of nxcip::CameraDiscoveryManager::checkHostAddress.
Definition: axis_discovery_manager.cpp:65
AxisCameraDiscoveryManager::addRef
virtual int addRef() const override
Implementation of nxpl::PluginInterface::addRef.
Definition: axis_discovery_manager.cpp:42
AxisCameraDiscoveryManager::releaseRef
virtual int releaseRef() const override
Implementation of nxpl::PluginInterface::releaseRef.
Definition: axis_discovery_manager.cpp:47