35#ifndef __QGPGME_QGPGMESIGNENCRYPTJOB_H__
36#define __QGPGME_QGPGMESIGNENCRYPTJOB_H__
38#include "signencryptjob.h"
40#include "threadedjobmixin.h"
43# include "signingresult.h"
45#include <gpgme++/signingresult.h>
48# include "encryptionresult.h"
50#include <gpgme++/encryptionresult.h>
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;
Definition qgpgmesignencryptjob.h:69
void setOutputIsBase64Encoded(bool on) Q_DECL_OVERRIDE
Definition qgpgmesignencryptjob.cpp:67
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) Q_DECL_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) Q_DECL_OVERRIDE
GpgME::Error start(const std::vector< GpgME::Key > &signers, const std::vector< GpgME::Key > &recipients, const QByteArray &plainText, bool alwaysTrust) Q_DECL_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) Q_DECL_OVERRIDE
An abstract base class for asynchronous combined signing and encrypting.
Definition signencryptjob.h:83
Definition threadedjobmixin.h:125