OpenAB
1.0.1
|
Class representing PIM contact item. More...
#include <PIMContactItem.hpp>
Public Member Functions | |
PIMContactItem () | |
Constructor. More... | |
virtual | ~PIMContactItem () |
Destructor, virtual by default. More... | |
bool | parse (const std::string &vCard) |
Parses PIMContacItem from vCard string. More... | |
SmartPtr< PIMItemIndex > | getIndex () |
Returns index for given item. More... | |
std::string | getRawData () const |
Returns vCard string of item. More... | |
void | setId (const PIMItem::ID &id, bool replace=false) |
Sets id of item. More... | |
Public Member Functions inherited from OpenAB::PIMItem | |
PIMItem (PIMItemType t) | |
Constructor. More... | |
virtual | ~PIMItem () |
Destructor, virtual by default. More... | |
virtual ID | getId () const |
Returns Source/Storage specific id of item. Can be empty, as not all Sources/Storages provides id of items. More... | |
virtual Revision | getRevision () const |
Returns Source/Storage specific revision of item. Can be empty, as not all Sources/Storages provides revision of items. More... | |
virtual void | setRevision (const Revision &rev) |
Sets revision of item. More... | |
PIMItemType | getType () const |
Returns type of item. More... | |
Additional Inherited Members | |
Public Types inherited from OpenAB::PIMItem | |
typedef std::string | ID |
typedef std::string | Revision |
typedef std::vector < OpenAB::PIMItem::ID > | IDs |
typedef std::vector < OpenAB::PIMItem::Revision > | Revisions |
Protected Attributes inherited from OpenAB::PIMItem | |
PIMItemType | type |
ID | id |
Revision | revision |
Class representing PIM contact item.
OpenAB::PIMContactItem::PIMContactItem | ( | ) |
Constructor.
|
virtual |
Destructor, virtual by default.
|
virtual |
|
virtual |
|
virtual |
Parses PIMContacItem from vCard string.
[in] | vCard | vCard string to be parsed. |
Implements OpenAB::PIMItem.
|
virtual |
Sets id of item.
[in] | id | to be assigned |
[in] | replace | should UID in vCard be replaced with given id |
Reimplemented from OpenAB::PIMItem.