[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: DCOP idl
From: Matthias Ettrich <ettrich () trolltech ! com>
Date: 2000-05-08 12:21:03
[Download RAW message or body]
For those working on dcop related things,
I extended DCOPidl to support "k_dcop" sections without explicitely named
identifiers. You can name your arguments, but you don't have to. Furthermore,
there's a new magic return value ASYNC.
Example:
...
K_DCOP
...
k_dcop:
void append( const QString& );
.....
makes append() a synchronous call that returns void. Slower, but has the
advantage that users calling the function from generated stubs can use
DCOPStub::status() to check whether the call succeeded.
An assynchronous call (corresponds to DCOPClient::send() ) can be done with
...
K_DCOP
...
k_dcop:
ASYNC append( const QString& text );
.....
The skeleton is no different (ASYNC expands to void), but the stubs will use
send() instead of call().
You may check your interfaces, I assume there are many places were a call
can be done better and faster with ASYNC than with void.
Matthias
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic