Akonadi

tagdeletejob.h
1/*
2 SPDX-FileCopyrightText: 2014 Christian Mollekopf <mollekopf@kolabsys.com>
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
13namespace Akonadi
14{
15class Tag;
16class TagDeleteJobPrivate;
17
18/**
19 * @short Job that deletes tags.
20 * @since 4.13
21 */
22class AKONADICORE_EXPORT TagDeleteJob : public Job
23{
24 Q_OBJECT
25
26public:
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 [[nodiscard]] Tag::List tags() const;
34
35protected:
36 void doStart() override;
37 bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override;
38
39private:
40 Q_DECLARE_PRIVATE(TagDeleteJob)
41};
42
43}
Base class for all actions in the Akonadi storage.
Definition job.h:81
Job that deletes tags.
An Akonadi Tag.
Definition tag.h:26
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:54:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.