KPeople
#include <persondata.h>
Inherits QObject.
Signals | |
void | dataChanged () |
Public Member Functions | |
PersonData (const QString &id, QObject *parent=0) | |
QStringList | allEmails () const |
QVariant | contactCustomProperty (const QString &key) const |
QStringList | contactUris () const |
QString | email () const |
QStringList | groups () const |
QString | name () const |
QString | personUri () const |
QPixmap | photo () const |
QUrl | pictureUrl () const |
QString | presence () const |
QString | presenceIconName () const |
Properties | |
QString | name |
QPixmap | photo |
QString | presenceIconName |
Detailed Description
Allows to query the information about a given person.
PersonData exposes the information of a given person (in contrast to everyone available, which is done by PersonsModel). This class will provide comfortable interfaces so it can be easily adopted in any application.
Definition at line 44 of file persondata.h.
Constructor & Destructor Documentation
KPeople::PersonData::PersonData | ( | const QString & | id, |
QObject * | parent = 0 |
||
) |
Creates a Person object from a given ID.
The ID can be either a local application specific ID (such as akonadi://?item=15) or a kpeople ID in the form kpeople://15
Definition at line 45 of file persondata.cpp.
Member Function Documentation
QStringList PersonData::allEmails | ( | ) | const |
Returns all e-mail addresses from the person.
Definition at line 183 of file persondata.cpp.
QVariant PersonData::contactCustomProperty | ( | const QString & | key | ) | const |
- Returns
- the property for a said
key
.
Definition at line 136 of file persondata.cpp.
QStringList PersonData::contactUris | ( | ) | const |
Returns a list of contact ids that identify the PersonData instance.
Definition at line 98 of file persondata.cpp.
|
signal |
One of the contact sources has changed.
QString PersonData::email | ( | ) | const |
Returns the contact's preferred email address.
Definition at line 164 of file persondata.cpp.
QStringList PersonData::groups | ( | ) | const |
Returns all groups the person is in.
Definition at line 169 of file persondata.cpp.
QString KPeople::PersonData::name | ( | ) | const |
- Returns
- the name of the person
QString PersonData::personUri | ( | ) | const |
Returns the person's id.
Definition at line 92 of file persondata.cpp.
QPixmap KPeople::PersonData::photo | ( | ) | const |
- Returns
- a pixmap with the photo of the person, or a default one if not available
QUrl PersonData::pictureUrl | ( | ) | const |
Returns a the url of the picture that represents the contact.
Definition at line 159 of file persondata.cpp.
QString PersonData::presence | ( | ) | const |
Returns the contact's online presence.
Definition at line 154 of file persondata.cpp.
QString KPeople::PersonData::presenceIconName | ( | ) | const |
- Returns
- an icon name that represents the IM status of the person
The documentation for this class was generated from the following files:
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.