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) Q_DECL_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) Q_DECL_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) Q_DECL_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) Q_DECL_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) Q_DECL_OVERRIDE;
113 void resultHook(
const result_type &r) Q_DECL_OVERRIDE;
116 bool mOutputIsBase64Encoded;
117 std::pair<GpgME::SigningResult, GpgME::EncryptionResult> mResult;
122 #endif // __QGPGME_QGPGMESIGNENCRYPTJOB_H__