From 52f2295d528029a36a3e0a89c777297762b3fc9b Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Fri, 13 May 2016 13:16:12 +0200 Subject: 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. --- lang/qt/src/protocol.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lang/qt/src/protocol.h') 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 &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. -- cgit v1.2.3