aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/signkeyjob.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2019-10-29 15:33:58 +0000
committerAndre Heinecke <[email protected]>2019-10-29 15:33:58 +0000
commit373acd6923f2fc968fb870d2a8a9b49398cb652f (patch)
tree3f0750f9fde0f8f5b915a624bb092ff69a9c1354 /lang/qt/src/signkeyjob.h
parentcpp: Add support for multiple keysigs in edit (diff)
downloadgpgme-373acd6923f2fc968fb870d2a8a9b49398cb652f.tar.gz
gpgme-373acd6923f2fc968fb870d2a8a9b49398cb652f.zip
qt: Extend signkeyjob to handle remarks and dups
* lang/qt/src/qgpgmesignkeyjob.cpp: Handle remarks and dupeOK. * lang/qt/src/signkeyjob.h (SignKeyJob::setDupeOk), (SignKeyJob::setRemark): New. -- This API makes it easy for Kleopatra to add remarks for: GnuPG-Bug-Id: T4734
Diffstat (limited to '')
-rw-r--r--lang/qt/src/signkeyjob.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/qt/src/signkeyjob.h b/lang/qt/src/signkeyjob.h
index 7a7800dd..e3ae75f7 100644
--- a/lang/qt/src/signkeyjob.h
+++ b/lang/qt/src/signkeyjob.h
@@ -45,6 +45,8 @@ class Error;
class Key;
}
+class QString;
+
namespace QGpgME
{
@@ -109,6 +111,22 @@ public:
*/
virtual void setNonRevocable(bool nonRevocable) = 0;
+ /**
+ * Set this if it is ok to overwrite an existing signature. In that
+ * case the context has to have the flag "extended-edit" set to 1 through
+ * Context::setFlag before calling edit.
+ *
+ * Not pure virtual for ABI compatibility.
+ **/
+ virtual void setDupeOk(bool) {};
+
+ /**
+ * Add a remark to the signature. This uses [email protected] as a notation.
+ *
+ * Not pure virtual for ABI compatibility.
+ **/
+ virtual void setRemark(const QString &) {};
+
Q_SIGNALS:
void result(const GpgME::Error &result, const QString &auditLogAsHtml = QString(), const GpgME::Error &auditLogError = GpgME::Error());
};