49 virtual bool parse(
const std::string& raw) = 0;
64 typedef std::string
ID;
110 typedef std::vector<OpenAB::PIMItem::ID>
IDs;
111 typedef std::vector<OpenAB::PIMItem::Revision>
Revisions;
131 #endif // PIMITEM_HPP_
std::string Revision
Definition: PIMItem.hpp:89
virtual bool parse(const std::string &raw)=0
Parses item from string. Format of string to be parsed from depends on type of item.
virtual Revision getRevision() const
Returns Source/Storage specific revision of item. Can be empty, as not all Sources/Storages provides ...
Definition: PIMItem.hpp:96
virtual SmartPtr< PIMItemIndex > getIndex()=0
Returns index for given item.
virtual ~PIMItem()
Destructor, virtual by default.
Definition: PIMItem.hpp:38
PIMItemType getType() const
Returns type of item.
Definition: PIMItem.hpp:118
virtual ID getId() const
Returns Source/Storage specific id of item. Can be empty, as not all Sources/Storages provides id of ...
Definition: PIMItem.hpp:71
std::vector< OpenAB::PIMItem::Revision > Revisions
Definition: PIMItem.hpp:111
Smart pointer implementation for safely passing around dynamically created data. Smart pointers are r...
Definition: SmartPtr.hpp:32
PIMItem(PIMItemType t)
Constructor.
Definition: PIMItem.hpp:30
std::vector< OpenAB::PIMItem::ID > IDs
Definition: PIMItem.hpp:110
PIMItemType type
Definition: PIMItem.hpp:124
ID id
Definition: PIMItem.hpp:125
virtual std::string getRawData() const =0
Returns raw data of item. Format of raw data depends on type of item.
virtual void setRevision(const Revision &rev)
Sets revision of item.
Definition: PIMItem.hpp:105
PIMItemType
Definition: PIMItemIndex.hpp:24
virtual void setId(const ID &id, bool replace=false)
Sets id of item.
Definition: PIMItem.hpp:82
std::string ID
Definition: PIMItem.hpp:64
Revision revision
Definition: PIMItem.hpp:126
Class representing PIM item.
Definition: PIMItem.hpp:22