33 #ifndef QGPGME_QUICKJOB_H
34 #define QGPGME_QUICKJOB_H
38 #include "qgpgme_export.h"
42 #ifdef BUILDING_QGPGME
45 # include <gpgme++/key.h>
59 explicit QuickJob(QObject *parent = Q_NULLPTR);
63 virtual void startCreate(
const QString &uid,
65 const QDateTime &expires = QDateTime(),
66 const GpgME::Key &key = GpgME::Key(),
67 unsigned int flags = 0) = 0;
70 virtual void startAddUid(
const GpgME::Key &key,
const QString &uid) = 0;
73 virtual void startRevUid(
const GpgME::Key &key,
const QString &uid) = 0;
76 virtual void startAddSubkey(
const GpgME::Key &key,
const char *algo,
77 const QDateTime &expires = QDateTime(),
78 unsigned int flags = 0) = 0;
85 virtual void startRevokeSignature(
const GpgME::Key &key,
const GpgME::Key &signingKey,
86 const std::vector<GpgME::UserID> &userIds = std::vector<GpgME::UserID>()) = 0;
89 void result(
const GpgME::Error &error,
90 const QString &auditLogAsHtml = QString(),
const GpgME::Error &auditLogError = GpgME::Error());