Akonadi

tagcreatejob.h
1 /*
2  SPDX-FileCopyrightText: 2014 Christian Mollekopf <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AKONADI_TAGCREATEJOB_H
8 #define AKONADI_TAGCREATEJOB_H
9 
10 #include "akonadicore_export.h"
11 #include "job.h"
12 
13 namespace Akonadi
14 {
15 
16 class Tag;
17 class TagCreateJobPrivate;
18 
23 class AKONADICORE_EXPORT TagCreateJob : public Job
24 {
25  Q_OBJECT
26 
27 public:
34  explicit TagCreateJob(const Tag &tag, QObject *parent = nullptr);
35 
39  Q_REQUIRED_RESULT Tag tag() const;
40 
47  void setMergeIfExisting(bool merge);
48 
49 protected:
50  void doStart() override;
51  bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override;
52 
53 private:
54  Q_DECLARE_PRIVATE(TagCreateJob)
55 };
56 
57 }
58 
59 #endif
Base class for all actions in the Akonadi storage.
Definition: job.h:80
Helper integration between Akonadi and Qt.
Job that creates a new tag in the Akonadi storage.
Definition: tagcreatejob.h:23
An Akonadi Tag.
Definition: tag.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 23:17:32 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.