35#ifndef __KLEO_CHANGEEXPIRYJOB_H__
36#define __KLEO_CHANGEEXPIRYJOB_H__
40#include <gpgme++/key.h>
73 UpdatePrimaryKey = 0x01,
74 UpdateAllSubkeys = 0x02,
76 Q_DECLARE_FLAGS(Options, Option)
83 void setOptions(Options options);
84 Options options()
const;
91 virtual GpgME::Error
start(
const GpgME::Key &key,
const QDateTime &expiry) = 0;
100 virtual GpgME::Error
start(
const GpgME::Key &key,
const QDateTime &expiry,
101 const std::vector<GpgME::Subkey> &subkeys);
104 void result(
const GpgME::Error &result,
const QString &auditLogAsHtml = QString(),
const GpgME::Error &auditLogError = GpgME::Error());
107Q_DECLARE_OPERATORS_FOR_FLAGS(ChangeExpiryJob::Options)
An abstract base class to change expiry asynchronously.
Definition changeexpiryjob.h:68
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:69