35#ifndef __KLEO_CHANGEEXPIRYJOB_H__
36#define __KLEO_CHANGEEXPIRYJOB_H__
43# include <gpgme++/key.h>
77 UpdatePrimaryKey = 0x01,
78 UpdateAllSubkeys = 0x02,
80 Q_DECLARE_FLAGS(Options, Option)
87 void setOptions(Options options);
88 Options options()
const;
95 virtual GpgME::Error
start(
const GpgME::Key &key,
const QDateTime &expiry) = 0;
104 virtual GpgME::Error
start(
const GpgME::Key &key,
const QDateTime &expiry,
105 const std::vector<GpgME::Subkey> &subkeys);
108 void result(
const GpgME::Error &result,
const QString &auditLogAsHtml = QString(),
const GpgME::Error &auditLogError = GpgME::Error());
111Q_DECLARE_OPERATORS_FOR_FLAGS(ChangeExpiryJob::Options)
An abstract base class to change expiry asynchronously.
Definition changeexpiryjob.h:72
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:73