gpgme/lang/qt/tests
Ingo Klöcker 4d913a8aa5 qt: Add job to add existing subkeys to other keys
* lang/qt/src/addexistingsubkeyjob.h,
lang/qt/src/qgpgmeaddexistingsubkeyjob.cpp,
lang/qt/src/qgpgmeaddexistingsubkeyjob.h: New.
* lang/qt/src/protocol.h (class Protocol): Add pure virtual member
function addExistingSubkeyJob.
* lang/qt/src/protocol_p.h (Protocol::addExistingSubkeyJob): Implement.
* lang/qt/src/job.cpp, lang/qt/src/Makefile.am: Update accordingly.

* lang/qt/tests/Makefile.am (the_tests, moc_files, noinst_PROGRAMS):
Add new test.
(t_addexistingsubkey_SOURCES): New.
* lang/qt/tests/t-addexistingsubkey.cpp: New.
* lang/qt/tests/t-support.h (VERIFY_OR_RETURN_VALUE,
COMPARE_OR_RETURN_VALUE, VERIFY_OR_OBJECT, COMPARE_OR_OBJECT,
VERIFY_OR_FALSE, COMPARE_OR_FALSE): New.
* lang/qt/tests/t-support.h, lang/qt/tests/t-support.cpp
(class QQGpgMETest): New member function importSecretKeys.
--

The new job allows adding existing subkeys to other keys as with the
"addkey" edit-key command of gpg. The added subkey will have the same
expiration date (+/- 1 second) as the original subkey.

GnuPG-bug-id: 5770
2022-01-13 15:18:12 +01: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 job to add existing subkeys to other keys 2022-01-13 15:18:12 +01: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
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,tests: Add asyncDone signal to base class of all tests 2022-01-13 11:36:35 +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-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 Change copyright from Intevation to BSI 2017-04-25 10:24:11 +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