class CollectionFetchJob


Module akonadi
Namespace Akonadi
Class CollectionFetchJob
Inherits Akonadi::Job
Job that fetches collections from the Akonadi storage.

This class can be used to retrieve the complete or partial collection tree from the Akonadi storage.

using namespace Akonadi;

// fetching all collections recursive, starting at the root collection CollectionFetchJob *job = new CollectionFetchJob( Collection.root(), CollectionFetchJob.Recursive ); if ( job->exec() ) { Collection.List collections = job->collections(); foreach( const Collection &collection, collections ) { qDebug() << "Name:" << collection.name(); } }

Author Volker Krause



enums

enum details

methods