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>
55 :
public _detail::ThreadedJobMixin<SignEncryptJob, std::tuple<GpgME::SigningResult, GpgME::EncryptionResult, QByteArray, QString, GpgME::Error> >
68 GpgME::Error
start(
const std::vector<GpgME::Key> &signers,
69 const std::vector<GpgME::Key> &recipients,
70 const QByteArray &plainText,
bool alwaysTrust)
override;
73 void start(
const std::vector<GpgME::Key> &signers,
74 const std::vector<GpgME::Key> &recipients,
75 const std::shared_ptr<QIODevice> &plainText,
76 const std::shared_ptr<QIODevice> &cipherText,
77 bool alwaysTrust)
override;
79 void start(
const std::vector<GpgME::Key> &signers,
80 const std::vector<GpgME::Key> &recipients,
81 const std::shared_ptr<QIODevice> &plainText,
82 const std::shared_ptr<QIODevice> &cipherText,
83 const GpgME::Context::EncryptionFlags flags)
override;
85 std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
86 exec(
const std::vector<GpgME::Key> &signers,
87 const std::vector<GpgME::Key> &recipients,
88 const QByteArray &plainText,
bool alwaysTrust,
89 QByteArray &cipherText)
override;
91 std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
92 exec(
const std::vector<GpgME::Key> &signers,
93 const std::vector<GpgME::Key> &recipients,
94 const QByteArray &plainText,
const GpgME::Context::EncryptionFlags flags,
95 QByteArray &cipherText)
override;
101 bool mOutputIsBase64Encoded;
Definition: qgpgmesignencryptjob.h:57
void setOutputIsBase64Encoded(bool on) override
Definition: qgpgmesignencryptjob.cpp:96
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
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
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
An abstract base class for asynchronous combined signing and encrypting.
Definition: signencryptjob.h:87
Definition: threadedjobmixin.h:126