gpgme/lang/qt/tests
Ingo Klöcker c64a8daf50 qt: Emit import result when refreshing OpenPGP keys
* lang/qt/src/refreshopenpgpkeysjob.h: New.
* lang/qt/src/Makefile.am, lang/qt/src/job.cpp: Update accordingly.
* lang/qt/src/qgpgmerefreshopenpgpkeysjob.h (class
QGpgMERefreshOpenPGPKeysJob): Derive from RefreshOpenPGPKeysJob with
result ImportResult. Remove unused start overload.
* lang/qt/src/qgpgmerefreshopenpgpkeysjob.cpp (locate_external_keys):
Ignore result of KeyListJob. Return import result.
(receive_keys): Return import result.
(refresh_keys): Merge the two import results and return the result.
* lang/qt/src/protocol.h (class Protocol): Add pure virtual member
function refreshOpenPGPKeysJob.
* lang/qt/src/protocol_p.h (Protocol::refreshKeysJob): Return nullptr
for OpenPGP protocol.
(Protocol::refreshOpenPGPKeysJob): New.

* lang/qt/tests/run-refreshkeysjob.cpp (main): Use appropriate job
for the protocol of the key to refresh.
--

This adds RefreshOpenPGPKeysJob complementing RefreshKeysJob (for S/MIME
keys). Changing the result type of RefreshKeysJob would break the ABI.
Therefore we have to introduce a new base class for the refresh job for
OpenPGP. We derive this base class from AbstractImportJob because we
want to return an import result.

GnuPG-bug-id: 5951
2022-05-04 14:51:50 +02:00
..
final.test qt: Support WKD lookup without implicit import 2021-12-13 10:48:52 +01:00
initial.test Qt: Fix unit test by adding initial.test dep 2016-04-11 17:46:03 +02:00
Makefile.am qt: Add test runner for refresh job 2022-04-29 11:44:30 +02:00
run-exportjob.cpp qt: Add factory function for secret subkey export job 2022-01-04 15:56:34 +01:00
run-importjob.cpp qt,tests: Add test runner for testing the import job 2021-12-22 15:25:42 +01:00
run-keyformailboxjob.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
run-receivekeysjob.cpp qt: Add job to import keys given by key ids 2022-02-03 15:56:30 +01:00
run-refreshkeysjob.cpp qt: Emit import result when refreshing OpenPGP keys 2022-05-04 14:51:50 +02:00
t-addexistingsubkey.cpp qt: Add job to add existing subkeys to other keys 2022-01-13 15:18:12 +01:00
t-changeexpiryjob.cpp qt,tests: Add helper to hook up the test passphrase provider 2022-01-13 12:40:35 +01:00
t-config.cpp qt: Allow retrieving the default value of a config entry 2021-06-29 12:12:33 +02:00
t-encrypt.cpp qt,tests: Add helper to hook up the test passphrase provider 2022-01-13 12:40:35 +01:00
t-import.cpp qt: Fix build without installed GpgME++ headers 2022-01-17 14:41:17 +01:00
t-keylist.cpp qt,tests: Add asyncDone signal to base class of all tests 2022-01-13 11:36:35 +01:00
t-keylocate.cpp qt,tests: Add asyncDone signal to base class of all tests 2022-01-13 11:36:35 +01:00
t-ownertrust.cpp qt,tests: Add asyncDone signal to base class of all tests 2022-01-13 11:36:35 +01:00
t-remarks.cpp qt,tests: Add helper to hook up the test passphrase provider 2022-01-13 12:40:35 +01:00
t-revokekey.cpp qt: Check arguments passed to the revoke key job 2022-03-31 18:39:19 +02:00
t-support.cpp qt: Add job to add existing subkeys to other keys 2022-01-13 15:18:12 +01:00
t-support.h qt: Add job to add existing subkeys to other keys 2022-01-13 15:18:12 +01:00
t-tofuinfo.cpp qt,tests: Add helper to hook up the test passphrase provider 2022-01-13 12:40:35 +01:00
t-trustsignatures.cpp qt,tests: Add helper to hook up the test passphrase provider 2022-01-13 12:40:35 +01:00
t-various.cpp qt,tests: Add helper to hook up the test passphrase provider 2022-01-13 12:40:35 +01:00
t-verify.cpp qt: Apply compiler hint 2022-05-02 16:04:28 +02:00
t-wkdlookup.cpp qt,tests: Add asyncDone signal to base class of all tests 2022-01-13 11:36:35 +01:00
t-wkspublish.cpp qt,tests: Add asyncDone signal to base class of all tests 2022-01-13 11:36:35 +01:00