54class QGPGME_EXPORT EncryptArchiveJob :
public Job
58 explicit EncryptArchiveJob(std::unique_ptr<EncryptArchiveJobPrivate>, QObject *parent);
60 ~EncryptArchiveJob()
override;
62 static bool isSupported();
69 void setRecipients(
const std::vector<GpgME::Key> &recipients);
70 std::vector<GpgME::Key> recipients()
const;
81 std::vector<QString> inputPaths()
const;
96 QString outputFile()
const;
105 GpgME::Context::EncryptionFlags encryptionFlags()
const;
112 QString baseDirectory()
const;
123 virtual GpgME::Error
start(
const std::vector<GpgME::Key> &recipients,
124 const std::vector<QString> &paths,
125 const std::shared_ptr<QIODevice> &cipherText,
126 const GpgME::Context::EncryptionFlags flags) = 0;
146 void result(
const GpgME::EncryptionResult &result,
147 const QString &auditLogAsHtml = {},
148 const GpgME::Error &auditLogError = {});
151 Q_DECLARE_PRIVATE(EncryptArchiveJob)
virtual GpgME::Error start(const std::vector< GpgME::Key > &recipients, const std::vector< QString > &paths, const std::shared_ptr< QIODevice > &cipherText, const GpgME::Context::EncryptionFlags flags)=0