diff options
Diffstat (limited to 'lang/qt/src/changeexpiryjob.h')
-rw-r--r-- | lang/qt/src/changeexpiryjob.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lang/qt/src/changeexpiryjob.h b/lang/qt/src/changeexpiryjob.h index 90834791..39ed52ea 100644 --- a/lang/qt/src/changeexpiryjob.h +++ b/lang/qt/src/changeexpiryjob.h @@ -37,10 +37,17 @@ #include "job.h" +#ifdef BUILDING_QGPGME +# include "key.h" +#else +# include <gpgme++/key.h> +#endif + +#include <vector> + namespace GpgME { class Error; -class Key; } class QDateTime; @@ -76,6 +83,16 @@ public: */ virtual GpgME::Error start(const GpgME::Key &key, const QDateTime &expiry) = 0; + /** + Starts the change-expiry operation. \a key is the key to change, + \a subkeys is a list of subkeys of the key, and \a expiry is the + new expiry time. If \a subkeys is empty, then the expiry of \a key + is changed. Otherwise, the expiry of \a subkeys is changed. If + \a expiry is not valid, then \a key or \a subkeys are set to never expire. + */ + virtual GpgME::Error start(const GpgME::Key &key, const QDateTime &expiry, + const std::vector<GpgME::Subkey> &subkeys); + Q_SIGNALS: void result(const GpgME::Error &result, const QString &auditLogAsHtml = QString(), const GpgME::Error &auditLogError = GpgME::Error()); }; |