34#ifndef __QGPGME_SIGNENCRYPTARCHIVEJOB_H__
35#define __QGPGME_SIGNENCRYPTARCHIVEJOB_H__
39#include <gpgme++/context.h>
60 static bool isSupported();
67 void setSigners(
const std::vector<GpgME::Key> &signers);
68 std::vector<GpgME::Key> signers()
const;
75 void setRecipients(
const std::vector<GpgME::Key> &recipients);
76 std::vector<GpgME::Key> recipients()
const;
86 void setInputPaths(
const std::vector<QString> &paths);
87 std::vector<QString> inputPaths()
const;
101 void setOutputFile(
const QString &path);
102 QString outputFile()
const;
110 void setEncryptionFlags(GpgME::Context::EncryptionFlags flags);
111 GpgME::Context::EncryptionFlags encryptionFlags()
const;
117 void setBaseDirectory(
const QString &baseDirectory);
118 QString baseDirectory()
const;
133 virtual GpgME::Error
start(
const std::vector<GpgME::Key> &signers,
134 const std::vector<GpgME::Key> &recipients,
135 const std::vector<QString> &paths,
136 const std::shared_ptr<QIODevice> &cipherText,
137 const GpgME::Context::EncryptionFlags flags) = 0;
157 void result(
const GpgME::SigningResult &signingResult,
158 const GpgME::EncryptionResult &encryptionResult,
159 const QString &auditLogAsHtml = {},
160 const GpgME::Error &auditLogError = {});
An abstract base class for asynchronous crypto operations.
Definition: job.h:69
Definition: signencryptarchivejob.h:53
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