35 #ifndef __QGPGME_QGPGMEENCRYPTJOB_H__
36 #define __QGPGME_QGPGMEENCRYPTJOB_H__
38 #include "encryptjob.h"
40 #include "threadedjobmixin.h"
42 #include <gpgme++/encryptionresult.h>
43 #include <gpgme++/key.h>
48 class QGpgMEEncryptJobPrivate;
54 :
public _detail::ThreadedJobMixin<EncryptJob, QGpgMEEncryptJobPrivate, std::tuple<GpgME::EncryptionResult, QByteArray, QString, GpgME::Error> >
67 GpgME::Error
start(
const std::vector<GpgME::Key> &recipients,
68 const QByteArray &plainText,
bool alwaysTrust)
override;
71 void start(
const std::vector<GpgME::Key> &recipients,
72 const std::shared_ptr<QIODevice> &plainText,
73 const std::shared_ptr<QIODevice> &cipherText,
74 bool alwaysTrust)
override;
77 GpgME::EncryptionResult exec(
const std::vector<GpgME::Key> &recipients,
78 const QByteArray &plainText,
bool alwaysTrust,
79 QByteArray &cipherText)
override;
81 void start(
const std::vector<GpgME::Key> &recipients,
82 const std::shared_ptr<QIODevice> &plainText,
83 const std::shared_ptr<QIODevice> &cipherText,
84 const GpgME::Context::EncryptionFlags flags)
override;
87 GpgME::EncryptionResult exec(
const std::vector<GpgME::Key> &recipients,
88 const QByteArray &plainText,
const GpgME::Context::EncryptionFlags flags,
89 QByteArray &cipherText)
override;
95 bool mOutputIsBase64Encoded;
103 #endif // __QGPGME_QGPGMEENCRYPTJOB_H__
void setOutputIsBase64Encoded(bool on) override
Definition: qgpgmeencryptjob.cpp:92
GpgME::Error start(const std::vector< GpgME::Key > &recipients, const QByteArray &plainText, bool alwaysTrust) override
An abstract base class for asynchronous encrypters.
Definition: encryptjob.h:85
Definition: qgpgmeencryptjob.h:50
Definition: threadedjobmixin.h:125
Definition: abstractimportjob.h:48