96 void setFileName(
const QString &fileName);
97 QString fileName()
const;
104 void setInputEncoding(GpgME::Data::Encoding);
105 GpgME::Data::Encoding inputEncoding()
const;
112 void setRecipients(
const std::vector<GpgME::Key> &recipients);
113 std::vector<GpgME::Key> recipients()
const;
120 void setInputFile(
const QString &path);
121 QString inputFile()
const;
132 void setOutputFile(
const QString &path);
133 QString outputFile()
const;
143 void setEncryptionFlags(GpgME::Context::EncryptionFlags flags);
144 GpgME::Context::EncryptionFlags encryptionFlags()
const;
156 virtual GpgME::Error
start(
const std::vector<GpgME::Key> &recipients,
157 const QByteArray &plainText,
bool alwaysTrust =
false) = 0;
166 virtual void start(
const std::vector<GpgME::Key> &recipients,
167 const std::shared_ptr<QIODevice> &plainText,
168 const std::shared_ptr<QIODevice> &cipherText = std::shared_ptr<QIODevice>(),
169 bool alwaysTrust =
false) = 0;
171 virtual GpgME::EncryptionResult exec(
const std::vector<GpgME::Key> &recipients,
172 const QByteArray &plainText,
173 bool alwaysTrust, QByteArray &cipherText) = 0;
182 virtual void start(
const std::vector<GpgME::Key> &recipients,
183 const std::shared_ptr<QIODevice> &plainText,
184 const std::shared_ptr<QIODevice> &cipherText = std::shared_ptr<QIODevice>(),
185 const GpgME::Context::EncryptionFlags flags = GpgME::Context::None) = 0;
189 virtual GpgME::EncryptionResult
exec(
const std::vector<GpgME::Key> &recipients,
190 const QByteArray &plainText,
191 const GpgME::Context::EncryptionFlags flags, QByteArray &cipherText) = 0;
193 void result(
const GpgME::EncryptionResult &result,
const QByteArray &cipherText,
const QString &auditLogAsHtml = QString(),
const GpgME::Error &auditLogError = GpgME::Error());
virtual void start(const std::vector< GpgME::Key > &recipients, const std::shared_ptr< QIODevice > &plainText, const std::shared_ptr< QIODevice > &cipherText=std::shared_ptr< QIODevice >(), const GpgME::Context::EncryptionFlags flags=GpgME::Context::None)=0
virtual GpgME::EncryptionResult exec(const std::vector< GpgME::Key > &recipients, const QByteArray &plainText, const GpgME::Context::EncryptionFlags flags, QByteArray &cipherText)=0
virtual void start(const std::vector< GpgME::Key > &recipients, const std::shared_ptr< QIODevice > &plainText, const std::shared_ptr< QIODevice > &cipherText=std::shared_ptr< QIODevice >(), bool alwaysTrust=false)=0