[PATCH] KIO::SlaveBase and the event loop
strueg at mandriva.com
Wed Jul 16 07:17:41 BST 2008
On Wednesday 16 July 2008 00:01:49 Thiago Macieira wrote:
> Sebastian Trüg wrote:
> >my bad. Yes, it worked. The signals are delivered properly. thanks. Now
> > I only have to solve on issue: apparently KIO does not want me to
> > execute KJobs in my second thread.... maybe I need some local scheduler
> > there, too, or something...
> You can't use KIO from an ioslave or from a secondary thread. KIO itself
> uses QDBusConnection::sessionBus() to talk to klauncher.
from a secondary thread does not work at all, from the ioslave's main thread
though it works perfectly (at least for file://)
> There's such a thing as a ForwardingSlaveBase for operations like that.
nah, does not work in my situation. I did grind through that with ervin month
I think I tend to never ask any questions and try to solve it on my own. But
once I get out the first one I start discussing every small issue.
Anyway, thanks a lot for your patient reading of all my chaotic emails.
I solved the issue by properly separating the search result reporting (done in
a separate thread) and the stating through KIO (done in the main thread in my
own event loop once listDir is called).
The Nepomuk search KIO slave works perfectly now including updates. Will block
More information about the kde-core-devel