From 23526c3ff26be11e4ebb1294b6f60202881a066c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Mon, 19 Jun 2023 14:28:14 +0200 Subject: qt: Make the run methods of ThreadedJobMixin public * lang/qt/src/threadedjobmixin.h (ThreadedJobMixin::run): Make all overloads public. -- This allows calling the run() functions from the JobPrivate subclasses. GnuPG-bug-id: 6530 --- lang/qt/src/threadedjobmixin.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lang/qt/src/threadedjobmixin.h b/lang/qt/src/threadedjobmixin.h index e92d02d7..92a02c24 100644 --- a/lang/qt/src/threadedjobmixin.h +++ b/lang/qt/src/threadedjobmixin.h @@ -184,6 +184,7 @@ protected: m_thread.setFunction([this, func]() { return func(this->context()); }); } +public: template void run(const T_binder &func) { @@ -219,6 +220,8 @@ protected: m_thread.setFunction(std::bind(func, this->context(), this->thread(), std::weak_ptr(io1), std::weak_ptr(io2))); m_thread.start(); } + +protected: GpgME::Context *context() const { return m_ctx.get(); -- cgit v1.2.3