akonadi
#include <recursiveitemfetchjob.h>
Inherits KJob.
Public Member Functions | |
RecursiveItemFetchJob (const Akonadi::Collection &collection, const QStringList &mimeTypes, QObject *parent=0) | |
~RecursiveItemFetchJob () | |
Akonadi::ItemFetchScope & | fetchScope () |
Akonadi::Item::List | items () const |
void | setFetchScope (const Akonadi::ItemFetchScope &fetchScope) |
virtual void | start () |
Detailed Description
Job that fetches all items of a collection recursive.
This job takes a collection as argument and returns a list of all items that are part of the passed collection and its child collections. The items to fetch can be filtered by mime types and the parts of the items that shall be fetched can be specified via an ItemFetchScope.
Example:
- Since:
- 4.6
Definition at line 84 of file recursiveitemfetchjob.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new recursive item fetch job.
- Parameters:
-
collection The collection that shall be fetched recursive. mimeTypes The list of mime types that will be used for filtering. parent The parent object.
Akonadi::RecursiveItemFetchJob::~RecursiveItemFetchJob | ( | ) |
Destroys the recursive item fetch job.
Member Function Documentation
Akonadi::ItemFetchScope& Akonadi::RecursiveItemFetchJob::fetchScope | ( | ) |
Returns the item fetch scope.
Since this returns a reference it can be used to conveniently modify the current scope in-place, i.e. by calling a method on the returned reference without storing it in a local variable. See the ItemFetchScope documentation for an example.
- Returns:
- a reference to the current item fetch scope
- See also:
- setFetchScope() for replacing the current item fetch scope
Akonadi::Item::List Akonadi::RecursiveItemFetchJob::items | ( | ) | const |
Returns the list of fetched items.
void Akonadi::RecursiveItemFetchJob::setFetchScope | ( | const Akonadi::ItemFetchScope & | fetchScope | ) |
Sets the item fetch scope.
The ItemFetchScope controls how much of an item's data is fetched from the server, e.g. whether to fetch the full item payload or only meta data.
- Parameters:
-
fetchScope The new scope for item fetch operations.
- See also:
- fetchScope()
|
virtual |
Starts the recursive item fetch job.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:06:31 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.