Akonadi

tagmodifyjob.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
12namespace Akonadi
13{
14class Tag;
15class TagModifyJobPrivate;
16
17/**
18 * @short Job that modifies a tag in the Akonadi storage.
19 * @since 4.13
20 */
21class AKONADICORE_EXPORT TagModifyJob : public Job
22{
23 Q_OBJECT
24
25public:
26 /**
27 * Creates a new tag modify job.
28 *
29 * @param tag The tag to modify.
30 * @param parent The parent object.
31 */
32 explicit TagModifyJob(const Tag &tag, QObject *parent = nullptr);
33
34 /**
35 * Returns the modified tag.
36 */
37 [[nodiscard]] Tag tag() const;
38
39protected:
40 void doStart() override;
41 bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override;
42
43private:
44 Q_DECLARE_PRIVATE(TagModifyJob)
45};
46
47}
Base class for all actions in the Akonadi storage.
Definition job.h:81
Job that modifies a tag in the Akonadi storage.
Tag tag() const
Returns the modified tag.
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 Mon Nov 18 2024 12:08:29 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.