aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Klöcker <[email protected]>2023-06-19 12:28:14 +0000
committerIngo Klöcker <[email protected]>2023-06-19 15:58:23 +0000
commit23526c3ff26be11e4ebb1294b6f60202881a066c (patch)
tree8660bfb39ae3fc35e8ae1388941e8ec4b33ba76d
parentqt: Rename JobPrivate::start to JobPrivate::startNow (diff)
downloadgpgme-23526c3ff26be11e4ebb1294b6f60202881a066c.tar.gz
gpgme-23526c3ff26be11e4ebb1294b6f60202881a066c.zip
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
-rw-r--r--lang/qt/src/threadedjobmixin.h3
1 files changed, 3 insertions, 0 deletions
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 <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();