QGpgME 10.3.4.0000000
Qt API for GpgME
qgpgmequickjob.h
1/* qgpgmequickjob.h
2
3 Copyright (c) 2017 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_QGPGMEQUICKJOB_H
31#define QGPGME_QGPGMEQUICKJOB_H
32
33#include "quickjob.h"
34
35#include "threadedjobmixin.h"
36
37namespace GpgME {
38class Key;
39}
40
41class QDateTime;
42class QString;
43
44namespace QGpgME{
45
50#ifdef Q_MOC_RUN
51 : public QuickJob
52#else
53 : public _detail::ThreadedJobMixin<QuickJob, std::tuple<GpgME::Error, QString, GpgME::Error> >
54#endif
55{
56 Q_OBJECT
57#ifdef Q_MOC_RUN
58public Q_SLOTS:
59 void slotFinished();
60#endif
61public:
62 explicit QGpgMEQuickJob(GpgME::Context *context);
64
65 void startCreate(const QString &uid,
66 const char *algo,
67 const QDateTime &expires = QDateTime(),
68 const GpgME::Key &key = GpgME::Key(),
69 unsigned int flags = 0) Q_DECL_OVERRIDE;
70 void startAddUid(const GpgME::Key &key, const QString &uid) Q_DECL_OVERRIDE;
71 void startRevUid(const GpgME::Key &key, const QString &uid) Q_DECL_OVERRIDE;
72 void startAddSubkey(const GpgME::Key &key, const char *algo,
73 const QDateTime &expires = QDateTime(),
74 unsigned int flags = 0) Q_DECL_OVERRIDE;
75
76Q_SIGNALS:
77 void result(const GpgME::Error &error,
78 const QString &auditLogAsHtml, const GpgME::Error &auditLogError);
79};
80
81}
82#endif
Definition: qgpgmequickjob.h:55
void startAddUid(const GpgME::Key &key, const QString &uid) Q_DECL_OVERRIDE
Definition: qgpgmequickjob.cpp:106
void startRevUid(const GpgME::Key &key, const QString &uid) Q_DECL_OVERRIDE
Definition: qgpgmequickjob.cpp:111
void startCreate(const QString &uid, const char *algo, const QDateTime &expires=QDateTime(), const GpgME::Key &key=GpgME::Key(), unsigned int flags=0) Q_DECL_OVERRIDE
Definition: qgpgmequickjob.cpp:96
void startAddSubkey(const GpgME::Key &key, const char *algo, const QDateTime &expires=QDateTime(), unsigned int flags=0) Q_DECL_OVERRIDE
Definition: qgpgmequickjob.cpp:116
Definition: quickjob.h:53
Definition: threadedjobmixin.h:125