35 #ifndef __KLEO_DECRYPTJOB_H__
36 #define __KLEO_DECRYPTJOB_H__
48 class DecryptionResult;
79 virtual GpgME::Error start(
const QByteArray &cipherText) = 0;
90 virtual void start(
const std::shared_ptr<QIODevice> &cipherText,
const std::shared_ptr<QIODevice> &plainText = std::shared_ptr<QIODevice>()) = 0;
92 virtual GpgME::DecryptionResult exec(
const QByteArray &cipherText,
93 QByteArray &plainText) = 0;
96 void result(
const GpgME::DecryptionResult &result,
const QByteArray &plainText,
const QString &auditLogAsHtml = QString(),
const GpgME::Error &auditLogError = GpgME::Error());
101 #endif // __KLEO_DECRYPTJOB_H__