Akonadi

itemdeletejob.h
1 /*
2  SPDX-FileCopyrightText: 2006 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_ITEMDELETEJOB_H
8 #define AKONADI_ITEMDELETEJOB_H
9 
10 #include "akonadicore_export.h"
11 #include "item.h"
12 #include "job.h"
13 
14 namespace Akonadi
15 {
16 
17 class Collection;
18 class ItemDeleteJobPrivate;
19 
49 class AKONADICORE_EXPORT ItemDeleteJob : public Job
50 {
51  Q_OBJECT
52 
53 public:
67  explicit ItemDeleteJob(const Item &item, QObject *parent = nullptr);
68 
85  explicit ItemDeleteJob(const Item::List &items, QObject *parent = nullptr);
86 
102  explicit ItemDeleteJob(const Collection &collection, QObject *parent = nullptr);
103 
113  explicit ItemDeleteJob(const Tag &tag, QObject *parent = nullptr);
114 
118  ~ItemDeleteJob() override;
119 
124  Q_REQUIRED_RESULT Item::List deletedItems() const;
125 
126 protected:
127  void doStart() override;
128  bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override;
129 
130 private:
131  //@cond PRIVATE
132  Q_DECLARE_PRIVATE(ItemDeleteJob)
133  //@endcond
134 };
135 
136 }
137 
138 #endif
Represents a collection of PIM items.
Definition: collection.h:63
Base class for all actions in the Akonadi storage.
Definition: job.h:80
Job that deletes items from the Akonadi storage.
Definition: itemdeletejob.h:49
Helper integration between Akonadi and Qt.
An Akonadi Tag.
Definition: tag.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 23:16:51 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.