[PATCH] KIO::SlaveBase and the event loop

Andreas Hartmetz ahartmetz at gmail.com
Mon Jul 14 21:48:51 BST 2008



On Monday 14 July 2008 21:04:01 Sebastian Trüg wrote:
> On Monday 14 July 2008 20:54:09 Andreas Hartmetz wrote:
> > On Monday 14 July 2008 18:27:26 Sebastian Trüg wrote:
> > > Let me open with a question: Is there any technical problem with
> > > enabling event handling in KIO::SlaveBase?
> > >
> > > The attached patch is not really pretty as it uses
> > > QCoreApplication::processEvents(). A proper implementation (which I
> > > would do once this issue is clarified) would be based on signal/slot
> > > communication. But it works and allows to test the event handling.
> > >
> > > As the event handling is disabled by default, nothing changes for
> > > existing kio slaves. But it allows my rebooted nepomuk search kio slave
> > > to update the folder contents when the database changes.
> >
> > Is it for some reason impossible to use direct signal/slot connections?
> > They don't need the event loop to run.
>
> Well, actually I need QDBus signals to be delivered which need and event
> loop. That is the problem.
>
I suspected that but you didn't mention it explicitly :)




More information about the kde-core-devel mailing list