35 #ifndef __KLEO_ENCRYPTJOB_H__
36 #define __KLEO_ENCRYPTJOB_H__
43 #ifdef BUILDING_QGPGME
46 # include <gpgme++/context.h>
56 class EncryptionResult;
93 virtual QGPGME_DEPRECATED_EXPORT GpgME::Error start(
const std::vector<GpgME::Key> &recipients,
94 const QByteArray &plainText,
bool alwaysTrust =
false) = 0;
105 virtual void start(
const std::vector<GpgME::Key> &recipients,
106 const std::shared_ptr<QIODevice> &plainText,
107 const std::shared_ptr<QIODevice> &cipherText = std::shared_ptr<QIODevice>(),
108 bool alwaysTrust =
false) = 0;
110 virtual GpgME::EncryptionResult exec(
const std::vector<GpgME::Key> &recipients,
111 const QByteArray &plainText,
112 bool alwaysTrust, QByteArray &cipherText) = 0;
117 virtual void setOutputIsBase64Encoded(
bool) = 0;
121 virtual void start(
const std::vector<GpgME::Key> &recipients,
122 const std::shared_ptr<QIODevice> &plainText,
123 const std::shared_ptr<QIODevice> &cipherText = std::shared_ptr<QIODevice>(),
124 const GpgME::Context::EncryptionFlags flags = GpgME::Context::None) = 0;
128 virtual GpgME::EncryptionResult exec(
const std::vector<GpgME::Key> &recipients,
129 const QByteArray &plainText,
130 const GpgME::Context::EncryptionFlags flags, QByteArray &cipherText) = 0;
132 void result(
const GpgME::EncryptionResult &result,
const QByteArray &cipherText,
const QString &auditLogAsHtml = QString(),
const GpgME::Error &auditLogError = GpgME::Error());
137 #endif // __KLEO_ENCRYPTJOB_H__