34#ifndef __QGPGME_SIGNENCRYPTARCHIVEJOB_H__
35#define __QGPGME_SIGNENCRYPTARCHIVEJOB_H__
42# include <gpgme++/context.h>
64 static bool isSupported();
71 void setSigners(
const std::vector<GpgME::Key> &signers);
72 std::vector<GpgME::Key> signers()
const;
79 void setRecipients(
const std::vector<GpgME::Key> &recipients);
80 std::vector<GpgME::Key> recipients()
const;
90 void setInputPaths(
const std::vector<QString> &paths);
91 std::vector<QString> inputPaths()
const;
105 void setOutputFile(
const QString &path);
106 QString outputFile()
const;
114 void setEncryptionFlags(GpgME::Context::EncryptionFlags flags);
115 GpgME::Context::EncryptionFlags encryptionFlags()
const;
121 void setBaseDirectory(
const QString &baseDirectory);
122 QString baseDirectory()
const;
137 virtual GpgME::Error
start(
const std::vector<GpgME::Key> &signers,
138 const std::vector<GpgME::Key> &recipients,
139 const std::vector<QString> &paths,
140 const std::shared_ptr<QIODevice> &cipherText,
141 const GpgME::Context::EncryptionFlags flags) = 0;
161 void result(
const GpgME::SigningResult &signingResult,
162 const GpgME::EncryptionResult &encryptionResult,
163 const QString &auditLogAsHtml = {},
164 const GpgME::Error &auditLogError = {});
An abstract base class for asynchronous crypto operations.
Definition: job.h:73
Definition: signencryptarchivejob.h:57
void fileProgress(int current, int total)
void dataProgress(int current, int total)
virtual GpgME::Error start(const std::vector< GpgME::Key > &signers, const std::vector< GpgME::Key > &recipients, const std::vector< QString > &paths, const std::shared_ptr< QIODevice > &cipherText, const GpgME::Context::EncryptionFlags flags)=0