nx_cloud_storage_sdk
1.0
Cloud Storage SDK
|
Public Member Functions | |
Engine (const nx::sdk::cloud_storage::IArchiveUpdateHandler *deviceManagerHandler, const std::string &pluginId) | |
virtual void | startNotifications () override |
virtual void | stopNotifications () override |
virtual void | doQueryBookmarks (const char *filter, nx::sdk::Result< nx::sdk::IString *> *outResult) override |
virtual nx::sdk::ErrorCode | deleteBookmark (const char *bookmarkId) override |
virtual nx::sdk::ErrorCode | saveMetadata (const char *deviceId, int64_t timeStampUs, nx::sdk::cloud_storage::MetadataType type, const char *data) override |
virtual bool | isOnline () const override |
virtual nx::sdk::ErrorCode | storageSpace (nx::sdk::cloud_storage::StorageSpace *storageSpace) const override |
virtual nx::sdk::ErrorCode | saveBestShotImage (const char *data) override |
![]() | |
RefCountable (const RefCountable &)=delete | |
RefCountable (RefCountable &&)=delete | |
RefCountable & | operator= (const RefCountable &)=delete |
RefCountable & | operator= (RefCountable &&)=delete |
virtual int | addRef () const override |
virtual int | releaseRef () const override |
int | refCount () const |
![]() | |
virtual Result< IDeviceAgent * > | obtainDeviceAgent (const IDeviceInfo *deviceInfo) |
Result< IString * > | queryBookmarks (const char *filter) |
Result< IString * > | queryMotionTimePeriods (const char *filter) |
Result< IString * > | queryAnalytics (const char *filter) |
Result< IString * > | queryAnalyticsTimePeriods (const char *filter) |
Result< IString * > | fetchBestShotImage (const char *objectTrackId) const |
![]() | |
virtual IRefCountable * | queryInterface (const InterfaceId *id) |
Ptr< RefCountable > | queryInterface () |
Ptr< const RefCountable > | queryInterface () const |
![]() | |
virtual | ~IRefCountable ()=default |
template<class RefCountable > | |
Ptr< RefCountable > | queryInterface () |
template<class RefCountable > | |
Ptr< const RefCountable > | queryInterface () const |
int | refCountThreadUnsafe () const |
Protected Member Functions | |
virtual void | doObtainDeviceAgent (nx::sdk::Result< nx::sdk::cloud_storage::IDeviceAgent *> *outResult, const nx::sdk::IDeviceInfo *deviceInfo) override |
virtual void | doQueryMotionTimePeriods (const char *filter, nx::sdk::Result< nx::sdk::IString *> *outResult) override |
virtual void | doQueryAnalytics (const char *filter, nx::sdk::Result< nx::sdk::IString *> *outResult) override |
virtual void | doQueryAnalyticsTimePeriods (const char *filter, nx::sdk::Result< nx::sdk::IString *> *outResult) override |
virtual void | doFetchBestShotImage (const char *objectTrackId, nx::sdk::Result< nx::sdk::IString *> *outResult) const override |
![]() | |
virtual IRefCountable * | queryInterface (const IRefCountable::InterfaceId *id) override |
IRefCountable * | queryInterfaceSupportingDeprecatedId (const IRefCountable::InterfaceId *id, const Uuid &deprecatedInterfaceId) |
Additional Inherited Members | |
![]() | |
static auto | interfaceId () |
![]() | |
static auto | interfaceId () |
![]() | |
template<int len> | |
static constexpr const InterfaceId * | makeId (const char(&charArray)[len]) |
template<class TemplateInstance , class TemplateArg , int len> | |
static const InterfaceId * | makeIdForTemplate (const char(&baseIdCharArray)[len]) |
![]() | |
template<typename RefCountable > | |
static constexpr bool | hasAlternativeInterfaceId = HasAlternativeInterfaceId<RefCountable>::value |
|
overridevirtual |
Check if plugin backend is operational. This function will be periodically called by Server.
Implements nx::sdk::cloud_storage::IEngine.
|
overridevirtual |
Add a best shot image to the ObjectTrack
. data
is the JSON representation of the nx::sdk::cloud_storage::Image struct.
Implements nx::sdk::cloud_storage::IEngine.
|
overridevirtual |
data | A null-terminated string containing the JSON of the corresponding metadata object. Refer to Bookmark , ObjectTrack and Motion objects in the sdk/cloud_storage/helpers/data.h for details. |
Implements nx::sdk::cloud_storage::IEngine.
|
overridevirtual |
No IArchiveUpdateHandler::onArchiveUpdated() should be called by the plugin before this function has been called.
Implements nx::sdk::cloud_storage::IEngine.
|
overridevirtual |
No IArchiveUpdateHandler::onArchiveUpdated() should be called by the plugin after this function has been called.
Implements nx::sdk::cloud_storage::IEngine.
|
overridevirtual |
Get backend storage space information.
Implements nx::sdk::cloud_storage::IEngine.