akonadi
#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.
Definition at line 36 of file contactmetadata_p.h.
Constructor & Destructor Documentation
ContactMetaData::ContactMetaData | ( | ) |
Creates a contact meta data object.
Definition at line 42 of file contactmetadata.cpp.
ContactMetaData::~ContactMetaData | ( | ) |
Destroys the contact meta data object.
Definition at line 47 of file contactmetadata.cpp.
Member Function Documentation
QVariantList ContactMetaData::customFieldDescriptions | ( | ) | const |
Returns the descriptions of the custom fields of the contact.
Definition at line 101 of file contactmetadata.cpp.
int ContactMetaData::displayNameMode | ( | ) | const |
Returns the mode that is used for the display name of that contact.
Definition at line 91 of file contactmetadata.cpp.
void ContactMetaData::load | ( | const Akonadi::Item & | contact | ) |
Loads the meta data for the given contact
.
Definition at line 52 of file contactmetadata.cpp.
void ContactMetaData::setCustomFieldDescriptions | ( | const QVariantList & | descriptions | ) |
Sets the descriptions
of the custom fields of that contact.
- Parameters
-
descriptions the descriptions to set 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
Definition at line 96 of file contactmetadata.cpp.
void ContactMetaData::setDisplayNameMode | ( | int | mode | ) |
Sets the mode that is used for the display name of that contact.
Definition at line 86 of file contactmetadata.cpp.
void ContactMetaData::store | ( | Akonadi::Item & | contact | ) |
Stores the meta data to the given contact
.
Definition at line 70 of file contactmetadata.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.