35 #ifndef __KLEO_DECRYPTJOB_H__
36 #define __KLEO_DECRYPTJOB_H__
48 class DecryptionResult;
79 virtual GpgME::Error
start(
const QByteArray &cipherText) = 0;
88 virtual void start(
const std::shared_ptr<QIODevice> &cipherText,
const std::shared_ptr<QIODevice> &plainText = std::shared_ptr<QIODevice>()) = 0;
90 virtual GpgME::DecryptionResult exec(
const QByteArray &cipherText,
91 QByteArray &plainText) = 0;
94 void result(
const GpgME::DecryptionResult &result,
const QByteArray &plainText,
const QString &auditLogAsHtml = QString(),
const GpgME::Error &auditLogError = GpgME::Error());
An abstract base class for asynchronous decrypters.
Definition: decryptjob.h:68
virtual GpgME::Error start(const QByteArray &cipherText)=0
virtual void start(const std::shared_ptr< QIODevice > &cipherText, const std::shared_ptr< QIODevice > &plainText=std::shared_ptr< QIODevice >())=0
An abstract base class for asynchronous crypto operations.
Definition: job.h:73