35#ifndef __KLEO_DECRYPTJOB_H__
36#define __KLEO_DECRYPTJOB_H__
48class 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());
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