akonadi
itemfetchjob.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_ITEMFETCHJOB_H
00021 #define AKONADI_ITEMFETCHJOB_H
00022
00023 #include <akonadi/item.h>
00024 #include <akonadi/job.h>
00025
00026 namespace Akonadi {
00027
00028 class Collection;
00029 class ItemFetchJobPrivate;
00030 class ItemFetchScope;
00031
00060 class AKONADI_EXPORT ItemFetchJob : public Job
00061 {
00062 Q_OBJECT
00063 public:
00070 explicit ItemFetchJob( const Collection &collection, QObject *parent = 0 );
00071
00078 explicit ItemFetchJob( const Item &item, QObject *parent = 0 );
00079
00083 virtual ~ItemFetchJob();
00084
00091 Item::List items() const;
00092
00104 void setFetchScope( ItemFetchScope &fetchScope );
00105
00118 ItemFetchScope &fetchScope();
00119
00120 Q_SIGNALS:
00126 void itemsReceived( const Akonadi::Item::List &items );
00127
00128 protected:
00129 virtual void doStart();
00130 virtual void doHandleResponse( const QByteArray &tag, const QByteArray &data );
00131
00132 private:
00133 Q_DECLARE_PRIVATE( ItemFetchJob )
00134
00135
00136 Q_PRIVATE_SLOT( d_func(), void selectDone( KJob* ) )
00137 Q_PRIVATE_SLOT( d_func(), void timeout() )
00138
00139 };
00140
00141 }
00142
00143 #endif