diff options
author | Ingo Klöcker <[email protected]> | 2022-02-02 10:53:29 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-02-03 14:56:30 +0000 |
commit | ca1c30b6fa29a7a1f18ecda14375b47893a0c1a3 (patch) | |
tree | 586442f43da31beb14ab2e13d727398b812e5015 /lang/qt/src/protocol.h | |
parent | qt: Add helper for converting QStringList to vector of strings (diff) | |
download | gpgme-ca1c30b6fa29a7a1f18ecda14375b47893a0c1a3.tar.gz gpgme-ca1c30b6fa29a7a1f18ecda14375b47893a0c1a3.zip |
qt: Add job to import keys given by key ids
* lang/qt/src/receivekeysjob.h, lang/qt/src/qgpgmereceivekeysjob.h,
lang/qt/src/qgpgmereceivekeysjob.cpp: New.
* lang/qt/src/protocol.h (class Protocol): Add pure virtual member
function receiveKeysJob.
* lang/qt/src/protocol_p.h (Protocol::receiveKeysJob): Implement it.
* lang/qt/src/job.cpp, lang/qt/src/Makefile.am: Update accordingly.
* lang/qt/tests/run-receivekeysjob.cpp: New.
* lang/qt/tests/Makefile.am: Add new test runner.
--
This job allows importing keys that are given by their key ids (or
fingerprints) from keyservers as with gpg's recv-keys command.
GnuPG-bug-id: 5808
Diffstat (limited to 'lang/qt/src/protocol.h')
-rw-r--r-- | lang/qt/src/protocol.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lang/qt/src/protocol.h b/lang/qt/src/protocol.h index 3ffd99b3..25c71eff 100644 --- a/lang/qt/src/protocol.h +++ b/lang/qt/src/protocol.h @@ -70,6 +70,7 @@ class WKSPublishJob; class TofuPolicyJob; class QuickJob; class GpgCardJob; +class ReceiveKeysJob; /** The main entry point for QGpgME Comes in OpenPGP and SMIME(CMS) flavors. * @@ -126,6 +127,7 @@ public: virtual KeyGenerationJob *keyGenerationJob() const = 0; virtual ImportJob *importJob() const = 0; virtual ImportFromKeyserverJob *importFromKeyserverJob() const = 0; + virtual ReceiveKeysJob *receiveKeysJob() const = 0; virtual ExportJob *publicKeyExportJob(bool armor = false) const = 0; // the second parameter is ignored; the passphrase in the exported file is always utf-8 encoded virtual ExportJob *secretKeyExportJob(bool armor = false, const QString & = QString()) const = 0; |