Home GnuPG
Diffusion GPGME 60b96d149c71

qt: Specify import options as list of strings instead of as string

Description

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.

Details

Provenance
ikloeckerAuthored on Jun 13 2024, 9:53 AM
Parents
rM6c90ec7be235: m4: Update m4 files.
Branches
Unknown
Tags
Unknown
Tasks
T7152: gpgme: Support import options