Home GnuPG
Diffusion GPGME ca1c30b6fa29

qt: Add job to import keys given by key ids

Description

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.