Akonadi

itemmodifyjob.h
1 /*
2  Copyright (c) 2006 - 2007 Volker Krause <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_ITEMMODIFYJOB_H
8 #define AKONADI_ITEMMODIFYJOB_H
9 
10 #include "akonadicore_export.h"
11 #include "item.h"
12 #include "job.h"
13 
14 namespace Akonadi
15 {
16 
17 class ItemModifyJobPrivate;
18 
83 class AKONADICORE_EXPORT ItemModifyJob : public Job
84 {
85  friend class ResourceBase;
86 
87  Q_OBJECT
88 
89 public:
96  explicit ItemModifyJob(const Item &item, QObject *parent = nullptr);
97 
114  explicit ItemModifyJob(const Item::List &items, QObject *parent = nullptr);
115 
119  ~ItemModifyJob() override;
120 
128  void setIgnorePayload(bool ignore);
129 
134  Q_REQUIRED_RESULT bool ignorePayload() const;
135 
146  void setUpdateGid(bool update);
147 
152  Q_REQUIRED_RESULT bool updateGid() const;
153 
159  void disableRevisionCheck();
160 
166  Q_REQUIRED_RESULT Item item() const;
167 
173  Q_REQUIRED_RESULT Item::List items() const;
174 
185  void disableAutomaticConflictHandling();
186 
187 protected:
188  void doStart() override;
189  bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override;
190 
191 private:
192  //@cond PRIVATE
193  Q_DECLARE_PRIVATE(ItemModifyJob)
194  //@endcond
195 };
196 
197 }
198 
199 #endif
Base class for all actions in the Akonadi storage.
Definition: job.h:80
Helper integration between Akonadi and Qt.
Job that modifies an existing item in the Akonadi storage.
Definition: itemmodifyjob.h:83
The base class for all Akonadi resources.
Definition: resourcebase.h:135
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jul 9 2020 23:15:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.