DCOPRef and dynamic stubs ( 3.1? )

Matthias Ettrich ettrich at trolltech.com
Mon Sep 9 12:13:24 BST 2002


On Monday 09 September 2002 10:25, Simon Hausmann wrote:

[snip]
>
> > your send call would look like
> >
> >    DCOPRef( "desktop" ).send( "setFoo", blah, blubb );
> >
> > Doesn't that look even better? "setFoo" is automatically extended to
> > "setFoo(int, QString)" depending on the types of the arguments 'blah' and
> > 'blubb'.
>
> How does the signature of send look like?


  template <class T1,class T2,class T3,class T4,class T5,... >
    bool send( const QCString& fun,
		    const T1& t1,
		    const T2& t2,
		    const T3& t3,
		    const T4& t4,
		    const T5& t5,
                    ...
                    );

Currently I do up to 8 arguments, which I think is more than enough.

 Matthias






More information about the kde-core-devel mailing list