Akonadi::ContactMetaData Class Reference
#include <contactmetadata_p.h>
Public Member Functions | |
| ContactMetaData () | |
| ~ContactMetaData () | |
| QVariantList | customFieldDescriptions () const |
| int | displayNameMode () const |
| void | load (const Akonadi::Item &contact) |
| void | setCustomFieldDescriptions (const QVariantList &descriptions) |
| void | setDisplayNameMode (int mode) |
| void | store (Akonadi::Item &contact) |
Detailed Description
A helper class for storing contact specific settings.
Constructor & Destructor Documentation
| Akonadi::ContactMetaData::ContactMetaData | ( | ) |
Creates a contact meta data object.
| Akonadi::ContactMetaData::~ContactMetaData | ( | ) |
Destroys the contact meta data object.
Member Function Documentation
| QVariantList Akonadi::ContactMetaData::customFieldDescriptions | ( | ) | const |
Returns the descriptions of the custom fields of the contact.
| int Akonadi::ContactMetaData::displayNameMode | ( | ) | const |
Returns the mode that is used for the display name of that contact.
| void Akonadi::ContactMetaData::load | ( | const Akonadi::Item & | contact | ) |
Loads the meta data for the given contact.
| void Akonadi::ContactMetaData::setCustomFieldDescriptions | ( | const QVariantList & | descriptions | ) |
Sets the descriptions of the custom fields of that contact.
The description list contains a QVariantMap for each custom field with the following keys:
- key (string) The identifier of the field
- title (string) The i18n'ed title of the field
- type (string) The type description of the field Possible values for type description are
- text
- numeric
- boolean
- date
- time
- datetime
| void Akonadi::ContactMetaData::setDisplayNameMode | ( | int | mode | ) |
Sets the mode that is used for the display name of that contact.
| void Akonadi::ContactMetaData::store | ( | Akonadi::Item & | contact | ) |
Stores the meta data to the given contact.
The documentation for this class was generated from the following file:
KDE 4.7 API Reference