KPeople::AbstractContact

Search for usage in LXR

KPeople::AbstractContact Class Referenceabstract

#include <abstractcontact.h>

Inheritance diagram for KPeople::AbstractContact:

Public Types

typedef QList< AbstractContact::PtrList
 
typedef QExplicitlySharedDataPointer< AbstractContactPtr
 

Public Member Functions

virtual QVariant customProperty (const QString &key) const =0
 
- Public Member Functions inherited from QSharedData
 QSharedData (const QSharedData &)
 

Static Public Attributes

static const QString AllEmailsProperty = QStringLiteral("all-email")
 
static const QString AllPhoneNumbersProperty = QStringLiteral("all-phoneNumber")
 
static const QString EmailProperty = QStringLiteral("email")
 
static const QString GroupsProperty = QStringLiteral("all-groups")
 
static const QString NameProperty = QStringLiteral("name")
 
static const QString PhoneNumberProperty = QStringLiteral("phoneNumber")
 
static const QString PictureProperty = QStringLiteral("picture")
 
static const QString PresenceProperty = QStringLiteral("presence")
 
static const QString VCardProperty = QStringLiteral("vcard")
 

Detailed Description

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
Since
5.62

Definition at line 27 of file abstractcontact.h.

Member Typedef Documentation

◆ List

◆ Ptr

Constructor & Destructor Documentation

◆ AbstractContact()

AbstractContact::AbstractContact ( )

Definition at line 21 of file abstractcontact.cpp.

◆ ~AbstractContact()

AbstractContact::~AbstractContact ( )
virtual

Definition at line 25 of file abstractcontact.cpp.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ AllEmailsProperty

const QString AbstractContact::AllEmailsProperty = QStringLiteral("all-email")
static

QVariantList property that lists the emails the contact has.

Definition at line 63 of file abstractcontact.h.

◆ AllPhoneNumbersProperty

const QString AbstractContact::AllPhoneNumbersProperty = QStringLiteral("all-phoneNumber")
static

QVariantList property that lists all phone numbers the contact has.

Definition at line 46 of file abstractcontact.h.

◆ EmailProperty

const QString AbstractContact::EmailProperty = QStringLiteral("email")
static

String property representing the preferred name of the contact.

Definition at line 40 of file abstractcontact.h.

◆ GroupsProperty

const QString AbstractContact::GroupsProperty = QStringLiteral("all-groups")
static

QVariantList property that lists the groups the contacts belongs to.

Definition at line 60 of file abstractcontact.h.

◆ NameProperty

const QString AbstractContact::NameProperty = QStringLiteral("name")
static

String property representing the display name of the contact.

Definition at line 37 of file abstractcontact.h.

◆ PhoneNumberProperty

const QString AbstractContact::PhoneNumberProperty = QStringLiteral("phoneNumber")
static

String property representing the preferred phone number of the contact.

Definition at line 43 of file abstractcontact.h.

◆ PictureProperty

const QString AbstractContact::PictureProperty = QStringLiteral("picture")
static

QUrl or QPixmap property representing the contacts' avatar.

Definition at line 57 of file abstractcontact.h.

◆ PresenceProperty

const QString AbstractContact::PresenceProperty = QStringLiteral("presence")
static

String property representing the IM presence of the contact.

See also
KPeople::iconNameForPresenceString()

Definition at line 52 of file abstractcontact.h.

◆ VCardProperty

const QString AbstractContact::VCardProperty = QStringLiteral("vcard")
static

QByteArray with the raw vcard information.

Definition at line 66 of file abstractcontact.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.