Akonadi

transactionjobs.h
1 /*
2  Copyright (c) 2006 Volker Krause <[email protected]>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef AKONADI_TRANSACTIONJOBS_H
21 #define AKONADI_TRANSACTIONJOBS_H
22 
23 #include "akonadicore_export.h"
24 #include "job.h"
25 
26 namespace Akonadi
27 {
28 
29 class TransactionJobPrivate;
30 class AKONADICORE_EXPORT TransactionJob : public Job
31 {
32  Q_OBJECT
33 
34 public:
35  ~TransactionJob() override;
36 
37 protected:
38  explicit TransactionJob(QObject *parent);
39 
40  void doStart() override;
41  bool doHandleResponse(qint64 tag, const Protocol::CommandPtr &response) override;
42 
43 private:
44  Q_DECLARE_PRIVATE(TransactionJob)
45 };
46 
47 class TransactionJobPrivate;
48 
62 class AKONADICORE_EXPORT TransactionBeginJob : public TransactionJob
63 {
64  Q_OBJECT
65 
66 public:
72  explicit TransactionBeginJob(QObject *parent);
73 
78 };
79 
91 class AKONADICORE_EXPORT TransactionRollbackJob : public TransactionJob
92 {
93  Q_OBJECT
94 
95 public:
102  explicit TransactionRollbackJob(QObject *parent);
103 
108 };
109 
117 class AKONADICORE_EXPORT TransactionCommitJob : public TransactionJob
118 {
119  Q_OBJECT
120 
121 public:
128  explicit TransactionCommitJob(QObject *parent);
129 
134 };
135 
136 }
137 
138 #endif
Job that commits a session-global transaction.
Job that aborts a session-global transaction.
Helper integration between Akonadi and Qt.
Job that begins a session-global transaction.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue May 26 2020 22:46:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.