QGpgME 21.6.2.0000005
Qt API for GpgME
|
#include <signarchivejob.h>
Signals | |
void | fileProgress (int current, int total) |
void | dataProgress (int current, int total) |
void | result (const GpgME::SigningResult &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 () |
Public Member Functions | |
void | setSigners (const std::vector< GpgME::Key > &signers) |
std::vector< GpgME::Key > | signers () const |
void | setInputPaths (const std::vector< QString > &paths) |
std::vector< QString > | inputPaths () const |
void | setOutputFile (const QString &path) |
QString | outputFile () const |
void | setBaseDirectory (const QString &baseDirectory) |
QString | baseDirectory () const |
virtual GpgME::Error | start (const std::vector< GpgME::Key > &signers, const std::vector< QString > &paths, const std::shared_ptr< QIODevice > &output)=0 |
![]() | |
virtual QString | auditLogAsHtml () const |
virtual GpgME::Error | auditLogError () const |
bool | isAuditLogSupported () const |
GpgME::Error | startIt () |
void | startNow () |
Static Public Member Functions | |
static bool | isSupported () |
![]() | |
static GpgME::Context * | context (Job *job) |
Protected Member Functions | |
SignArchiveJob (QObject *parent) | |
![]() | |
Job (QObject *parent) | |
Additional Inherited Members | |
![]() | |
virtual void | slotCancel ()=0 |
Abstract base class for job for creating signed archives
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.
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.
Sets the base directory for the relative paths of the input files and the output file.
Sets the paths of the files and folders to put into the archive.
If base directory is set, then the paths must be relative to the base directory.
Used if the job is started with startIt().
Sets the path of the file to write the created archive to.
If path is a relative path and base directory is set, then the path is interpreted relative to the base directory.
Used if the job is started with startIt().
Sets the keys to use for signing the archive.
Used if the job is started with startIt().
|
pure virtual |
Starts the creation of a signed archive.
Creates a signed archive with the files and directories in paths. The archive is signed with the keys in signers or with the default key, if signers is empty. The signed archive is written to output.
Emits result() when the job has finished.
Implemented in QGpgME::QGpgMESignArchiveJob.