53class QGpgMESignEncryptJob
57 :
public _detail::ThreadedJobMixin<SignEncryptJob, QGpgMESignEncryptJobPrivate, std::tuple<GpgME::SigningResult, GpgME::EncryptionResult, QByteArray, QString, GpgME::Error> >
66 explicit QGpgMESignEncryptJob(GpgME::Context *context);
67 ~QGpgMESignEncryptJob();
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;
106 Q_DECLARE_PRIVATE(QGpgMESignEncryptJob)
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