#include <encryptarchivejob.h>
|
void | fileProgress (int current, int total) |
|
void | dataProgress (int current, int total) |
|
void | result (const GpgME::EncryptionResult &result, const QString &auditLogAsHtml={}, const GpgME::Error &auditLogError={}) |
|
void | jobProgress (int current, int total) |
|
void | rawProgress (const QString &what, int type, int current, int total) |
|
QGPGME_DEPRECATED void | progress (const QString &what, int current, int total) |
|
void | done () |
|
|
void | setBaseDirectory (const QString &baseDirectory) |
|
QString | baseDirectory () const |
|
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 |
|
virtual QString | auditLogAsHtml () const |
|
virtual GpgME::Error | auditLogError () const |
|
bool | isAuditLogSupported () const |
|
void | startNow () |
|
|
static bool | isSupported () |
|
static GpgME::Context * | context (Job *job) |
|
|
| EncryptArchiveJob (QObject *parent) |
|
| Job (QObject *parent) |
|
|
virtual void | slotCancel ()=0 |
|
Abstract base class for job for creating encrypted archives
◆ dataProgress
void QGpgME::EncryptArchiveJob::dataProgress |
( |
int |
current, |
|
|
int |
total |
|
) |
| |
|
signal |
This signal is emitted whenever gpgtar sends a progress status update for the amount of processed data. It is only emitted in the writing phase. current is the processed amount data and total is the total amount of data to process. Both values never exceed 2^20.
◆ fileProgress
void QGpgME::EncryptArchiveJob::fileProgress |
( |
int |
current, |
|
|
int |
total |
|
) |
| |
|
signal |
This signal is emitted whenever gpgtar sends a progress status update for the number of files. In the scanning phase (i.e. while gpgtar checks which files to put into the archive), current is the current number of files and total is 0. In the writing phase, current is the number of processed files and total is the total number of files.
◆ start()
virtual GpgME::Error QGpgME::EncryptArchiveJob::start |
( |
const std::vector< GpgME::Key > & |
recipients, |
|
|
const std::vector< QString > & |
paths, |
|
|
const std::shared_ptr< QIODevice > & |
cipherText, |
|
|
const GpgME::Context::EncryptionFlags |
flags |
|
) |
| |
|
pure virtual |
Starts the creation of an encrypted archive.
Encrypts the files and directories in paths into an archive for the keys in recipients. If recipients is empty, then symmetric encryption is performed. The encrypted archive is written to cipherText.
Emits result() when the job has finished.
Implemented in QGpgME::QGpgMEEncryptArchiveJob.
The documentation for this class was generated from the following files: