Represents single parsed vCard field. Filed has its value and additionally it can have set of parameters (each of parameter can have multiple values).
More...
#include <PIMContactItem.hpp>
Represents single parsed vCard field. Filed has its value and additionally it can have set of parameters (each of parameter can have multiple values).
- Note
- example of vCard field with multiple parameters: TEL;TYPE=WORK;TYPE=FAX:0035387123100 the same field can be written as TEL;TYPE=WORK,FAX:0035387123100
OpenAB::VCardField::VCardField |
( |
| ) |
|
OpenAB::VCardField::VCardField |
( |
const std::string & |
v | ) |
|
OpenAB::VCardField::~VCardField |
( |
| ) |
|
Destructor, virtual by default.
std::map< std::string, std::set< std::string > > OpenAB::VCardField::getParams |
( |
| ) |
const |
Return map of all parameters assigned to given field.
- Returns
- map of all parameters assigned to field.
std::string OpenAB::VCardField::getValue |
( |
| ) |
const |
Returns value of VCardField. VCardField value is the string that occurred after last ":" character in field string from vCard.
- Returns
- value of VCardField.
bool OpenAB::VCardField::operator< |
( |
const VCardField & |
other | ) |
const |
Comparison operator. Compares two VCardField objects in alphabetical order (using toString to create string representation of VCardField).
- Parameters
-
- Returns
- true if field should be sorted before other field (according to their string representations).
bool OpenAB::VCardField::parse |
( |
std::string |
vCardFieldString | ) |
|
Parses field from string.
- Parameters
-
[in] | vCardFieldString | field string from vCard to be parsed. |
- Returns
- true if field was parsed successfully, false otherwise.
void OpenAB::VCardField::setValue |
( |
const std::string & |
value | ) |
|
Sets given value.
- Parameters
-
std::string OpenAB::VCardField::toString |
( |
| ) |
const |
Converts content of VCardField into string format. Used for comparing two VCardField instances and for debugging purposes.
- Returns
- string representation of VCardField.
The documentation for this class was generated from the following files: