KPeople
persondata.cpp
131 static QString defaultAvatar = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("kpeople/dummy_avatar.png"));
145 QString contactPresence = contactCustomProperty(QStringLiteral("telepathy-presence")).toString();
QString presenceIconName() const
static const QString PictureProperty
QUrl or QPixmap property representing the contacts' avatar.
Definition: abstractcontact.h:62
QString name() const
static const QString AllEmailsProperty
QVariantList property that lists the emails the contact has.
Definition: abstractcontact.h:68
This class loads data for a single contact from a datasource.
Definition: contactmonitor.h:42
Allows to query the information about a given person.
Definition: persondata.h:44
static const QString NameProperty
String property representing the display name of the contact.
Definition: abstractcontact.h:48
AbstractContact::Ptr contact() const
The currently loaded information on this contact.
Definition: contactmonitor.cpp:52
The KPeople namespace contains all the classes for Libkpeople.
QPixmap photo() const
QVariant contactCustomProperty(const QString &key) const
Definition: persondata.cpp:136
static const QString PresenceProperty
String property representing the IM presence of the contact.
Definition: abstractcontact.h:57
KPEOPLE_EXPORT QString iconNameForPresenceString(const QString &presenceName)
Return a QPixmap for a TP presence string.
Definition: global.cpp:38
QStringList allEmails() const
Returns all e-mail addresses from the person.
Definition: persondata.cpp:183
static const QString EmailProperty
String property representing the preferred name of the contact.
Definition: abstractcontact.h:51
static const QString GroupsProperty
QVariantList property that lists the groups the contacts belongs to.
Definition: abstractcontact.h:65
QUrl pictureUrl() const
Returns a the url of the picture that represents the contact.
Definition: persondata.cpp:159
PersonData(const QString &id, QObject *parent=0)
Creates a Person object from a given ID.
Definition: persondata.cpp:45
QStringList contactUris() const
Returns a list of contact ids that identify the PersonData instance.
Definition: persondata.cpp:98
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Fri Feb 13 2015 15:16:39 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2015 The KDE developers.
Generated on Fri Feb 13 2015 15:16:39 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.