dcopref.h
/*
Copyright (c) 2002 Matthias Ettrich <ettrich@kde.org>
Copyright (c) 1999 Preston Brown <pbrown@kde.org>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef _DCOPREF_H
#define _DCOPREF_H
#include <qcstring.h>
#include <dcoptypes.h>
#include <kdatastream.h> // needed for proper bool marshalling
#include "kdelibs_export.h"
class QDataStream;
class DCOPObject;
class DCOPClient;
class DCOP_EXPORT DCOPReply
{
public:
template<class T>
operator T() {
T t;
dcopTypeInit(t);
if ( typeCheck( dcopTypeName(t), true ) ) {
QDataStream reply( data, IO_ReadOnly );
reply >> t;
}
return t;
}
template <class T> bool get( T& t, const char* tname ) {
if ( typeCheck( tname, false ) ) {
QDataStream reply( data, IO_ReadOnly );
reply >> t;
return true;
}
return false;
}
template <class T> bool get( T& t ) {
if ( typeCheck( dcopTypeName(t), false ) ) {
QDataStream reply( data, IO_ReadOnly );
reply >> t;
return true;
}
return false;
}
inline bool isValid() const { return !type.isNull(); }
QByteArray data;
QCString type;
private:
bool typeCheck( const char* t );
bool typeCheck( const char* t, bool warn );
};
class DCOP_EXPORT DCOPArg {
public:
template <class T> DCOPArg( const T& t, const char* tname_arg )
: tname(tname_arg)
{
QDataStream ds( data, IO_WriteOnly );
ds << t;
}
template <class T> DCOPArg( const T& t )
: tname( dcopTypeName(t) )
{
QDataStream ds( data, IO_WriteOnly );
ds << t;
}
QByteArray data;
const char* tname;
};
inline const char* dcopTypeName( const DCOPArg &arg ) { return arg.tname; }
inline QDataStream & operator << (QDataStream & str, const DCOPArg& arg )
{ str.writeRawBytes( arg.data.data(), arg.data.size() ); return str; }
class DCOP_EXPORT DCOPRef
{
public:
DCOPRef();
DCOPRef( const DCOPRef& ref );
DCOPRef( const QCString& app, const QCString& obj = "" );
DCOPRef( DCOPObject *object );
DCOPRef( const QCString& app, const QCString& obj, const QCString& type );
bool isNull() const;
QCString app() const;
QCString obj() const;
QCString object() const;
QCString type() const;
DCOPRef& operator=( const DCOPRef& );
void setRef( const QCString& app, const QCString& obj = "" );
void setRef( const QCString& app, const QCString& obj, const QCString& type );
void clear();
DCOPClient* dcopClient() const;
void setDCOPClient( DCOPClient *client );
enum EventLoopFlag { NoEventLoop, UseEventLoop };
DCOPReply call( const QCString& fun ) {
QByteArray data;
return callInternal( fun, "()", data );
}
DCOPReply callExt( const QCString& fun, EventLoopFlag useEventLoop=NoEventLoop,
int timeout=-1 ) {
QByteArray data;
return callInternal( fun, "()", data, useEventLoop, timeout );
}
template <class T1>
DCOPReply call( const QCString& fun, const T1& t1 ) {
QCString args;
args.sprintf( "(%s)",
dcopTypeName(t1) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1;
return callInternal( fun, args, data );
}
template <class T1>
DCOPReply callExt( const QCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1) {
QCString args;
args.sprintf( "(%s)",
dcopTypeName(t1) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1;
return callInternal( fun, args, data, useEventLoop, timeout );
}
template <class T1, class T2>
DCOPReply call( const QCString& fun,
const T1& t1,
const T2& t2 ) {
QCString args;
args.sprintf( "(%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2;
return callInternal( fun, args, data );
}
template <class T1, class T2>
DCOPReply callExt( const QCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2) {
QCString args;
args.sprintf( "(%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2;
return callInternal( fun, args, data, useEventLoop, timeout );
}
template <class T1, class T2, class T3>
DCOPReply call( const QCString& fun,
const T1& t1,
const T2& t2,
const T3& t3 ) {
QCString args;
args.sprintf( "(%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3;
return callInternal( fun, args, data );
}
template <class T1, class T2, class T3>
DCOPReply callExt( const QCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
const T3& t3) {
QCString args;
args.sprintf( "(%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3;
return callInternal( fun, args, data, useEventLoop, timeout );
}
template <class T1,class T2,class T3,class T4>
DCOPReply call( const QCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4 ) {
QCString args;
args.sprintf( "(%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4;
return callInternal( fun, args, data );
}
template <class T1,class T2,class T3,class T4>
DCOPReply callExt( const QCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4) {
QCString args;
args.sprintf( "(%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4;
return callInternal( fun, args, data, useEventLoop, timeout );
}
template <class T1,class T2,class T3,class T4,class T5>
DCOPReply call( const QCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5 ) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5;
return callInternal( fun, args, data );
}
template <class T1,class T2,class T3,class T4,class T5>
DCOPReply callExt( const QCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5 ) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5;
return callInternal( fun, args, data, useEventLoop, timeout );
}
template <class T1,class T2,class T3,class T4,class T5,class T6>
DCOPReply call( const QCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5,
const T6& t6 ) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6;
return callInternal( fun, args, data );
}
template <class T1,class T2,class T3,class T4,class T5,class T6>
DCOPReply callExt( const QCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5,
const T6& t6) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6;
return callInternal( fun, args, data, useEventLoop, timeout );
}
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7>
DCOPReply call( const QCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5,
const T6& t6,
const T7& t7 ) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6),
dcopTypeName(t7) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7;
return callInternal( fun, args, data );
}
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7>
DCOPReply callExt( const QCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5,
const T6& t6,
const T7& t7) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6),
dcopTypeName(t7) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7;
return callInternal( fun, args, data, useEventLoop, timeout );
}
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8>
DCOPReply call( const QCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5,
const T6& t6,
const T7& t7,
const T8& t8 ) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6),
dcopTypeName(t7),
dcopTypeName(t8) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7 << t8;
return callInternal( fun, args, data );
}
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8>
DCOPReply callExt( const QCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5,
const T6& t6,
const T7& t7,
const T8& t8) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6),
dcopTypeName(t7),
dcopTypeName(t8) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7 << t8;
return callInternal( fun, args, data, useEventLoop, timeout );
}
bool send( const QCString& fun ) {
QByteArray data;
return sendInternal( fun, "()", data );
}
template <class T1>
bool send( const QCString& fun, const T1& t1 ) {
QCString args;
args.sprintf( "(%s)",
dcopTypeName(t1) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1;
return sendInternal( fun, args, data );
}
template <class T1, class T2>
bool send( const QCString& fun,
const T1& t1,
const T2& t2 ) {
QCString args;
args.sprintf( "(%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2;
return sendInternal( fun, args, data );
}
template <class T1, class T2, class T3>
bool send( const QCString& fun,
const T1& t1,
const T2& t2,
const T3& t3 ) {
QCString args;
args.sprintf( "(%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3;
return sendInternal( fun, args, data );
}
template <class T1,class T2,class T3,class T4>
bool send( const QCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4 ) {
QCString args;
args.sprintf( "(%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4;
return sendInternal( fun, args, data );
}
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 ) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5;
return sendInternal( fun, args, data );
}
template <class T1,class T2,class T3,class T4,class T5,class T6>
bool send( const QCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5,
const T6& t6 ) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6;
return sendInternal( fun, args, data );
}
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7>
bool send( const QCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5,
const T6& t6,
const T7& t7 ) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6),
dcopTypeName(t7) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7;
return sendInternal( fun, args, data );
}
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8>
bool send( const QCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5,
const T6& t6,
const T7& t7,
const T8& t8 ) {
QCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6),
dcopTypeName(t7),
dcopTypeName(t8) );
QByteArray data;
QDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7 << t8;
return sendInternal( fun, args, data );
}
private:
DCOPReply callInternal( const QCString& fun, const QCString& args, const QByteArray& data,
EventLoopFlag useEventLoop, int timeout );
DCOPReply callInternal( const QCString& fun, const QCString& args, const QByteArray& data );
bool sendInternal( const QCString& fun, const QCString& args, const QByteArray& data );
QCString m_app;
QCString m_obj;
QCString m_type;
class DCOPRefPrivate;
DCOPRefPrivate *d;
};
DCOP_EXPORT QDataStream& operator<<( QDataStream&, const DCOPRef& ref );
DCOP_EXPORT QDataStream& operator>>( QDataStream&, DCOPRef& ref );
#endif
DCOPRef::call
DCOPReply call(const QCString &fun)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:417
DCOPRef::send
bool send(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:1277
DCOPArg::DCOPArg
DCOPArg(const T &t, const char *tname_arg)
Creates a DCOPArg for DCOPRef::call().
Definition: dcopref.h:130
DCOPRef::call
DCOPReply call(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:651
DCOPReply::data
QByteArray data
The serialized data.
Definition: dcopref.h:102
DCOPRef::send
bool send(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5, const T6 &t6, const T7 &t7, const T8 &t8)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:1424
DCOPRef::call
DCOPReply call(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5, const T6 &t6)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:821
DCOPReply::type
QCString type
The name of the type, or 0 if unknown.
Definition: dcopref.h:104
DCOPRef::callExt
DCOPReply callExt(const QCString &fun, EventLoopFlag useEventLoop, int timeout, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5, const T6 &t6, const T7 &t7)
Like call(), with additional arguments allowing entering the event loop and specifying timeout...
Definition: dcopref.h:968
DCOPRef::callExt
DCOPReply callExt(const QCString &fun, EventLoopFlag useEventLoop, int timeout, const T1 &t1, const T2 &t2, const T3 &t3)
Like call(), with additional arguments allowing entering the event loop and specifying timeout...
Definition: dcopref.h:613
DCOPRef::EventLoopFlag
EventLoopFlag
Flag for allowing entering the event loop if the call blocks too long.
Definition: dcopref.h:403
DCOPRef::send
bool send(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5, const T6 &t6)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:1322
DCOPRef
A DCOPRef(erence) encapsulates a remote DCOP object as a triple <app,obj,type> where type is optional...
Definition: dcopref.h:278
DCOPRef::send
bool send(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5, const T6 &t6, const T7 &t7)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:1371
DCOPRef::call
DCOPReply call(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5, const T6 &t6, const T7 &t7)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:917
DCOPClient
Inter-process communication and remote procedure calls for KDE applications.
Definition: dcopclient.h:68
DCOPRef::call
DCOPReply call(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5, const T6 &t6, const T7 &t7, const T8 &t8)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:1022
DCOPRef::callExt
DCOPReply callExt(const QCString &fun, EventLoopFlag useEventLoop=NoEventLoop, int timeout=-1)
Like call(), with additional arguments allowing entering the event loop and specifying timeout...
Definition: dcopref.h:435
DCOPRef::callExt
DCOPReply callExt(const QCString &fun, EventLoopFlag useEventLoop, int timeout, const T1 &t1, const T2 &t2)
Like call(), with additional arguments allowing entering the event loop and specifying timeout...
Definition: dcopref.h:544
DCOPRef::call
DCOPReply call(const QCString &fun, const T1 &t1, const T2 &t2)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:513
DCOPRef::callExt
DCOPReply callExt(const QCString &fun, EventLoopFlag useEventLoop, int timeout, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4)
Like call(), with additional arguments allowing entering the event loop and specifying timeout...
Definition: dcopref.h:690
DCOPArg
A generic DCOP argument.
Definition: dcopref.h:120
DCOPArg::data
QByteArray data
The serialized data.
Definition: dcopref.h:152
DCOPRef::send
bool send(const QCString &fun)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:1116
DCOPRef::callExt
DCOPReply callExt(const QCString &fun, EventLoopFlag useEventLoop, int timeout, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5)
Like call(), with additional arguments allowing entering the event loop and specifying timeout...
Definition: dcopref.h:775
DCOPRef::send
bool send(const QCString &fun, const T1 &t1, const T2 &t2)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:1166
DCOPRef::callExt
DCOPReply callExt(const QCString &fun, EventLoopFlag useEventLoop, int timeout, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5, const T6 &t6)
Like call(), with additional arguments allowing entering the event loop and specifying timeout...
Definition: dcopref.h:868
DCOPRef::send
bool send(const QCString &fun, const T1 &t1)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:1138
DCOPRef::call
DCOPReply call(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:578
DCOPRef::send
bool send(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:1236
operator<<
kdbgstream & operator<<(const QValueList< T > &list)
DCOPRef::callExt
DCOPReply callExt(const QCString &fun, EventLoopFlag useEventLoop, int timeout, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5, const T6 &t6, const T7 &t7, const T8 &t8)
Like call(), with additional arguments allowing entering the event loop and specifying timeout...
Definition: dcopref.h:1077
DCOPArg::tname
const char * tname
The signature type name of the data.
Definition: dcopref.h:154
DCOPObject
Provides an interface for receiving DCOP messages.
Definition: dcopobject.h:67
DCOPRef::callExt
DCOPReply callExt(const QCString &fun, EventLoopFlag useEventLoop, int timeout, const T1 &t1)
Like call(), with additional arguments allowing entering the event loop and specifying timeout...
Definition: dcopref.h:483
DCOPReply::isValid
bool isValid() const
Checks whether the type is valid.
Definition: dcopref.h:99
DCOPRef::call
DCOPReply call(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4, const T5 &t5)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:732
DCOPRef::call
DCOPReply call(const QCString &fun, const T1 &t1)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:457
DCOPArg::DCOPArg
DCOPArg(const T &t)
Creates a DCOPArg for DCOPRef::call().
Definition: dcopref.h:144
DCOPReply
Represents the return value of a DCOPRef:call() or DCOPRef:send() invocation.
Definition: dcopref.h:44
DCOPRef::send
bool send(const QCString &fun, const T1 &t1, const T2 &t2, const T3 &t3)
Calls the function fun on the object referenced by this reference.
Definition: dcopref.h:1199

KDE Home | KDE Accessibility Home | Description of Access Keys