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
This commit is contained in:
Ingo Klöcker 2023-06-19 14:28:14 +02:00
parent 4655b2dc6b
commit 23526c3ff2
No known key found for this signature in database
GPG Key ID: F5A5D1692277A1E9

View File

@ -184,6 +184,7 @@ protected:
m_thread.setFunction([this, func]() { return func(this->context()); });
}
public:
template <typename T_binder>
void run(const T_binder &func)
{
@ -219,6 +220,8 @@ protected:
m_thread.setFunction(std::bind(func, this->context(), this->thread(), std::weak_ptr<QIODevice>(io1), std::weak_ptr<QIODevice>(io2)));
m_thread.start();
}
protected:
GpgME::Context *context() const
{
return m_ctx.get();