From 60b96d149c71f7f5f928944e65732671d6b9eacc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Thu, 13 Jun 2024 09:53:13 +0200 Subject: qt: Specify import options as list of strings instead of as string * lang/qt/src/importjob.cpp, lang/qt/src/importjob.h (setImportOptions): Change type of argument "options" to QStringList. (importOptions): Change return type to QStringList. * lang/qt/src/importjob_p.h (struct ImportJobPrivate): Change type of member m_importOptions to QStringList. * lang/qt/src/qgpgmeimportjob.cpp (import_qba): Change type of argument "importOptions" to QStringList. Join list of import options with ',' when setting the "import-options" context flag. * lang/qt/tests/t-import.cpp (ImportTest::testImportWithImportOptions): Adapt to API change. -- This makes the API that was introduced with the previous commit easier to use. GnuPG-bug-id: 7152 --- NEWS | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 7335e198..77a31776 100644 --- a/NEWS +++ b/NEWS @@ -9,7 +9,7 @@ Noteworthy changes in version 1.24.0 (unrelease) * Add information about designated revocation keys. [T7118] - * New context flag "import-options". [#7152] + * New context flag "import-options". [T7152] * cpp: Provide information about designated revocation keys for a Key. [T7118] @@ -20,6 +20,8 @@ Noteworthy changes in version 1.24.0 (unrelease) * qt: Allow writing the decrypted/encrypted/signed/verified data directly to files. [T6550] + * qt: Allow specifying import options when importing keys. [T7152] + * Interface changes relative to the 1.23.2 release: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GPGME_ENCRYPT_FILE NEW. @@ -71,6 +73,8 @@ Noteworthy changes in version 1.24.0 (unrelease) qt: VerifyOpaqueJob::inputFile NEW. qt: VerifyOpaqueJob::setOutputFile NEW. qt: VerifyOpaqueJob::outputFile NEW. + qt: ImportJob::setImportOptions NEW. + qt: ImportJob::importOptions NEW. Noteworthy changes in version 1.23.2 (2023-11-28) -- cgit v1.2.3