diff options
author | Ingo Klöcker <[email protected]> | 2022-07-05 16:02:20 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2022-07-05 16:10:08 +0000 |
commit | bc10169724d2806b38f91beff39ef637b5e52b8d (patch) | |
tree | 707d9d39dff80d6cfed5c7a1dcc4e7413644df07 /lang/qt/src/encryptjob.h | |
parent | qt: Fix filename of cmake config files for w32 (diff) | |
download | gpgme-bc10169724d2806b38f91beff39ef637b5e52b8d.tar.gz gpgme-bc10169724d2806b38f91beff39ef637b5e52b8d.zip |
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.
GnuPG-bug-id: 6056
Diffstat (limited to 'lang/qt/src/encryptjob.h')
-rw-r--r-- | lang/qt/src/encryptjob.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/qt/src/encryptjob.h b/lang/qt/src/encryptjob.h index cb572938..8135053e 100644 --- a/lang/qt/src/encryptjob.h +++ b/lang/qt/src/encryptjob.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 @@ -80,6 +82,9 @@ protected: public: ~EncryptJob(); + void setFileName(const QString &fileName); + QString fileName() const; + /** Starts the encryption operation. \a recipients is the a list of keys to encrypt \a plainText to. Empty (null) keys are |