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

List:       kde-devel
Subject:    Re: Active objects, threads, signals & slots
From:       Kevin Krammer <kevin.krammer () gmx ! at>
Date:       2002-11-05 23:55:01
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mittwoch, 6. November 2002 00:13, Michael Schuerig wrote:
> I'm dealing with a library where calls can take some time (reading data
> from a mobile phone) and I need to poll in and endless loop (waiting
> for incoming SMS messages).

Polling can be done with QTimers

>
> I would like to encapsulate this nicely and my favorite means would be
> an active object that has its own thread and can communicate with other
> objects by signals in both directions. Signalling would have to be
> synchronized with the main Qt event loop, as far as I understand it;
> actually, that's all I know about the event loop. I haven't found a
> class in Qt or KDE that does this or something similar.

Hmm, maybe you could use KProcIO or KProcess.
Depends on how complex the data is that you have to pass to the lib/get 
from the lib.

Cheers,
Kevin

- -- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kevin Krammer <kevin.krammer@gmx.at>
Developer at the Kmud Project http://www.kmud.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE9yFpanKMhG6pzZJIRAky/AJ9DUhkZDUDhsgAlKygscMnB+VgQTACfdeRY
76y9g+87aYnhiUnMScYeNJo=
=G3zz
-----END PGP SIGNATURE-----


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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