diff options
author | Ingo Klöcker <dev@ingo-kloecker.de> | 2023-02-13 15:56:20 +0100 |
---|---|---|
committer | Ingo Klöcker <dev@ingo-kloecker.de> | 2023-02-14 09:25:21 +0100 |
commit | 73e46b34658c0130de5ab9e3f4ce1ac4ee35c5e2 (patch) | |
tree | ad6e4e0a9a17fc4dc491196447aa0e8a945a9d14 /lang/qt/src/encryptarchivejob.h | |
parent | ccff6a96fc2b0b069c6fd3a6d2991a9b372ad714 (diff) | |
download | gpgme-73e46b34658c0130de5ab9e3f4ce1ac4ee35c5e2.tar.gz |
qt: Add signals for file-based and data-based progress
* lang/qt/src/decryptverifyarchivejob.h (DecryptVerifyArchiveJob): Add
signals fileProgress and dataProgress.
* lang/qt/src/encryptarchivejob.h (EncryptArchiveJob): Ditto.
* lang/qt/src/signarchivejob.h (SignArchiveJob): Ditto.
* lang/qt/src/signencryptarchivejob.h (SignEncryptArchiveJob): Ditto.
* lang/qt/src/job_p.h (emitArchiveProgressSignals): New.
* lang/qt/src/qgpgmedecryptverifyarchivejob.cpp
(QGpgMEDecryptVerifyArchiveJob::QGpgMEDecryptVerifyArchiveJob): Emit
appropriate signal when receiving Job::rawProgress signal.
* lang/qt/src/qgpgmeencryptarchivejob.cpp
(QGpgMEEncryptArchiveJob::QGpgMEEncryptArchiveJob): Ditto.
* lang/qt/src/qgpgmesignarchivejob.cpp
(QGpgMESignArchiveJob::QGpgMESignArchiveJob): Ditto.
* lang/qt/src/qgpgmesignencryptarchivejob.cpp
(QGpgMESignEncryptArchiveJob::QGpgMESignEncryptArchiveJob): Ditto.
--
GnuPG-bug-id: 6342
Diffstat (limited to 'lang/qt/src/encryptarchivejob.h')
-rw-r--r-- | lang/qt/src/encryptarchivejob.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lang/qt/src/encryptarchivejob.h b/lang/qt/src/encryptarchivejob.h index 39b8fb14..b3c16c3a 100644 --- a/lang/qt/src/encryptarchivejob.h +++ b/lang/qt/src/encryptarchivejob.h @@ -81,6 +81,23 @@ public: const GpgME::Context::EncryptionFlags flags) = 0; Q_SIGNALS: + /** + * 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), \a current is the current number of + * files and \a total is 0. In the writing phase, \a current is the number + * of processed files and \a total is the total number of files. + */ + void fileProgress(int current, int total); + + /** + * 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. + * \a current is the processed amount data and \a total is the total amount + * of data to process. Both values never exceed 2^20. + */ + void dataProgress(int current, int total); + void result(const GpgME::EncryptionResult &result, const QString &auditLogAsHtml = {}, const GpgME::Error &auditLogError = {}); |