Akonadi

relationdeletejob.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 "job.h"
10
11namespace Akonadi
12{
13class Relation;
14class RelationDeleteJobPrivate;
15
16/**
17 * @short Job that deletes a relation in the Akonadi storage.
18 * @since 4.15
19 */
20class AKONADICORE_EXPORT RelationDeleteJob : public Job
21{
22 Q_OBJECT
23
24public:
25 /**
26 * Creates a new relation delete job.
27 *
28 * @param relation The relation to delete.
29 * @param parent The parent object.
30 */
31 explicit RelationDeleteJob(const Relation &relation, QObject *parent = nullptr);
32
33 /**
34 * Returns the relation.
35 */
36 [[nodiscard]] Relation relation() const;
37
38protected:
39 void doStart() override;
40 bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override;
41
42private:
43 Q_DECLARE_PRIVATE(RelationDeleteJob)
44};
45
46}
Base class for all actions in the Akonadi storage.
Definition job.h:81
Job that deletes a relation in the Akonadi storage.
An Akonadi Relation.
Definition relation.h:41
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:13:38 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.