class ItemFetchJob


Module akonadi
Namespace Akonadi
Class ItemFetchJob
Inherits Akonadi::Job
Job that fetches items from the Akonadi storage.

This class is used to fetch items from the Akonadi storage. Which parts of the items (e.g. headers only, attachments or all) can be specified by the ItemFetchScope.

Example:

// Fetch all items with full payload from the root collection Akonadi.ItemFetchJob *job = new Akonadi.ItemFetchJob( Akonadi.Collection.root() ); job->fetchScope().fetchFullPayload();

if ( job->exec() ) { qDebug() << "Item deleted successfully";

Akonadi.Item.List items = job->items(); foreach( const Akonadi.Item &item, items ) { qDebug() "Item ID:" << item.id(); } } else { qDebug() << "Error occurred"; }

Author Volker Krause



methods