34 #ifndef __KLEO_ENCRYPTJOB_H__ 35 #define __KLEO_ENCRYPTJOB_H__ 42 #ifdef BUILDING_QGPGME 45 # include <gpgme++/context.h> 55 class EncryptionResult;
92 virtual QGPGME_DEPRECATED_EXPORT GpgME::Error start(
const std::vector<GpgME::Key> &recipients,
93 const QByteArray &plainText,
bool alwaysTrust =
false) = 0;
104 virtual void start(
const std::vector<GpgME::Key> &recipients,
105 const std::shared_ptr<QIODevice> &plainText,
106 const std::shared_ptr<QIODevice> &cipherText = std::shared_ptr<QIODevice>(),
107 bool alwaysTrust =
false) = 0;
109 virtual GpgME::EncryptionResult exec(
const std::vector<GpgME::Key> &recipients,
110 const QByteArray &plainText,
111 bool alwaysTrust, QByteArray &cipherText) = 0;
116 virtual void setOutputIsBase64Encoded(
bool) = 0;
120 virtual void start(
const std::vector<GpgME::Key> &recipients,
121 const std::shared_ptr<QIODevice> &plainText,
122 const std::shared_ptr<QIODevice> &cipherText = std::shared_ptr<QIODevice>(),
123 const GpgME::Context::EncryptionFlags flags = GpgME::Context::None) = 0;
127 virtual GpgME::EncryptionResult exec(
const std::vector<GpgME::Key> &recipients,
128 const QByteArray &plainText,
129 const GpgME::Context::EncryptionFlags flags, QByteArray &cipherText) = 0;
131 void result(
const GpgME::EncryptionResult &result,
const QByteArray &cipherText,
const QString &auditLogAsHtml = QString(),
const GpgME::Error &auditLogError = GpgME::Error());
136 #endif // __KLEO_ENCRYPTJOB_H__ An abstract base class for asynchronous crypto operations.
Definition: job.h:71
An abstract base class for asynchronous encrypters.
Definition: encryptjob.h:74
Definition: abstractimportjob.h:41
Definition: abstractimportjob.h:47