diff options
author | Ingo Klöcker <[email protected]> | 2022-07-05 16:13:01 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-07-05 16:13:01 +0000 |
commit | 5436b309fe67dd3c4531f751d99c98128ca66e4d (patch) | |
tree | 5ef005c64dae78686565e8e936cfad5d893a6d3a /lang/qt/src/signencryptjob.h | |
parent | qt: Allow setting the file name of encrypted data (diff) | |
download | gpgme-5436b309fe67dd3c4531f751d99c98128ca66e4d.tar.gz gpgme-5436b309fe67dd3c4531f751d99c98128ca66e4d.zip |
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.
GnuPG-bug-id: 6056
Diffstat (limited to 'lang/qt/src/signencryptjob.h')
-rw-r--r-- | lang/qt/src/signencryptjob.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/qt/src/signencryptjob.h b/lang/qt/src/signencryptjob.h index 5a056e3c..ebb866d1 100644 --- a/lang/qt/src/signencryptjob.h +++ b/lang/qt/src/signencryptjob.h @@ -5,6 +5,8 @@ Copyright (c) 2004, 2007 Klarälvdalens Datakonsult AB Copyright (c) 2016 by Bundesamt für Sicherheit in der Informationstechnik Software engineering by Intevation GmbH + Copyright (c) 2022 g10 Code GmbH + Software engineering by Ingo Klöcker <[email protected]> QGpgME is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -85,6 +87,9 @@ protected: public: ~SignEncryptJob(); + void setFileName(const QString &fileName); + QString fileName() const; + /** Starts the combined signing and encrypting operation. \a signers is the list of keys to sign \a plainText with. \a recipients is |