KPeople::AbstractContact
#include <abstractcontact.h>
Public Types | |
typedef QList< AbstractContact::Ptr > | List |
typedef QExplicitlySharedDataPointer< AbstractContact > | Ptr |
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
Definition at line 31 of file abstractcontact.h.
◆ Ptr
Definition at line 30 of file abstractcontact.h.
Constructor & Destructor Documentation
◆ AbstractContact()
AbstractContact::AbstractContact | ( | ) |
Definition at line 21 of file abstractcontact.cpp.
◆ ~AbstractContact()
|
virtual |
Definition at line 25 of file abstractcontact.cpp.
Member Function Documentation
◆ customProperty()
Generic method to access a random contact property.
- Returns
- the value for the
key
property.
Member Data Documentation
◆ AllEmailsProperty
|
static |
QVariantList property that lists the emails the contact has.
Definition at line 63 of file abstractcontact.h.
◆ AllPhoneNumbersProperty
|
static |
QVariantList property that lists all phone numbers the contact has.
Definition at line 46 of file abstractcontact.h.
◆ EmailProperty
|
static |
String property representing the preferred name of the contact.
Definition at line 40 of file abstractcontact.h.
◆ GroupsProperty
|
static |
QVariantList property that lists the groups the contacts belongs to.
Definition at line 60 of file abstractcontact.h.
◆ NameProperty
|
static |
String property representing the display name of the contact.
Definition at line 37 of file abstractcontact.h.
◆ PhoneNumberProperty
|
static |
String property representing the preferred phone number of the contact.
Definition at line 43 of file abstractcontact.h.
◆ PictureProperty
|
static |
QUrl or QPixmap property representing the contacts' avatar.
Definition at line 57 of file abstractcontact.h.
◆ PresenceProperty
|
static |
String property representing the IM presence of the contact.
- See also
- KPeople::iconNameForPresenceString()
Definition at line 52 of file abstractcontact.h.
◆ VCardProperty
|
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:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.