QGpgME 10.3.4.0000000
Qt API for GpgME
quickjob.h
1/* quickjob.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_QUICKJOB_H
31#define QGPGME_QUICKJOB_H
32
33#include "job.h"
34
35#include "qgpgme_export.h"
36
37#include <QDateTime>
38
39#ifdef BUILDING_QGPGME
40# include "key.h"
41#else
42# include <gpgme++/key.h>
43#endif
44
45class QString;
46
47namespace QGpgME{
48
52class QGPGME_EXPORT QuickJob : public Job
53{
54 Q_OBJECT
55public:
56 explicit QuickJob(QObject *parent = Q_NULLPTR);
57 ~QuickJob();
58
60 virtual void startCreate(const QString &uid,
61 const char *algo,
62 const QDateTime &expires = QDateTime(),
63 const GpgME::Key &key = GpgME::Key(),
64 unsigned int flags = 0) = 0;
65
67 virtual void startAddUid(const GpgME::Key &key, const QString &uid) = 0;
68
70 virtual void startRevUid(const GpgME::Key &key, const QString &uid) = 0;
71
73 virtual void startAddSubkey(const GpgME::Key &key, const char *algo,
74 const QDateTime &expires = QDateTime(),
75 unsigned int flags = 0) = 0;
76
77Q_SIGNALS:
78 void result(const GpgME::Error &error,
79 const QString &auditLogAsHtml, const GpgME::Error &auditLogError);
80};
81
82}
83#endif
An abstract base class for asynchronous crypto operations.
Definition: job.h:73
Definition: quickjob.h:53
virtual void startCreate(const QString &uid, const char *algo, const QDateTime &expires=QDateTime(), const GpgME::Key &key=GpgME::Key(), unsigned int flags=0)=0
virtual void startAddSubkey(const GpgME::Key &key, const char *algo, const QDateTime &expires=QDateTime(), unsigned int flags=0)=0
virtual void startRevUid(const GpgME::Key &key, const QString &uid)=0
virtual void startAddUid(const GpgME::Key &key, const QString &uid)=0