qt: Revert change of result signal of RefreshKeysJob

* lang/qt/src/refreshkeysjob.h (RefreshKeysJob::result): Remove optional
parameters auditLogAsHtml and auditLogError.
* lang/qt/tests/run-refreshkeysjob.cpp (main): Update accordingly.
--

This reverts f4c3560925. The reason for
the previous change does no longer apply.

GnuPG-bug-id: 5951
This commit is contained in:
Ingo Klöcker 2022-05-05 10:39:26 +02:00
parent 15a4940aa7
commit 9e8c8e448e
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ public:
virtual GpgME::Error start(const std::vector<GpgME::Key> &keys) = 0;
Q_SIGNALS:
void result(const GpgME::Error &result, const QString &auditLogAsHtml = {}, const GpgME::Error &auditLogError = {});
void result(const GpgME::Error &result);
};
}

View File

@ -140,7 +140,7 @@ int main(int argc, char **argv)
std::cerr << "Error: Could not create job to refresh S/MIME key" << std::endl;
return 1;
}
QObject::connect(job, &QGpgME::RefreshKeysJob::result, &app, [](const GpgME::Error &err, const QString &, const GpgME::Error &) {
QObject::connect(job, &QGpgME::RefreshKeysJob::result, &app, [](const GpgME::Error &err) {
std::cout << "Result: " << err.asString() << std::endl;
qApp->quit();
});