[PATCH] KIO::SlaveBase and the event loop

Sebastian Trüg strueg at mandriva.com
Mon Jul 14 20:04:01 BST 2008

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.

> kioslaves are already somewhat complex in some aspects and I'd like to
> avoid adding one more state that has to be tested and maintained in the
> future. Somebody else (David, Thiago) will need to say something here, too.
> I am still relatively new to the KIO thing.

More information about the kde-core-devel mailing list