00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_PARTFETCHER_H
00021 #define AKONADI_PARTFETCHER_H
00022
00023 #include <kjob.h>
00024
00025 #include "akonadi_export.h"
00026
00027 class QModelIndex;
00028
00029 namespace Akonadi
00030 {
00031
00032 class Item;
00033 class PartFetcherPrivate;
00034
00073 class AKONADI_EXPORT PartFetcher : public KJob
00074 {
00075 Q_OBJECT
00076
00077 public:
00085 PartFetcher( const QModelIndex &index, const QByteArray &partName, QObject *parent = 0 );
00086
00090 virtual ~PartFetcher();
00091
00095 virtual void start();
00096
00100 QModelIndex index() const;
00101
00105 QByteArray partName() const;
00106
00110 Item item() const;
00111
00112 private:
00113
00114 Q_DECLARE_PRIVATE( Akonadi::PartFetcher )
00115 PartFetcherPrivate *const d_ptr;
00116
00117 Q_PRIVATE_SLOT( d_func(), void fetchJobDone( KJob *job ) )
00118
00119 };
00120
00121 }
00122
00123 #endif