10 #ifndef PIM_STORAGE_HPP_
11 #define PIM_STORAGE_HPP_
26 namespace OpenAB_Storage {
114 : OpenAB_Source::
Source(t)
287 std::map<std::string, std::string>& revisions,
288 std::vector<OpenAB::PIMItem::ID>& removed) = 0;
315 #endif // PIM_STORAGE_HPP_
std::string Revision
Definition: PIMItem.hpp:89
Failure during the operation.
Definition: Storage.hpp:267
virtual OpenAB_Storage::Storage::eGetRevisions getChangedRevisions(const std::string &token, std::map< std::string, std::string > &revisions, std::vector< OpenAB::PIMItem::ID > &removed)=0
Gets revisions of items changed since Storage was in state identified by token.
Failure during the operation.
Definition: Storage.hpp:128
Item was correctly modified.
Definition: Storage.hpp:165
eModifyItem
Definition: Storage.hpp:164
virtual enum eRemoveItem removeItems(const OpenAB::PIMItem::IDs &ids)=0
Removes items from the Storage.
std::vector< OpenAB::PIMItem::Revision > Revisions
Definition: PIMItem.hpp:111
eAddItem
Definition: Storage.hpp:126
virtual enum eModifyItem modifyItems(const std::vector< OpenAB::SmartPtr< OpenAB::PIMItem > > &items, const OpenAB::PIMItem::IDs &ids, OpenAB::PIMItem::Revisions &revisions)=0
Modifies items (OpenAB::PIMItem) in the Storage.
Documentation for Storage plugin interface. Generic interface is modeled over Sync Plugin specific re...
Definition: Storage.hpp:106
virtual OpenAB_Storage::Storage::eGetRevisions getRevisions(std::map< std::string, std::string > &revisions)=0
Gets revision of the items from the Storage.
Item was correctly removed.
Definition: Storage.hpp:202
Item was correctly found.
Definition: Storage.hpp:227
virtual StorageItemIterator * newStorageItemIterator()=0
Retrieve an new Iterator to quickly parse the list of items.
The StorageItemIterator is mainly used to quickly browse the Storage contents.
Definition: StorageItem.hpp:97
Failure during the operation, or tokens are not supported.
Definition: Storage.hpp:253
std::vector< OpenAB::PIMItem::ID > IDs
Definition: PIMItem.hpp:110
virtual enum eModifyItem modifyItem(const OpenAB::SmartPtr< OpenAB::PIMItem > &item, const OpenAB::PIMItem::ID &id, OpenAB::PIMItem::Revision &revision)=0
Modifies item (OpenAB::PIMItem) in the Storage.
Documentation for Source plugin interface.
Definition: Source.hpp:76
Failure during the operation.
Definition: Storage.hpp:228
eGetItemRet
Definition: Source.hpp:155
Storage(OpenAB::PIMItemType t)
Constructor.
Definition: Storage.hpp:113
virtual enum eRemoveItem removeItem(const OpenAB::PIMItem::ID &id)=0
Removes item from the Storage.
PIMItemType
Definition: PIMItemIndex.hpp:24
eGetItem
Definition: Storage.hpp:226
eGetRevisions
Definition: Storage.hpp:265
virtual enum eAddItem addItems(const std::vector< OpenAB::SmartPtr< OpenAB::PIMItem > > &items, OpenAB::PIMItem::IDs &newIds, OpenAB::PIMItem::Revisions &revisions)=0
Adds new items (OpenAB::PIMItem) to the Storage.
Failure during the operation.
Definition: Storage.hpp:203
Token was correctly retrieved.
Definition: Storage.hpp:252
virtual ~Storage()
Destructor, virtual by default.
Definition: Storage.hpp:120
virtual enum eAddItem addItem(const OpenAB::SmartPtr< OpenAB::PIMItem > &item, OpenAB::PIMItem::ID &newId, OpenAB::PIMItem::Revision &revision)=0
Adds a new item (OpenAB::PIMItem) to the Storage.
Item/Items correctly added.
Definition: Storage.hpp:127
Source(OpenAB::PIMItemType t)
Constructor.
Definition: Source.hpp:83
DECLARE_PLUGIN_INTERFACE(OpenAB_Storage, Storage, Parameters)
Revisions was correctly retrieved.
Definition: Storage.hpp:266
eGetSyncToken
Definition: Storage.hpp:251
OpenAB_Plugin::GenericParameters Parameters
Use generic parameters.
Definition: Storage.hpp:97
virtual enum eGetItem getItems(const OpenAB::PIMItem::IDs &ids, std::vector< OpenAB::SmartPtr< OpenAB::PIMItem > > &items)=0
Get the items from the Storage.
std::string ID
Definition: PIMItem.hpp:64
Failure during the operation.
Definition: Storage.hpp:166
virtual OpenAB_Storage::Storage::eGetSyncToken getLatestSyncToken(std::string &token)=0
If storage supports tracking of items changes, it returns latest status identifier of the storage...
Generic storage for plugin parameters. Allows to store map of parameters with different types (OpenAB...
Definition: GenericParameters.hpp:25
eRemoveItem
Definition: Storage.hpp:201
virtual enum eGetItemRet getItem(OpenAB::SmartPtr< OpenAB::PIMItem > &item)=0
Gets PIM Item from Source. If Source is suspended getItem() should block until Source will be resumed...