34 #ifndef __KLEO_SIGNENCRYPTJOB_H__ 35 #define __KLEO_SIGNENCRYPTJOB_H__ 38 #include "qgpgme_export.h" 40 #ifdef BUILDING_QGPGME 44 # include <gpgme++/global.h> 45 # include <gpgme++/context.h> 60 class EncryptionResult;
97 virtual QGPGME_DEPRECATED_EXPORT GpgME::Error start(
const std::vector<GpgME::Key> &signers,
98 const std::vector<GpgME::Key> &recipients,
99 const QByteArray &plainText,
100 bool alwaysTrust =
false) = 0;
111 virtual void start(
const std::vector<GpgME::Key> &signers,
112 const std::vector<GpgME::Key> &recipients,
113 const std::shared_ptr<QIODevice> &plainText,
114 const std::shared_ptr<QIODevice> &cipherText = std::shared_ptr<QIODevice>(),
115 bool alwaysTrust =
false) = 0;
117 virtual std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
118 exec(
const std::vector<GpgME::Key> &signers,
119 const std::vector<GpgME::Key> &recipients,
120 const QByteArray &plainText,
121 bool alwaysTrust, QByteArray &cipherText) = 0;
127 virtual void setOutputIsBase64Encoded(
bool) = 0;
131 virtual void start(
const std::vector<GpgME::Key> &signers,
132 const std::vector<GpgME::Key> &recipients,
133 const std::shared_ptr<QIODevice> &plainText,
134 const std::shared_ptr<QIODevice> &cipherText = std::shared_ptr<QIODevice>(),
135 const GpgME::Context::EncryptionFlags flags = GpgME::Context::None) = 0;
139 virtual std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
140 exec(
const std::vector<GpgME::Key> &signers,
141 const std::vector<GpgME::Key> &recipients,
142 const QByteArray &plainText,
143 const GpgME::Context::EncryptionFlags flags, QByteArray &cipherText) = 0;
145 void result(
const GpgME::SigningResult &signingresult,
146 const GpgME::EncryptionResult &encryptionresult,
147 const QByteArray &cipherText,
const QString &auditLogAsHtml = QString(),
148 const GpgME::Error &auditLogError = GpgME::Error());
153 #endif // __KLEO_SIGNENCRYPTJOB_H__ An abstract base class for asynchronous crypto operations.
Definition: job.h:71
An abstract base class for asynchronous combined signing and encrypting.
Definition: signencryptjob.h:79
Definition: abstractimportjob.h:41
Definition: abstractimportjob.h:47