35 #ifndef __QGPGME_QGPGMESIGNENCRYPTJOB_H__
36 #define __QGPGME_QGPGMESIGNENCRYPTJOB_H__
38 #include "signencryptjob.h"
40 #include "threadedjobmixin.h"
42 #include <gpgme++/signingresult.h>
43 #include <gpgme++/encryptionresult.h>
44 #include <gpgme++/key.h>
51 class QGpgMESignEncryptJobPrivate;
57 :
public _detail::ThreadedJobMixin<SignEncryptJob, QGpgMESignEncryptJobPrivate, std::tuple<GpgME::SigningResult, GpgME::EncryptionResult, QByteArray, QString, GpgME::Error> >
70 GpgME::Error
start(
const std::vector<GpgME::Key> &signers,
71 const std::vector<GpgME::Key> &recipients,
72 const QByteArray &plainText,
bool alwaysTrust)
override;
75 void start(
const std::vector<GpgME::Key> &signers,
76 const std::vector<GpgME::Key> &recipients,
77 const std::shared_ptr<QIODevice> &plainText,
78 const std::shared_ptr<QIODevice> &cipherText,
79 bool alwaysTrust)
override;
81 void start(
const std::vector<GpgME::Key> &signers,
82 const std::vector<GpgME::Key> &recipients,
83 const std::shared_ptr<QIODevice> &plainText,
84 const std::shared_ptr<QIODevice> &cipherText,
85 const GpgME::Context::EncryptionFlags flags)
override;
87 std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
88 exec(
const std::vector<GpgME::Key> &signers,
89 const std::vector<GpgME::Key> &recipients,
90 const QByteArray &plainText,
bool alwaysTrust,
91 QByteArray &cipherText)
override;
93 std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
94 exec(
const std::vector<GpgME::Key> &signers,
95 const std::vector<GpgME::Key> &recipients,
96 const QByteArray &plainText,
const GpgME::Context::EncryptionFlags flags,
97 QByteArray &cipherText)
override;
103 bool mOutputIsBase64Encoded;
111 #endif // __QGPGME_QGPGMESIGNENCRYPTJOB_H__
Definition: qgpgmesignencryptjob.h:53
An abstract base class for asynchronous combined signing and encrypting.
Definition: signencryptjob.h:88
GpgME::Error start(const std::vector< GpgME::Key > &signers, const std::vector< GpgME::Key > &recipients, const QByteArray &plainText, bool alwaysTrust) override
Definition: threadedjobmixin.h:125
Definition: abstractimportjob.h:48
void setOutputIsBase64Encoded(bool on) override
Definition: qgpgmesignencryptjob.cpp:93