diff options
| author | Carl Schwan <[email protected]> | 2023-07-28 08:10:46 +0000 | 
|---|---|---|
| committer | Carl Schwan <[email protected]> | 2023-08-03 09:53:06 +0000 | 
| commit | d91d037fc19f0bbec44210099dc0d0e358d3fd4a (patch) | |
| tree | 1f445207a7811ef99f425c2512d3763fc2ab0a61 /lang/qt/src/encryptjob.h | |
| parent | core: Prevent wrong plaintext when verifying clearsigned signature (diff) | |
| download | gpgme-d91d037fc19f0bbec44210099dc0d0e358d3fd4a.tar.gz gpgme-d91d037fc19f0bbec44210099dc0d0e358d3fd4a.zip | |
qt: Add setInputEncoding to QGpgMe::EncryptJob
* lang/qt/src/encryptjob.cpp, lang/qt/src/encryptjob.h,
lang/qt/src/encryptjob_p.h: Add inputEncoding/setInputEncoding
to EncryptJob
* lang/qt/src/qgpgmeencryptjob.cpp: Use newly added inputEncoding
to set encoding hint of the encrypted content
--
This allows applications like KMail to set the input encoding of the
encrypted content, which simplify and improve the performance of
identifying the content type then decrypting it.
GnuPG-bug-id: 6616
Signed-off-by: Carl Schwan <[email protected]>
Diffstat (limited to '')
| -rw-r--r-- | lang/qt/src/encryptjob.h | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/lang/qt/src/encryptjob.h b/lang/qt/src/encryptjob.h index 8135053e..ac3664fa 100644 --- a/lang/qt/src/encryptjob.h +++ b/lang/qt/src/encryptjob.h @@ -38,6 +38,7 @@  #define __KLEO_ENCRYPTJOB_H__  #include "job.h" +#include "data.h"  #include <memory>  #include <vector> @@ -85,6 +86,9 @@ public:      void setFileName(const QString &fileName);      QString fileName() const; +    void setInputEncoding(GpgME::Data::Encoding); +    GpgME::Data::Encoding inputEncoding() const; +      /**         Starts the encryption operation. \a recipients is the a list of         keys to encrypt \a plainText to. Empty (null) keys are | 
