akonadi
#include <contactgroupexpandjob.h>
Inherits KJob.
Public Member Functions | |
ContactGroupExpandJob (const KABC::ContactGroup &group, QObject *parent=0) | |
ContactGroupExpandJob (const QString &name, QObject *parent=0) | |
~ContactGroupExpandJob () | |
KABC::Addressee::List | contacts () const |
virtual void | start () |
Detailed Description
Job that expands a ContactGroup to a list of contacts.
This job takes a KABC::ContactGroup object or a name of a contact group and expands it to a list of KABC::Addressee objects by creating temporary KABC::Addressee objects for the KABC::ContactGroup::Data objects of the group and fetching the complete contacts from the Akonadi storage for the KABC::ContactGroup::ContactReferences of the group.
const KABC::ContactGroup group = ...; Akonadi::ContactGroupExpandJob *job = new Akonadi::ContactGroupExpandJob( group ); connect( job, SIGNAL( result( KJob* ) ), this, SLOT( expandResult( KJob* ) ) ); job->start(); ... MyClass::expandResult( KJob *job ) { Akonadi::ContactGroupExpandJob *expandJob = qobject_cast<Akonadi::ContactGroupExpandJob*>( job ); const KABC::Addressee::List contacts = expandJob->contacts(); // do something with the contacts }
- Since:
- 4.4
Constructor & Destructor Documentation
Akonadi::ContactGroupExpandJob::ContactGroupExpandJob | ( | const KABC::ContactGroup & | group, |
QObject * | parent = 0 |
||
) | [explicit] |
Creates a new contact group expand job.
- Parameters:
-
group The contact group to expand. parent The parent object.
Akonadi::ContactGroupExpandJob::ContactGroupExpandJob | ( | const QString & | name, |
QObject * | parent = 0 |
||
) | [explicit] |
Creates a new contact group expand job.
- Parameters:
-
name The name of the contact group to expand. parent The parent object.
- Since:
- 4.5
Akonadi::ContactGroupExpandJob::~ContactGroupExpandJob | ( | ) |
Destroys the contact group expand job.
Member Function Documentation
KABC::Addressee::List Akonadi::ContactGroupExpandJob::contacts | ( | ) | const |
Returns the list of contacts.
virtual void Akonadi::ContactGroupExpandJob::start | ( | ) | [virtual] |
Starts the expand job.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:26 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.