33 #ifndef QGPGME_QUICKJOB_H
34 #define QGPGME_QUICKJOB_H
38 #include "qgpgme_export.h"
42 #include <gpgme++/context.h>
43 #include <gpgme++/key.h>
50 class QuickJobPrivate;
59 explicit QuickJob(std::unique_ptr<QuickJobPrivate>, QObject *parent =
nullptr);
63 GpgME::Error startCreate(
const QString &uid,
64 const QByteArray &algo = {},
65 const QDateTime &expires = {},
66 GpgME::Context::CreationFlags flags = GpgME::Context::CreateUseDefaults);
67 QGPGME_DEPRECATED
void startCreate(
const QString &uid,
69 const QDateTime &expires = QDateTime(),
70 const GpgME::Key &key = GpgME::Key(),
71 unsigned int flags = 0);
74 virtual void startAddUid(
const GpgME::Key &key,
const QString &uid) = 0;
77 virtual void startRevUid(
const GpgME::Key &key,
const QString &uid) = 0;
80 GpgME::Error startAddSubkey(
const GpgME::Key &key,
81 const QByteArray &algo = {},
82 const QDateTime &expires = {},
83 GpgME::Context::CreationFlags flags = GpgME::Context::CreateUseDefaults);
84 QGPGME_DEPRECATED
void startAddSubkey(
const GpgME::Key &key,
86 const QDateTime &expires = QDateTime(),
87 unsigned int flags = 0);
94 virtual void startRevokeSignature(
const GpgME::Key &key,
const GpgME::Key &signingKey,
95 const std::vector<GpgME::UserID> &userIds = std::vector<GpgME::UserID>()) = 0;
98 virtual void startAddAdsk(
const GpgME::Key &key,
const char *adsk) = 0;
106 GpgME::Error startSetKeyEnabled(
const GpgME::Key &key,
bool enabled);
109 void result(
const GpgME::Error &error,
110 const QString &auditLogAsHtml = QString(),
const GpgME::Error &auditLogError = GpgME::Error());
An abstract base class for asynchronous crypto operations.
Definition: job.h:71
Definition: abstractimportjob.h:48
Definition: quickjob.h:55