35#ifndef __KLEO_CHANGEEXPIRYJOB_H__
36#define __KLEO_CHANGEEXPIRYJOB_H__
40#include <gpgme++/key.h>
54class 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());
112Q_DECLARE_OPERATORS_FOR_FLAGS(ChangeExpiryJob::Options)
An abstract base class to change expiry asynchronously.
Definition changeexpiryjob.h:70
virtual GpgME::Error start(const GpgME::Key &key, const QDateTime &expiry)=0
virtual GpgME::Error start(const GpgME::Key &key, const QDateTime &expiry, const std::vector< GpgME::Subkey > &subkeys)
An abstract base class for asynchronous crypto operations.
Definition job.h:72