KPeople
persondata.cpp
161 QString contactPresence = contactCustomProperty(QStringLiteral("telepathy-presence")).toString();
static const QString NameProperty
String property representing the display name of the contact.
Definition abstractcontact.h:37
static const QString EmailProperty
String property representing the preferred name of the contact.
Definition abstractcontact.h:40
static const QString AllEmailsProperty
QVariantList property that lists the emails the contact has.
Definition abstractcontact.h:63
static const QString PresenceProperty
String property representing the IM presence of the contact.
Definition abstractcontact.h:52
static const QString GroupsProperty
QVariantList property that lists the groups the contacts belongs to.
Definition abstractcontact.h:60
static const QString PictureProperty
QUrl or QPixmap property representing the contacts' avatar.
Definition abstractcontact.h:57
This class loads data for a single contact from a datasource.
Definition contactmonitor.h:31
AbstractContact::Ptr contact() const
The currently loaded information on this contact.
Definition contactmonitor.cpp:40
QStringList allEmails() const
Returns all e-mail addresses from the person.
Definition persondata.cpp:199
Q_SCRIPTABLE bool setContactCustomProperty(const QString &key, const QVariant &value)
Sends a desired value for the contact according to the key.
Definition persondata.cpp:151
Q_SCRIPTABLE QVariant contactCustomProperty(const QString &key) const
Definition persondata.cpp:145
PersonData(const QString &id, QObject *parent=nullptr)
Creates a Person object from a given ID.
Definition persondata.cpp:35
bool isValid() const
Returns true if this PersonData is mapped to some existing contact.
Definition persondata.cpp:92
QUrl pictureUrl() const
Returns a the url of the picture that represents the contact.
Definition persondata.cpp:175
QStringList contactUris() const
Returns a list of contact ids that identify the PersonData instance.
Definition persondata.cpp:104
T & first()
size_type size() const const
Q_EMITQ_EMIT
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
T qobject_cast(QObject *object)
QObject * sender() const const
QPixmap fromImage(QImage &&image, Qt::ImageConversionFlags flags)
bool isNull() const const
bool isEmpty() const const
qsizetype removeDuplicates()
QString scheme() const const
QString toLocalFile() const const
bool canConvert() const const
QList< QVariant > toList() const const
QString toString() const const
QUrl toUrl() const const
T value() const const
Q_D(Todo)
This file is part of the KDE documentation.
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
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.