aboutsummaryrefslogtreecommitdiffstats
path: root/lang/qt/src/protocol.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-05-13 11:16:12 +0000
committerAndre Heinecke <[email protected]>2016-05-13 11:16:12 +0000
commit52f2295d528029a36a3e0a89c777297762b3fc9b (patch)
treee69faffe879a97ac116daea69a825d3c2c9d270c /lang/qt/src/protocol.h
parentQt: Add missing copyright header in test (diff)
downloadgpgme-52f2295d528029a36a3e0a89c777297762b3fc9b.tar.gz
gpgme-52f2295d528029a36a3e0a89c777297762b3fc9b.zip
Qt: Add keyLocateJob and test for it
* configure.ac (LIBQGPGME_LT_REVISION): Bump. * lang/qt/src/protocol.h (locateKeysJob): Add Job. * lang/qt/src/protocol_p.h (locateKeysJob): Implement. * lang/qt/tests/Makefile.am: Add t-keylocate. * lang/qt/tests/t-keylocate.cpp: New.
Diffstat (limited to 'lang/qt/src/protocol.h')
-rw-r--r--lang/qt/src/protocol.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/qt/src/protocol.h b/lang/qt/src/protocol.h
index 5162fe6a..e5153b50 100644
--- a/lang/qt/src/protocol.h
+++ b/lang/qt/src/protocol.h
@@ -96,6 +96,20 @@ public:
virtual ChangeOwnerTrustJob *changeOwnerTrustJob() const = 0;
virtual AddUserIDJob *addUserIDJob() const = 0;
virtual SpecialJob *specialJob(const char *type, const QMap<QString, QVariant> &args) const = 0;
+
+ /** A key locate job.
+ *
+ * This tries to find a key in local
+ * and remote sources, if the key was remote it is imported
+ * by GnuPG. Same as KeyListJob but intended to be used
+ * to locate keys automatically. This ends up calling --locate-keys.
+ *
+ * Only available for OpenPGP
+ *
+ * Results are validated. As if keyListJob was called
+ * with both includeSigs and validate options.
+ */
+ virtual KeyListJob *locateKeysJob() const = 0;
};
/** Obtain a reference to the OpenPGP Protocol.