34 #ifndef __QGPGME_SIGNENCRYPTARCHIVEJOB_H__
35 #define __QGPGME_SIGNENCRYPTARCHIVEJOB_H__
39 #include <gpgme++/context.h>
49 class SignEncryptArchiveJobPrivate;
62 static bool isSupported();
69 void setSigners(
const std::vector<GpgME::Key> &signers);
70 std::vector<GpgME::Key> signers()
const;
77 void setRecipients(
const std::vector<GpgME::Key> &recipients);
78 std::vector<GpgME::Key> recipients()
const;
88 void setInputPaths(
const std::vector<QString> &paths);
89 std::vector<QString> inputPaths()
const;
103 void setOutputFile(
const QString &path);
104 QString outputFile()
const;
112 void setEncryptionFlags(GpgME::Context::EncryptionFlags flags);
113 GpgME::Context::EncryptionFlags encryptionFlags()
const;
119 void setBaseDirectory(
const QString &baseDirectory);
120 QString baseDirectory()
const;
135 virtual GpgME::Error start(
const std::vector<GpgME::Key> &signers,
136 const std::vector<GpgME::Key> &recipients,
137 const std::vector<QString> &paths,
138 const std::shared_ptr<QIODevice> &cipherText,
139 const GpgME::Context::EncryptionFlags flags) = 0;
149 void fileProgress(
int current,
int total);
157 void dataProgress(
int current,
int total);
159 void result(
const GpgME::SigningResult &signingResult,
160 const GpgME::EncryptionResult &encryptionResult,
161 const QString &auditLogAsHtml = {},
162 const GpgME::Error &auditLogError = {});
170 #endif // __QGPGME_SIGNENCRYPTARCHIVEJOB_H__
An abstract base class for asynchronous crypto operations.
Definition: job.h:71
Definition: abstractimportjob.h:42
Definition: signencryptarchivejob.h:54
Definition: abstractimportjob.h:48