Home GnuPG
Diffusion GPGME bc10169724d2

qt: Allow setting the file name of encrypted data

Description

qt: Allow setting the file name of encrypted data

* lang/qt/src/Makefile.am (qgpgme_sources): Add encryptjob.cpp.
* lang/qt/src/encryptjob.cpp: New.
* lang/qt/src/encryptjob.h (class EncryptJob): Add member functions
setFileName, fileName.
* lang/qt/src/qgpgmeencryptjob.cpp (encrypt): Set file name of input.
(encrypt_qba, QGpgMEEncryptJob::exec, QGpgMEEncryptJob::start): Pass
file name to encrypt resp. encrypt_qba.

This makes it possible to store the original name of an encrypted file
in the encryption result.

Details

Provenance
ikloeckerAuthored on Jul 5 2022, 6:02 PM
Parents
rM31423945d214: qt: Fix filename of cmake config files for w32
Branches
Unknown
Tags
Unknown
Tasks
T6056: Kleopatra: Improve handling of embedded filename