summaryrefslogtreecommitdiff
path: root/lang/qt/src/changeexpiryjob.h
diff options
context:
space:
mode:
authorJinWang An <jinwang.an@samsung.com>2023-01-30 13:26:32 +0900
committerJinWang An <jinwang.an@samsung.com>2023-01-30 13:26:32 +0900
commit7068c0ead0c25a9a1fd3ce0b486636d74350e7ca (patch)
tree732edf51b955fd198e4bb7ef46a0782fb3ea1d12 /lang/qt/src/changeexpiryjob.h
parentd19c360948ede5ffe5974de8abc9da44be617ca1 (diff)
downloadgpgme-7068c0ead0c25a9a1fd3ce0b486636d74350e7ca.tar.gz
gpgme-7068c0ead0c25a9a1fd3ce0b486636d74350e7ca.tar.bz2
gpgme-7068c0ead0c25a9a1fd3ce0b486636d74350e7ca.zip
Imported Upstream version 1.17.0upstream/1.17.0
Diffstat (limited to 'lang/qt/src/changeexpiryjob.h')
-rw-r--r--lang/qt/src/changeexpiryjob.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/qt/src/changeexpiryjob.h b/lang/qt/src/changeexpiryjob.h
index 39ed52e..0c5e1b2 100644
--- a/lang/qt/src/changeexpiryjob.h
+++ b/lang/qt/src/changeexpiryjob.h
@@ -71,11 +71,22 @@ namespace QGpgME
class QGPGME_EXPORT ChangeExpiryJob : public Job
{
Q_OBJECT
+public:
+ enum Option {
+ Default = 0x00,
+ UpdatePrimaryKey = 0x01,
+ UpdateAllSubkeys = 0x02,
+ };
+ Q_DECLARE_FLAGS(Options, Option)
+
protected:
explicit ChangeExpiryJob(QObject *parent);
public:
~ChangeExpiryJob();
+ void setOptions(Options options);
+ Options options() const;
+
/**
Starts the change-expiry operation. \a key is the key to change
the expiry of. \a expiry is the new expiry time. If \a expiry
@@ -97,6 +108,8 @@ Q_SIGNALS:
void result(const GpgME::Error &result, const QString &auditLogAsHtml = QString(), const GpgME::Error &auditLogError = GpgME::Error());
};
+Q_DECLARE_OPERATORS_FOR_FLAGS(ChangeExpiryJob::Options)
+
}
#endif // __KLEO_CHANGEEXPIRYJOB_H__