From 8c5abc8d932affab4bc79a85e3f98f6f6b982ae8 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Thu, 11 Aug 2016 17:22:35 +0200 Subject: Qt: Add KeyForMailboxJob * lang/qt/src/job.cpp: Include moc and make subclass. * lang/qt/src/keyformailboxjob.h, lang/qt/src/qgpgmekeyformailboxjob.cpp, lang/qt/src/qgpgmekeyformailboxjob.h: New. * lang/qt/tests/run-keyformailboxjob.cpp: New manual test. * lang/qt/tests/Makefile.am: Add run-keyformailboxjob. * lang/qt/src/Makefile.am: Update accordingly. * lang/qt/src/protocol.h, lang/qt/src/protocol_p.h: Add keyformailboxjob. -- The KeyForMailboxjob can be used to determine the best key to use to encrypt something to a given mail address. --- lang/qt/src/protocol.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lang/qt/src/protocol.h') diff --git a/lang/qt/src/protocol.h b/lang/qt/src/protocol.h index 64146b82..23b9d937 100644 --- a/lang/qt/src/protocol.h +++ b/lang/qt/src/protocol.h @@ -62,6 +62,7 @@ class ChangeOwnerTrustJob; class ChangePasswdJob; class AddUserIDJob; class SpecialJob; +class KeyForMailboxJob; /** The main entry point for QGpgME Comes in OpenPGP and SMIME(CMS) flavors. * @@ -145,6 +146,8 @@ public: * with both includeSigs and validate options. */ virtual KeyListJob *locateKeysJob() const = 0; + /** Find the best key to use for a mailbox. */ + virtual KeyForMailboxJob *keyForMailboxJob() const = 0; }; /** Obtain a reference to the OpenPGP Protocol. -- cgit v1.2.3