10 #ifndef STORAGE_ITEM_HPP_
11 #define STORAGE_ITEM_HPP_
16 namespace OpenAB_Storage {
77 {
return id == lhs.
id &&
123 virtual unsigned int getSize()
const = 0;
Definition: StorageItem.hpp:87
StorageItem()
Default constructor.
Definition: StorageItem.hpp:28
Definition: StorageItem.hpp:86
std::string id
OpenAB_Storage::Storage unique ID of the item.
Definition: StorageItem.hpp:79
virtual SmartPtr< PIMItemIndex > getIndex()=0
Returns index for given item.
Definition: StorageItem.hpp:89
virtual unsigned int getSize() const =0
Retrieve number of items in interator.
This object associates OpenAB::PIMItem with its unique ID from OpenAB_Storage::Storage. Additionally it stores status flag used in synchronization process.
Definition: StorageItem.hpp:22
Definition: StorageItem.hpp:85
StorageItem(std::string i, OpenAB::SmartPtr< OpenAB::PIMItem > v)
Constructor.
Definition: StorageItem.hpp:47
virtual StorageItem * next()=0
Retrieve the next StorageItem.
The StorageItemIterator is mainly used to quickly browse the Storage contents.
Definition: StorageItem.hpp:97
virtual ~StorageItemIterator()
Definition: StorageItem.hpp:101
StorageItem(const StorageItem &other)
Copy constructor.
Definition: StorageItem.hpp:57
virtual StorageItem operator*()=0
Retrieve the current StorageItem.
enum OpenAB_Storage::StorageItem::@1 status
StorageItem(std::string i, OpenAB::PIMItem *v)
Constructor.
Definition: StorageItem.hpp:36
Definition: StorageItem.hpp:88
bool operator==(const StorageItem &lhs)
Comparison operator. Compares id, status and OpenAB::PIMItemIndex of both instance.
Definition: StorageItem.hpp:76
StorageItemIterator()
Definition: StorageItem.hpp:100
virtual StorageItem * operator->()=0
Retrieve the current StorageItem.
~StorageItem()
Destructor.
Definition: StorageItem.hpp:67
Class representing PIM item.
Definition: PIMItem.hpp:22
OpenAB::SmartPtr< OpenAB::PIMItem > item
PIMItem.
Definition: StorageItem.hpp:82