KPeople::AbstractContact Class

KPeople::AbstractContact is the class to provide the data from a given contact by the backends. More...

Header: #include <KPeopleBackend/AbstractContact>
CMake: find_package(KF6 REQUIRED COMPONENTS PeopleBackend)
target_link_libraries(mytarget PRIVATE KF6::PeopleBackend)
Since: 5.8

Public Types

Public Functions

AbstractContact()
virtual QVariant customProperty(const QString &key) const = 0

Static Public Members

const QString AllEmailsProperty
const QString AllPhoneNumbersProperty
const QString EmailProperty
const QString GroupsProperty
const QString NameProperty
const QString PhoneNumberProperty
const QString PictureProperty
const QString PresenceProperty
const QString VCardProperty

Detailed Description

To obtain it from a front-end application PersonData and PersonsModel should be used.

Member Type Documentation

AbstractContact::List

AbstractContact::Ptr

Member Function Documentation

AbstractContact::AbstractContact()

[pure virtual] QVariant AbstractContact::customProperty(const QString &key) const

Generic method to access a random contact property

Returns the value for the key property.

Member Variable Documentation

const QString AbstractContact::AllEmailsProperty

QVariantList property that lists the emails the contact has

const QString AbstractContact::AllPhoneNumbersProperty

QVariantList property that lists all phone numbers the contact has

const QString AbstractContact::EmailProperty

String property representing the preferred name of the contact

const QString AbstractContact::GroupsProperty

QVariantList property that lists the groups the contacts belongs to

const QString AbstractContact::NameProperty

String property representing the display name of the contact

const QString AbstractContact::PhoneNumberProperty

String property representing the preferred phone number of the contact

const QString AbstractContact::PictureProperty

QUrl or QPixmap property representing the contacts' avatar

const QString AbstractContact::PresenceProperty

String property representing the IM presence of the contact.

See also KPeople::iconNameForPresenceString().

const QString AbstractContact::VCardProperty

QByteArray with the raw vcard information