From ea6f15ed602eeb9fa87766ba88acc78361a14b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 13 Feb 2023 10:58:31 +0100 Subject: qt: Add simple and extended progress signals replacing old signal * lang/qt/src/job.h (Job): Add signals jobProgress and rawProgress. Deprecate signal progress. * lang/qt/src/multideletejob.cpp (MultiDeleteJob::slotResult): Emit new progress signals. * lang/qt/src/qgpgmerefreshsmimekeysjob.cpp (QGpgMERefreshSMIMEKeysJob::slotStatus): Ditto. * lang/qt/src/threadedjobmixin.h (ThreadedJobMixin::showProgress): Use modern overload of QMetaObject::invokeMethod to forward the progress signal and add the value of what. Add forwarding of progress to the new signals. * lang/qt/tests/t-encrypt.cpp (EncryptionTest::testProgress): Test the new signals instead of the deprecated one. -- The new signal jobProgress omits the what value which is useless for most consumers. The new signal rawProgress makes all information provided by the backend available to consumers. The latter is not really meant to be used by users of gpgme. It will be used by the archive jobs to provide more user-friendly signals. GnuPG-bug-id: 6342 --- NEWS | 3 +++ 1 file changed, 3 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index a7b0d9f9..0b051d5e 100644 --- a/NEWS +++ b/NEWS @@ -69,6 +69,9 @@ Noteworthy changes in version 1.19.0 (unreleased) qt: Protocol::encryptArchiveJob NEW. qt: Protocol::signArchiveJob NEW. qt: Protocol::signEncryptArchiveJob NEW. + qt: Job::jobProgress NEW. + qt: Job::rawProgress NEW. + qt: Job::progress DEPRECATED. Release-info: https://dev.gnupg.org/T6341 -- cgit v1.2.3