35 #ifndef __QGPGME_QGPGMESIGNENCRYPTJOB_H__
36 #define __QGPGME_QGPGMESIGNENCRYPTJOB_H__
38 #include "signencryptjob.h"
40 #include "threadedjobmixin.h"
42 #ifdef BUILDING_QGPGME
43 # include "signingresult.h"
45 #include <gpgme++/signingresult.h>
47 #ifdef BUILDING_QGPGME
48 # include "encryptionresult.h"
50 #include <gpgme++/encryptionresult.h>
52 #ifdef BUILDING_QGPGME
55 #include <gpgme++/key.h>
67 :
public _detail::ThreadedJobMixin<SignEncryptJob, std::tuple<GpgME::SigningResult, GpgME::EncryptionResult, QByteArray, QString, GpgME::Error> >
80 GpgME::Error
start(
const std::vector<GpgME::Key> &signers,
81 const std::vector<GpgME::Key> &recipients,
82 const QByteArray &plainText,
bool alwaysTrust)
override;
85 void start(
const std::vector<GpgME::Key> &signers,
86 const std::vector<GpgME::Key> &recipients,
87 const std::shared_ptr<QIODevice> &plainText,
88 const std::shared_ptr<QIODevice> &cipherText,
89 bool alwaysTrust)
override;
91 void start(
const std::vector<GpgME::Key> &signers,
92 const std::vector<GpgME::Key> &recipients,
93 const std::shared_ptr<QIODevice> &plainText,
94 const std::shared_ptr<QIODevice> &cipherText,
95 const GpgME::Context::EncryptionFlags flags)
override;
97 std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
98 exec(
const std::vector<GpgME::Key> &signers,
99 const std::vector<GpgME::Key> &recipients,
100 const QByteArray &plainText,
bool alwaysTrust,
101 QByteArray &cipherText)
override;
103 std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
104 exec(
const std::vector<GpgME::Key> &signers,
105 const std::vector<GpgME::Key> &recipients,
106 const QByteArray &plainText,
const GpgME::Context::EncryptionFlags flags,
107 QByteArray &cipherText)
override;
113 void resultHook(
const result_type &r)
override;
116 bool mOutputIsBase64Encoded;
117 std::pair<GpgME::SigningResult, GpgME::EncryptionResult> mResult;
Definition: qgpgmesignencryptjob.h:69
void setOutputIsBase64Encoded(bool on) override
Definition: qgpgmesignencryptjob.cpp:94
GpgME::Error start(const std::vector< GpgME::Key > &signers, const std::vector< GpgME::Key > &recipients, const QByteArray &plainText, bool alwaysTrust) override
void start(const std::vector< GpgME::Key > &signers, const std::vector< GpgME::Key > &recipients, const std::shared_ptr< QIODevice > &plainText, const std::shared_ptr< QIODevice > &cipherText, bool alwaysTrust) override
std::pair< GpgME::SigningResult, GpgME::EncryptionResult > exec(const std::vector< GpgME::Key > &signers, const std::vector< GpgME::Key > &recipients, const QByteArray &plainText, const GpgME::Context::EncryptionFlags flags, QByteArray &cipherText) override
void start(const std::vector< GpgME::Key > &signers, const std::vector< GpgME::Key > &recipients, const std::shared_ptr< QIODevice > &plainText, const std::shared_ptr< QIODevice > &cipherText, const GpgME::Context::EncryptionFlags flags) override
An abstract base class for asynchronous combined signing and encrypting.
Definition: signencryptjob.h:83
Definition: threadedjobmixin.h:131