KPeople
#include <contactmonitor.h>
Inherits QObject.
Inherited by AkonadiContact.
Signals | |
void | contactChanged () |
Public Member Functions | |
ContactMonitor (const QString &contactUri) | |
AbstractContact::Ptr | contact () const |
QString | contactUri () const |
Protected Member Functions | |
void | setContact (const AbstractContact::Ptr &contact) |
Detailed Description
This class loads data for a single contact from a datasource.
Datasources should subclass this and call setContact() when the contact loads or changes. It is used for optimising performance over loading all contacts and filtering the results. Subclasses are expected to be asynchronous in loading data.
Definition at line 42 of file contactmonitor.h.
Member Function Documentation
AbstractContact::Ptr ContactMonitor::contact | ( | ) | const |
The currently loaded information on this contact.
Definition at line 52 of file contactmonitor.cpp.
|
signal |
Emitted whenever the contact changes.
QString ContactMonitor::contactUri | ( | ) | const |
The ID of the contact being loaded.
Definition at line 59 of file contactmonitor.cpp.
|
protected |
Sets or updates the contact and emits contactChanged Subclasses should call this when data is loaded or changes.
Definition at line 44 of file contactmonitor.cpp.
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.