34 #ifndef __QGPGME_QGPGMESIGNENCRYPTJOB_H__ 35 #define __QGPGME_QGPGMESIGNENCRYPTJOB_H__ 37 #include "signencryptjob.h" 39 #include "threadedjobmixin.h" 41 #ifdef BUILDING_QGPGME 42 # include "signingresult.h" 44 #include <gpgme++/signingresult.h> 46 #ifdef BUILDING_QGPGME 47 # include "encryptionresult.h" 49 #include <gpgme++/encryptionresult.h> 51 #ifdef BUILDING_QGPGME 54 #include <gpgme++/key.h> 66 :
public _detail::ThreadedJobMixin<SignEncryptJob, std::tuple<GpgME::SigningResult, GpgME::EncryptionResult, QByteArray, QString, GpgME::Error> >
79 GpgME::Error
start(
const std::vector<GpgME::Key> &signers,
80 const std::vector<GpgME::Key> &recipients,
81 const QByteArray &plainText,
bool alwaysTrust) Q_DECL_OVERRIDE;
84 void start(
const std::vector<GpgME::Key> &signers,
85 const std::vector<GpgME::Key> &recipients,
86 const std::shared_ptr<QIODevice> &plainText,
87 const std::shared_ptr<QIODevice> &cipherText,
88 bool alwaysTrust) Q_DECL_OVERRIDE;
90 void start(
const std::vector<GpgME::Key> &signers,
91 const std::vector<GpgME::Key> &recipients,
92 const std::shared_ptr<QIODevice> &plainText,
93 const std::shared_ptr<QIODevice> &cipherText,
94 const GpgME::Context::EncryptionFlags flags) Q_DECL_OVERRIDE;
96 std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
97 exec(
const std::vector<GpgME::Key> &signers,
98 const std::vector<GpgME::Key> &recipients,
99 const QByteArray &plainText,
bool alwaysTrust,
100 QByteArray &cipherText) Q_DECL_OVERRIDE;
102 std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
103 exec(
const std::vector<GpgME::Key> &signers,
104 const std::vector<GpgME::Key> &recipients,
105 const QByteArray &plainText,
const GpgME::Context::EncryptionFlags flags,
106 QByteArray &cipherText) Q_DECL_OVERRIDE;
112 void resultHook(
const result_type &r) Q_DECL_OVERRIDE;
115 bool mOutputIsBase64Encoded;
116 std::pair<GpgME::SigningResult, GpgME::EncryptionResult> mResult;
121 #endif // __QGPGME_QGPGMESIGNENCRYPTJOB_H__ Definition: qgpgmesignencryptjob.h:62
An abstract base class for asynchronous combined signing and encrypting.
Definition: signencryptjob.h:79
Definition: threadedjobmixin.h:123
void setOutputIsBase64Encoded(bool on) Q_DECL_OVERRIDE
Definition: qgpgmesignencryptjob.cpp:64
Definition: abstractimportjob.h:47
GpgME::Error start(const std::vector< GpgME::Key > &signers, const std::vector< GpgME::Key > &recipients, const QByteArray &plainText, bool alwaysTrust) Q_DECL_OVERRIDE