Needing a QEventLoop for a kioslave
Thiago Macieira
thiago at kde.org
Mon Feb 9 18:01:19 GMT 2009
Em Segunda-feira 09 Fevereiro 2009, às 17:15:36, Friedrich W. H. Kossebau
escreveu:
> Hi,
>
> am I correct that KIO::SlaveBase does not use a QEventLoop in
> dispatchLoop()?
You're correct.
> What shall I do if the 3-party code I use as backend to generate/pull the
> data for the ioslave depends on a running event loop? E.g. if using a
> QTimer IIUC? Could there be an option for the dispatchLoop() to also care
> for QEvents? Or can I use a thread? Is there any example code I could look
> at?
Use a thread.
> Does QDBus stuff get triggered by socket/pipe system events, or does it
> also depend on an event loop?
It depends on the event loop.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Software
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090209/874f941f/attachment.sig>
More information about the kde-core-devel
mailing list