akonadi
itemdeletejob.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef AKONADI_ITEMDELETEJOB_H
00021 #define AKONADI_ITEMDELETEJOB_H
00022
00023 #include "akonadi_export.h"
00024
00025 #include <akonadi/item.h>
00026 #include <akonadi/job.h>
00027
00028 namespace Akonadi {
00029
00030 class Collection;
00031 class ItemDeleteJobPrivate;
00032
00062 class AKONADI_EXPORT ItemDeleteJob : public Job
00063 {
00064 Q_OBJECT
00065
00066 public:
00076 explicit ItemDeleteJob( const Item &item, QObject *parent = 0 );
00077
00088 explicit ItemDeleteJob( const Item::List &items, QObject *parent = 0 );
00089
00101 explicit ItemDeleteJob( const Collection &collection, QObject *parent = 0 );
00102
00106 ~ItemDeleteJob();
00107
00112 Item::List deletedItems() const;
00113
00114 protected:
00115 virtual void doStart();
00116
00117 private:
00118
00119 Q_DECLARE_PRIVATE( ItemDeleteJob )
00120 Q_PRIVATE_SLOT( d_func(), void selectResult( KJob* ) )
00121
00122 };
00123
00124 }
00125
00126 #endif