99 void setFileName(
const QString &fileName);
107 void setSigners(
const std::vector<GpgME::Key> &signers);
108 std::vector<GpgME::Key> signers()
const;
115 void setRecipients(
const std::vector<GpgME::Key> &recipients);
116 std::vector<GpgME::Key> recipients()
const;
123 void setInputFile(
const QString &path);
135 void setOutputFile(
const QString &path);
146 void setEncryptionFlags(GpgME::Context::EncryptionFlags
flags);
147 GpgME::Context::EncryptionFlags encryptionFlags()
const;
159 virtual GpgME::Error
start(
const std::vector<GpgME::Key> &signers,
160 const std::vector<GpgME::Key> &recipients,
171 virtual void start(
const std::vector<GpgME::Key> &signers,
172 const std::vector<GpgME::Key> &recipients,
173 const std::shared_ptr<QIODevice> &
plainText,
174 const std::shared_ptr<QIODevice> &
cipherText = std::shared_ptr<QIODevice>(),
177 virtual std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
178 exec(
const std::vector<GpgME::Key> &signers,
179 const std::vector<GpgME::Key> &recipients,
191 virtual void start(
const std::vector<GpgME::Key> &signers,
192 const std::vector<GpgME::Key> &recipients,
193 const std::shared_ptr<QIODevice> &
plainText,
194 const std::shared_ptr<QIODevice> &
cipherText = std::shared_ptr<QIODevice>(),
195 const GpgME::Context::EncryptionFlags
flags = GpgME::Context::None) = 0;
199 virtual std::pair<GpgME::SigningResult, GpgME::EncryptionResult>
200 exec(
const std::vector<GpgME::Key> &signers,
201 const std::vector<GpgME::Key> &recipients,
208 const GpgME::Error &auditLogError = GpgME::Error());
virtual void start(const std::vector< GpgME::Key > &signers, 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 std::pair< GpgME::SigningResult, GpgME::EncryptionResult > exec(const std::vector< GpgME::Key > &signers, 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 > &signers, 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