QGpgME  9.2.0.0
Qt API for GpgME
qgpgmewkspublishjob.h
1 /* qgpgmewkspublishjob.h
2 
3  Copyright (c) 2016 Intevation GmbH
4 
5  QGpgME is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License as
7  published by the Free Software Foundation; either version 2 of the
8  License, or (at your option) any later version.
9 
10  QGpgME is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License along
16  with this program; if not, write to the Free Software Foundation, Inc.,
17  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 
19  In addition, as a special exception, the copyright holders give
20  permission to link the code of this program with any edition of
21  the Qt library by Trolltech AS, Norway (or with modified versions
22  of Qt that use the same license as Qt), and distribute linked
23  combinations including the two. You must obey the GNU General
24  Public License in all respects for all of the code used other than
25  Qt. If you modify this file, you may extend this exception to
26  your version of the file, but you are not obligated to do so. If
27  you do not wish to do so, delete this exception statement from
28  your version.
29 */
30 #ifndef QGPGME_QGPGMEWKSPUBLISHJOB_H
31 #define QGPGME_QGPGMEWKSPUBLISHJOB_H
32 
33 #include "wkspublishjob.h"
34 
35 #include "threadedjobmixin.h"
36 namespace GpgME
37 {
38  class Key;
39 } // namespace GpgME
40 
41 namespace QGpgME {
42 
48 #ifdef Q_MOC_RUN
49  : public WKSPublishJob
50 #else
51  : public _detail::ThreadedJobMixin<WKSPublishJob, std::tuple<GpgME::Error, QByteArray, QByteArray, QString, GpgME::Error> >
52 #endif
53 {
54  Q_OBJECT
55 #ifdef Q_MOC_RUN
56 public Q_SLOTS:
57  void slotFinished();
58 #endif
59 public:
60  explicit QGpgMEWKSPublishJob(GpgME::Context *context);
62 
63  void startCheck(const QString &mailbox) Q_DECL_OVERRIDE;
64  void startCreate(const char *fpr, const QString &mailbox) Q_DECL_OVERRIDE;
65  void startReceive(const QByteArray &response) Q_DECL_OVERRIDE;
66 };
67 
68 }
69 
70 #endif
Definition: abstractimportjob.h:41
Definition: wkspublishjob.h:60
Definition: threadedjobmixin.h:123
Definition: abstractimportjob.h:47
Definition: qgpgmewkspublishjob.h:47