KPeople::AbstractContact is the class to provide the data from a given contact by the backends.
More...
#include <abstractcontact.h>
|
typedef QList< AbstractContact::Ptr > | List |
|
typedef QExplicitlySharedDataPointer< AbstractContact > | Ptr |
|
|
virtual QVariant | customProperty (const QString &key) const =0 |
| Generic method to access a random contact property.
|
|
|
static const QString | AllEmailsProperty |
| QVariantList property that lists the emails the contact has.
|
|
static const QString | AllPhoneNumbersProperty |
| QVariantList property that lists all phone numbers the contact has.
|
|
static const QString | EmailProperty |
| String property representing the preferred name of the contact.
|
|
static const QString | GroupsProperty |
| QVariantList property that lists the groups the contacts belongs to.
|
|
static const QString | NameProperty |
| String property representing the display name of the contact.
|
|
static const QString | PhoneNumberProperty |
| String property representing the preferred phone number of the contact.
|
|
static const QString | PictureProperty |
| QUrl or QPixmap property representing the contacts' avatar.
|
|
static const QString | PresenceProperty |
| String property representing the IM presence of the contact.
|
|
static const QString | VCardProperty |
| QByteArray with the raw vcard information.
|
|
KPeople::AbstractContact is the class to provide the data from a given contact by the backends.
Additionally to will allow us to suggest the backend property values for a said key.
To obtain it from a front-end application PersonData and PersonsModel should be used.
- Since
- 5.8
-
5.62
◆ customProperty()
virtual QVariant KPeople::AbstractContact::customProperty |
( |
const QString & |
key | ) |
const |
|
pure virtual |
Generic method to access a random contact property.
- Returns
- the value for the
key
property.
◆ AllEmailsProperty
const QString KPeople::AbstractContact::AllEmailsProperty |
|
static |
QVariantList property that lists the emails the contact has.
◆ AllPhoneNumbersProperty
const QString KPeople::AbstractContact::AllPhoneNumbersProperty |
|
static |
QVariantList property that lists all phone numbers the contact has.
◆ EmailProperty
const QString KPeople::AbstractContact::EmailProperty |
|
static |
String property representing the preferred name of the contact.
◆ GroupsProperty
const QString KPeople::AbstractContact::GroupsProperty |
|
static |
QVariantList property that lists the groups the contacts belongs to.
◆ NameProperty
const QString KPeople::AbstractContact::NameProperty |
|
static |
String property representing the display name of the contact.
◆ PhoneNumberProperty
const QString KPeople::AbstractContact::PhoneNumberProperty |
|
static |
String property representing the preferred phone number of the contact.
◆ PictureProperty
const QString KPeople::AbstractContact::PictureProperty |
|
static |
QUrl or QPixmap property representing the contacts' avatar.
◆ PresenceProperty
const QString KPeople::AbstractContact::PresenceProperty |
|
static |
String property representing the IM presence of the contact.
- See also
- KPeople::iconNameForPresenceString()
◆ VCardProperty
const QString KPeople::AbstractContact::VCardProperty |
|
static |
QByteArray with the raw vcard information.