11#include <kpeople/kpeople_export.h>
20class PersonDataPrivate;
37 Q_PROPERTY(QString name READ name NOTIFY dataChanged)
38 Q_PROPERTY(QPixmap photo READ photo NOTIFY dataChanged)
39 Q_PROPERTY(QString presenceIconName READ presenceIconName NOTIFY dataChanged)
46 Q_PROPERTY(
bool isEditable READ isEditable CONSTANT)
53 PersonData(
const QString &
id, QObject *parent =
nullptr);
143 KPEOPLE_NO_EXPORT
void onContactChanged();
148 PersonDataPrivate *d_ptr;
Allows to query the information about a given person.
Definition persondata.h:35
QString email() const
Returns the contact's preferred email address.
bool setContactCustomProperty(const QString &key, const QVariant &value)
Sends a desired value for the contact according to the key.
void dataChanged()
One of the contact sources has changed.
QUrl pictureUrl() const
Returns a the url of the picture that represents the contact.
QStringList allEmails() const
Returns all e-mail addresses from the person.
QString presence() const
Returns the contact's online presence.
PersonData(const QString &id, QObject *parent=nullptr)
Creates a Person object from a given ID.
QString personUri() const
Returns the person's id.
bool isValid() const
Returns true if this PersonData is mapped to some existing contact.
QStringList contactUris() const
Returns a list of contact ids that identify the PersonData instance.
QString presenceIconName() const
QStringList groups() const
Returns all groups the person is in.
QVariant contactCustomProperty(const QString &key) const