10 #ifndef PIMCONTACTITEM_HPP_
11 #define PIMCONTACTITEM_HPP_
51 bool parse(
const std::string& vCard);
67 bool replace =
false);
70 std::map<std::string, std::vector<VCardField> > getFields()
77 void substituteVCardUID(
const std::string newUID);
84 std::map<std::string, std::vector<VCardField> > fields;
121 bool parse(std::string vCardFieldString);
127 void setValue (
const std::string& value);
156 std::map<std::string, std::set<std::string> >
getParams()
const;
159 void processParam(std::string paramLine);
161 void addParam(std::string paramName, std::set<std::string> values);
165 std::map<std::string, std::set<std::string> > params;
185 #endif // PIMCONTACTITEM_HPP_
void setValue(const std::string &value)
Sets given value.
Definition: PIMContactItem.cpp:65
Helper class for handling vCard fields of PHOTO or LOGO type.
Definition: PIMContactItem.hpp:171
Smart pointer implementation for safely passing around dynamically created data. Smart pointers are r...
Definition: SmartPtr.hpp:32
static unsigned long GetCheckSum(const VCardField &photoField)
calculates checksum of photo field. Field can have photo data embedded as value or contain URI pointi...
Definition: PIMContactItem.cpp:466
std::string getValue() const
Returns value of VCardField. VCardField value is the string that occurred after last ":" character in...
Definition: PIMContactItem.cpp:155
bool parse(std::string vCardFieldString)
Parses field from string.
Definition: PIMContactItem.cpp:32
bool operator<(const VCardField &other) const
Comparison operator. Compares two VCardField objects in alphabetical order (using toString to create ...
Definition: PIMContactItem.cpp:165
std::map< std::string, std::set< std::string > > getParams() const
Return map of all parameters assigned to given field.
Definition: PIMContactItem.cpp:160
~VCardField()
Destructor, virtual by default.
Definition: PIMContactItem.cpp:30
VCardField()
Default constructor.
Definition: PIMContactItem.cpp:26
std::string ID
Definition: PIMItem.hpp:64
std::string toString() const
Converts content of VCardField into string format. Used for comparing two VCardField instances and fo...
Definition: PIMContactItem.cpp:113
Represents single parsed vCard field. Filed has its value and additionally it can have set of paramet...
Definition: PIMContactItem.hpp:98
Class representing PIM item.
Definition: PIMItem.hpp:22