class ItemFetchScope


Module akonadi
Namespace Akonadi
Class ItemFetchScope
Inherits
Specifies which parts of an item should be fetched from the Akonadi storage.

When items are fetched from server either by using ItemFetchJob explicitly or when it is being used internally by other classes, e.g. ItemModel, the scope of the fetch operation can be tailored to the application's current needs.

There are two supported ways of changing the currently active ItemFetchScope of classes: - in-place: modify the ItemFetchScope object the other class holds as a member - replace: replace the other class' member with a new scope object

Example: modifying an ItemFetchJob's scope in-place

Akonadi.ItemFetchJob *job = new Akonadi.ItemFetchJob( collection );
job->fetchScope().fetchFullPayload();
job->fetchScope().fetchAttribute();

Example: replacing an ItemFetchJob's scope

Akonadi.ItemFetchScope scope;
scope.fetchFullPayload();
scope.fetchAttribute();

Akonadi.ItemFetchJob *job = new Akonadi.ItemFetchJob( collection ); job->setFetchScope( scope );

This class is implicitly shared.

Author Kevin Krammer



methods