Home GnuPG
Diffusion GPGME 5436b309fe67

qt: Allow setting the file name of signed and encrypted data

Description

qt: Allow setting the file name of signed and encrypted data

* lang/qt/src/Makefile.am (qgpgme_sources): Add signencryptjob.cpp.
* lang/qt/src/signencryptjob.cpp: New.
* lang/qt/src/signencryptjob.h (class SignEncryptJob): Add member
functions setFileName, fileName.
* lang/qt/src/qgpgmesignencryptjob.cpp (sign_encrypt): Set file name of
input.
(sign_encrypt_qba, QGpgMESignEncryptJob::exec,
QGpgMESignEncryptJob::start): Pass file name to sign_encrypt resp.
sign_encrypt_qba.

This makes it possible to store the original name of a signed and
encrypted file in the resulting data.

Details