nx_cloud_storage_sdk
1.0
Cloud Storage SDK
|
#include <i_archive_update_handler.h>
Public Member Functions | |
virtual void | onArchiveUpdated (const char *engineId, nx::sdk::ErrorCode errorCode, const IList< IDeviceArchive > *deviceArchive) const =0 |
![]() | |
virtual IRefCountable * | queryInterface (const InterfaceId *id) |
Ptr< Interface > | queryInterface () |
Ptr< const Interface > | queryInterface () const |
![]() | |
virtual | ~IRefCountable ()=default |
template<class Interface > | |
Ptr< Interface > | queryInterface () |
template<class Interface > | |
Ptr< const Interface > | queryInterface () const |
virtual int | addRef () const =0 |
virtual int | releaseRef () const =0 |
int | refCountThreadUnsafe () const |
Static Public Member Functions | |
static constexpr auto | interfaceId () |
![]() | |
static auto | interfaceId () |
Additional Inherited Members | |
![]() | |
virtual IRefCountable * | queryInterface (const IRefCountable::InterfaceId *id) override |
IRefCountable * | queryInterfaceSupportingDeprecatedId (const IRefCountable::InterfaceId *id, const Uuid &deprecatedInterfaceId) |
![]() | |
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]) |
A pointer to the this class instance is provided to the engine when IPlugin::createEngine() is called. The engine should use it to periodically inform Server about any Archive changes.
|
pure virtual |
Engine should call this periodically to check if something is changed on the backend. I.e. some data was removed due to the retention policy, new data has been recorded, new device appeared. The deviceArchive may be destroyed by the plugin right after the onArchiveUpdated function has returned.