00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef REMOVEDUPLICATESCOMMAND_P_H
00022 #define REMOVEDUPLICATESCOMMAND_P_H
00023
00024 #include <commandbase_p.h>
00025
00026 #include "akonadi/collection.h"
00027 #include "akonadi/item.h"
00028
00029 class QAbstractItemModel;
00030 class KJob;
00031
00032 class RemoveDuplicatesCommand : public CommandBase
00033 {
00034 Q_OBJECT
00035 public:
00036 RemoveDuplicatesCommand( const QAbstractItemModel* model, const Akonadi::Collection::List& folders, QObject* parent = 0);
00037 virtual void execute();
00038
00039 private Q_SLOTS:
00040 void slotFetchDone( KJob* job );
00041 private:
00042 Akonadi::Collection::List mFolders;
00043 Akonadi::Item::List mDuplicateItems;
00044 int mJobCount;
00045 const QAbstractItemModel* mModel;
00046 };
00047
00048 #endif // REMOVEDUPLICATESCOMMAND_P_H