00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_RECURSIVEITEMFETCHJOB_H
00021 #define AKONADI_RECURSIVEITEMFETCHJOB_H
00022
00023 #include "akonadi_export.h"
00024
00025 #include <akonadi/item.h>
00026 #include <kjob.h>
00027
00028 namespace Akonadi {
00029
00030 class Collection;
00031 class ItemFetchScope;
00032
00084 class AKONADI_EXPORT RecursiveItemFetchJob : public KJob
00085 {
00086 Q_OBJECT
00087
00088 public:
00096 explicit RecursiveItemFetchJob( const Akonadi::Collection &collection,
00097 const QStringList &mimeTypes,
00098 QObject *parent = 0 );
00099
00103 ~RecursiveItemFetchJob();
00104
00116 void setFetchScope( const Akonadi::ItemFetchScope &fetchScope );
00117
00130 Akonadi::ItemFetchScope &fetchScope();
00131
00135 Akonadi::Item::List items() const;
00136
00140 virtual void start();
00141
00142 private:
00143
00144 class Private;
00145 Private* const d;
00146
00147 Q_PRIVATE_SLOT( d, void collectionFetchResult( KJob* ) )
00148 Q_PRIVATE_SLOT( d, void itemFetchResult( KJob* ) )
00149
00150 };
00151
00152 }
00153
00154 #endif