class ItemFetchScope |
|
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 This class is implicitly shared.
Author Kevin Krammer |
|
Creates an empty item fetch scope.
Using an empty scope will only fetch the very basic meta data of items, e.g. local id, remote id and mime type |
|
Creates a new item fetch scope from an other. |
|
Returns whether all available attributes should be fetched.
See also fetchAllAttributes() |
|
Returns all explicitly fetched attributes.
Undefined if fetchAllAttributes() returns true. See also fetchAttribute() |
|
Returns whether payload data should be requested from remote sources or just
from the local cache.
See also setCacheOnly() |
|
Sets whether all available attributes should be fetched.
fetch - true if all available attributes should be fetched, false otherwise. |
|
Sets whether the attribute of the given type should be fetched.
type - The attribute type to fetch. fetch - true if the attribute should be fetched, false otherwise. |
|
Sets whether the full payload shall be fetched.
fetch - true if the full payload should be fetched, false otherwise. |
|
Sets which payload parts shall be fetched.
part - The payload part identifier. Valid values depend on the item type. fetch - true to fetch this part, false otherwise. |
|
Returns whether the full payload should be fetched.
See also fetchFullPayload() |
|
Returns true if there is nothing to fetch. |
|
Returns the payload parts that should be fetched.
See also fetchPayloadPart() |
|
Sets whether payload data should be requested from remote sources or just
from the local cache.
chacheOnly - true if no remote data should be requested, false otherwise (the default). |