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

List:       kde-core-devel
Subject:    Re: Adding syntatic sugar to DCOP (DCOPMethodRequest)
From:       Marc Mutz <Marc.Mutz () uni-bielefeld ! de>
Date:       2002-03-28 23:01:55
[Download RAW message or body]

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

On Thursday 28 March 2002 16:34, Ilya Konstantinov wrote:
<snip>
> // That's how we execute asynchronously and get a notification on
> completion but ignore the return value (impossible in good old DCOP)
>
> method_stub().async().whenFinished(&callback_ignore_return_type);
>
> // That's how we execute asynchronously and get a notification on
> completion and receive the return value (impossible in good old DCOP)
>
> method_stub().async().whenFinished(&callback_get_return_type);
>
> // or the same, with a callback class
>
> MyCustomCallback<int> *customCb = new MyCustomCallback<int>;
> method_stub().async().whenFinished(customCb);
<snip>

_callbacks_?? Why not using signal/slots?
method_stub().async().whenFinished( myReceiver, SLOT(mySlot( myReturnType )));


Marc

- -- 
Marc Mutz <mutz@kde.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8o6Dk3oWD+L2/6DgRAhtDAKCjEopEUXqrjX4a9IVtGapvGaOuQwCgqSjJ
ykUZmoOIBkbDw529iqCY1XE=
=itM2
-----END PGP SIGNATURE-----

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

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