Akonadi

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

KDE's Doxygen guidelines are available online.