35 #ifndef __KLEO_CHANGEEXPIRYJOB_H__
36 #define __KLEO_CHANGEEXPIRYJOB_H__
40 #include <gpgme++/key.h>
54 class ChangeExpiryJobPrivate;
75 UpdatePrimaryKey = 0x01,
76 UpdateAllSubkeys = 0x02,
78 Q_DECLARE_FLAGS(Options, Option)
81 explicit ChangeExpiryJob(std::unique_ptr<ChangeExpiryJobPrivate>, QObject *parent);
85 void setOptions(Options options);
86 Options options()
const;
93 virtual GpgME::Error start(
const GpgME::Key &key,
const QDateTime &expiry) = 0;
102 virtual GpgME::Error start(
const GpgME::Key &key,
const QDateTime &expiry,
103 const std::vector<GpgME::Subkey> &subkeys);
106 void result(
const GpgME::Error &result,
const QString &auditLogAsHtml = QString(),
const GpgME::Error &auditLogError = GpgME::Error());
112 Q_DECLARE_OPERATORS_FOR_FLAGS(ChangeExpiryJob::Options)
116 #endif // __KLEO_CHANGEEXPIRYJOB_H__
An abstract base class for asynchronous crypto operations.
Definition: job.h:71
Definition: abstractimportjob.h:42
An abstract base class to change expiry asynchronously.
Definition: changeexpiryjob.h:69
Definition: abstractimportjob.h:48