Akonadi

tagdeletejob.h
1 /*
2  SPDX-FileCopyrightText: 2014 Christian Mollekopf <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "akonadicore_export.h"
10 #include "job.h"
11 #include "tag.h"
12 
13 namespace Akonadi
14 {
15 class Tag;
16 class TagDeleteJobPrivate;
17 
18 /**
19  * @short Job that deletes tags.
20  * @since 4.13
21  */
22 class AKONADICORE_EXPORT TagDeleteJob : public Job
23 {
24  Q_OBJECT
25 
26 public:
27  explicit TagDeleteJob(const Tag &tag, QObject *parent = nullptr);
28  explicit TagDeleteJob(const Tag::List &tag, QObject *parent = nullptr);
29 
30  /**
31  * Returns the tags passed to the constructor.
32  */
33  Q_REQUIRED_RESULT Tag::List tags() const;
34 
35 protected:
36  void doStart() override;
37  bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override;
38 
39 private:
40  Q_DECLARE_PRIVATE(TagDeleteJob)
41 };
42 
43 }
44 
An Akonadi Tag.
Definition: tag.h:25
Base class for all actions in the Akonadi storage.
Definition: job.h:80
Job that deletes tags.
Definition: tagdeletejob.h:22
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Mon Jun 27 2022 04:01:07 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.