[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: [PATCH] KIO::SlaveBase and the event loop
From:       Sebastian =?utf-8?q?Tr=C3=BCg?= <strueg () mandriva ! com>
Date:       2008-07-16 6:17:41
Message-ID: 200807160817.41612.strueg () mandriva ! com
[Download RAW message or body]

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 
ago. :)

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 
soon. :)

Cheers,
Sebastian

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic