ItemEventProtocol

Declared In:

Introduction

Protocol for implementing a Item delegate. Abstract base class which is used when you want notification about changes in folder and on documents.



Member Functions

onContainerAdded
onContainerMoved
onContainerRemoved
onContainerRenamed
onContainerRestored
onItemError
onJoinError
onLoadError
onMetadataAdded
onObjectAdded
onObjectMoved
onObjectRemoved
onObjectRenamed
onObjectUpdated
onQueryLoaded
onStreamsLoaded

onContainerAdded


public

virtual void onContainerAdded( cbe::Container&& container);
Discussion

Gets called when a Container has been added.


onContainerMoved


public

virtual void onContainerMoved( cbe::Container&& container);
Discussion

Gets called when a Container has been moved.


onContainerRemoved


public

virtual void onContainerRemoved( cbe::ItemId containerId, std::string name);
Discussion

Gets called when a Container has been removed.


onContainerRenamed


public

virtual void onContainerRenamed( cbe::Container&& container);
Discussion

Gets called when a Container has been renamed.


onContainerRestored


public

virtual void onContainerRestored( cbe::Container&& container);
Discussion

Gets called when a Container has been restored.


onItemError


public

virtual void onItemError( cbe::Item&& container, cbe::item_t type, uint32_t code, std::string reason, std::string message);
Discussion

Gets called when an error regarding an item occurred. e.g create rename, move, remove


onJoinError


public

virtual void onJoinError( uint32_t code, std::string reason, std::string message);
Discussion

Gets called when an join error has happened, ex: Bad Request in form of key word searching for table does not exist.


onLoadError


public

virtual void onLoadError( cbe::Filter&& filter, uint32_t code, std::string reason, std::string message);
Discussion

If a query fail e.g a filter requesting a container or object that does not exists, a loadError will happen. "In the future when there will be micro clouds with edge nodes including central clouds you will be able to ask for containers and objects from different peering points in the hierarchy and might then fail if the object or container is not loacated in that point (due to settings in where you want data replicated).


onMetadataAdded


public

virtual void onMetadataAdded( cbe::Object&& object);
Discussion

Gets called when Metadata has been saved/Added.


onObjectAdded


public

virtual void onObjectAdded( cbe::Object&& object);
Discussion

Gets called when a Object has been added.


onObjectMoved


public

virtual void onObjectMoved( cbe::Object&& object);
Discussion

Gets called when a Object has been moved.


onObjectRemoved


public

virtual void onObjectRemoved( cbe::ItemId objectId, std::string name);
Discussion

Gets called when a Object has been removed.


onObjectRenamed


public

virtual void onObjectRenamed( cbe::Object&& object);
Discussion

Gets called when a Object has been renamed.


onObjectUpdated


public

virtual void onObjectUpdated( cbe::Object&& object);
Discussion

Gets called when a Object has been Updated.


onQueryLoaded


public

virtual void onQueryLoaded( cbe::QueryResult&& dir);
Discussion

Gets called when a Query has been loaded either from cache or edge / cloud


onStreamsLoaded


public

virtual void onStreamsLoaded( cbe::Object&& object);
Discussion

Gets called when a Object has been Updated.