gpgme/lang/qt/tests
Ingo Klöcker 4e80563fab qt: Use QGpgMEExportJob also for export of secret keys
* lang/qt/src/protocol.h (Protocol::secretKeyExportJob): Document
charset argument as ignored.
* lang/qt/src/protocol_p.h (Protocol::secretKeyExportJob): Use
QGpgMEExportJob instead of QGpgMESecretKeyExportJob.
* lang/qt/src/qgpgmeexportjob.h (class QGpgMEExportJob): Add c'tor
taking an export mode. Add member m_exportMode. Rename member m_flags to
m_additionalExportModeFlags.
(QGpgMEExportJob::~QGpgMEExportJob): Mark as override.
* lang/qt/src/qgpgmeexportjob.cpp (QGpgMEExportJob::QGpgMEExportJob):
Delegate to new c'tor. Implement new c'tor.
(QGpgMEExportJob::~QGpgMEExportJob): Use default.
(export_qba): Rename argument flags to mode.
(QGpgMEExportJob::start): Pass combination of export mode and additional
mode flags to export_qba.
(QGpgMEExportJob::setExportFlags): Adapt to renaming of member.

* lang/qt/tests/run-exportjob.cpp: New.
--

This change makes it possible to export secret OpenPGP keys.

GnuPG-bug-id: 5757
2022-01-04 15:44:16 +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: Use QGpgMEExportJob also for export of secret keys 2022-01-04 15:44:16 +01:00
run-exportjob.cpp qt: Use QGpgMEExportJob also for export of secret keys 2022-01-04 15:44:16 +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-changeexpiryjob.cpp qt: Add test for ChangeExpiryJob 2021-06-28 11:56:12 +02: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 check for supported versions 2019-11-06 09:21:02 +01:00
t-import.cpp qt: Allow specifying an import filter when importing keys 2021-12-15 15:00:07 +01:00
t-keylist.cpp qt: Fix build against Qt 5.9 2021-09-13 17:30:49 +02:00
t-keylocate.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
t-ownertrust.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
t-remarks.cpp qt: Allow build with older GnuPG (< 2.2.18). 2020-11-11 11:58:28 +09:00
t-support.cpp qt,tests: Skip WKD lookup tests by default 2021-12-14 11:04:03 +01:00
t-support.h qt,tests: Skip WKD lookup tests by default 2021-12-14 11:04:03 +01:00
t-tofuinfo.cpp qt: Use tofu conflict test keys without expiry 2019-01-09 08:26:25 +01:00
t-trustsignatures.cpp qt: Fix filenames in copyright headers 2021-06-28 11:56:12 +02:00
t-various.cpp qt: Fix build against Qt 5.9 2021-09-13 17:30:49 +02:00
t-verify.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00
t-wkdlookup.cpp qt: Add pattern used for WKD lookup to result 2021-12-14 14:49:39 +01:00
t-wkspublish.cpp Change copyright from Intevation to BSI 2017-04-25 10:24:11 +02:00