summaryrefslogtreecommitdiffstats
path: root/dcop/dcopref.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:46:43 +0000
commitffe8a83e053396df448e9413828527613ca3bd46 (patch)
treea73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /dcop/dcopref.h
parent682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff)
downloadtdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz
tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'dcop/dcopref.h')
-rw-r--r--dcop/dcopref.h352
1 files changed, 176 insertions, 176 deletions
diff --git a/dcop/dcopref.h b/dcop/dcopref.h
index 3b65fb9dc..380bebf5a 100644
--- a/dcop/dcopref.h
+++ b/dcop/dcopref.h
@@ -23,7 +23,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef _DCOPREF_H
#define _DCOPREF_H
-#include <qcstring.h>
+#include <tqcstring.h>
#include <dcoptypes.h>
#include <kdatastream.h> // needed for proper bool marshalling
#include "kdelibs_export.h"
@@ -46,7 +46,7 @@ class DCOP_EXPORT DCOPReply
public:
/**
* Casts the value to the type @p T. Requires that the
- * type @p T suppports QDataStream deserialisation
+ * type @p T suppports TQDataStream deserialisation
* and has a function dcopTypeName(T). This is true for most
* basic types.
*/
@@ -55,21 +55,21 @@ public:
T t;
dcopTypeInit(t);
if ( typeCheck( dcopTypeName(t), true ) ) {
- QDataStream reply( data, IO_ReadOnly );
+ TQDataStream reply( data, IO_ReadOnly );
reply >> t;
}
return t;
}
/**
* Retrieves the value from the type @p T. Requires that the
- * type @p T suppports QDataStream deserialisation.
+ * type @p T suppports TQDataStream deserialisation.
* @param t the type will be written here, if successful
* @param tname the signature type name
* @return true if successful, false otherwise
*/
template <class T> bool get( T& t, const char* tname ) {
if ( typeCheck( tname, false ) ) {
- QDataStream reply( data, IO_ReadOnly );
+ TQDataStream reply( data, IO_ReadOnly );
reply >> t;
return true;
}
@@ -77,7 +77,7 @@ public:
}
/**
* Retrieves the value from the type @p T. Requires that the
- * type @p T suppports QDataStream deserialisation
+ * type @p T suppports TQDataStream deserialisation
* and has a function dcopTypeName(T). This is true for most
* basic types.
* @param t the type will be written here, if successful
@@ -85,7 +85,7 @@ public:
*/
template <class T> bool get( T& t ) {
if ( typeCheck( dcopTypeName(t), false ) ) {
- QDataStream reply( data, IO_ReadOnly );
+ TQDataStream reply( data, IO_ReadOnly );
reply >> t;
return true;
}
@@ -99,9 +99,9 @@ public:
inline bool isValid() const { return !type.isNull(); }
/// The serialized data.
- QByteArray data;
+ TQByteArray data;
/// The name of the type, or 0 if unknown.
- QCString type;
+ TQCString type;
private:
bool typeCheck( const char* t );
bool typeCheck( const char* t, bool warn );
@@ -121,8 +121,8 @@ class DCOP_EXPORT DCOPArg {
public:
/**
* Creates a DCOPArg for DCOPRef::call().
- * @param t the data that will be written to a QDataStream. It must
- * overload writing to a QDataStream using the "<<"
+ * @param t the data that will be written to a TQDataStream. It must
+ * overload writing to a TQDataStream using the "<<"
* operator
* @param tname_arg the name of the data that will appear in the
* function's signature
@@ -130,13 +130,13 @@ public:
template <class T> DCOPArg( const T& t, const char* tname_arg )
: tname(tname_arg)
{
- QDataStream ds( data, IO_WriteOnly );
+ TQDataStream ds( data, IO_WriteOnly );
ds << t;
}
/**
* Creates a DCOPArg for DCOPRef::call().
- * @param t the data that will be written to a QDataStream. It must
- * overload writing to a QDataStream using the "<<"
+ * @param t the data that will be written to a TQDataStream. It must
+ * overload writing to a TQDataStream using the "<<"
* operator. The name of the type will be determined by
* calling the function dcopTypeName(T) that must be provided
* by you.
@@ -144,18 +144,18 @@ public:
template <class T> DCOPArg( const T& t )
: tname( dcopTypeName(t) )
{
- QDataStream ds( data, IO_WriteOnly );
+ TQDataStream ds( data, IO_WriteOnly );
ds << t;
}
/// The serialized data.
- QByteArray data;
+ TQByteArray data;
/// The signature type name of the data.
const char* tname;
};
inline const char* dcopTypeName( const DCOPArg &arg ) { return arg.tname; }
-inline QDataStream & operator << (QDataStream & str, const DCOPArg& arg )
+inline TQDataStream & operator << (TQDataStream & str, const DCOPArg& arg )
{ str.writeRawBytes( arg.data.data(), arg.data.size() ); return str; }
@@ -176,8 +176,8 @@ inline QDataStream & operator << (QDataStream & str, const DCOPArg& arg )
* ...
* k_dcop:
* DCOPRef giveMeAnotherObject();
- * int doSomething( QString, float, bool );
- * ASYNC pingMe( QCString message );
+ * int doSomething( TQString, float, bool );
+ * ASYNC pingMe( TQCString message );
* UserType userFunction( UserType );
* };
* \endcode
@@ -194,7 +194,7 @@ inline QDataStream & operator << (QDataStream & str, const DCOPArg& arg )
*
* \code
* DCOPRef example( "foo", "example" );
- * int result = example.call( "doSomething", QString("Hello World"), (float)2.5, true );
+ * int result = example.call( "doSomething", TQString("Hello World"), (float)2.5, true );
* \endcode
*
* If it is important for you to know whether the call succeeded or
@@ -202,30 +202,30 @@ inline QDataStream & operator << (QDataStream & str, const DCOPArg& arg )
*
* \code
* DCOPRef example( "foo", "example" );
- * DCOPReply reply = example.call( "doSomething", QString("Hello World"), (float)2.5, true );
+ * DCOPReply reply = example.call( "doSomething", TQString("Hello World"), (float)2.5, true );
* if ( reply.isValid() ) {
* int result = reply;
* // ...
* }
* \endcode
*
- * Note that you must pass a QString for the first argument. If you use a
- * regular char pointer, it will be converted to a QCString.
+ * Note that you must pass a TQString for the first argument. If you use a
+ * regular char pointer, it will be converted to a TQCString.
*
* For curiosity, here is how you would achieve the exactly same
* functionality by using DCOPClient::call() directly:
*
* \code
- * QByteArray data, replyData;
- * QCString replyType;
- * QDataStream arg( data, IO_WriteOnly );
- * arg << QString("hello world" ), (float) 2.5 << true;
+ * TQByteArray data, replyData;
+ * TQCString replyType;
+ * TQDataStream arg( data, IO_WriteOnly );
+ * arg << TQString("hello world" ), (float) 2.5 << true;
* if ( DCOPClient::mainClient()->call( app, obj,
- * "doSomething(QString,float,bool)",
+ * "doSomething(TQString,float,bool)",
* data, replyType, replyData ) ) {
* if ( replyType == "int" ) {
* int result;
- * QDataStream reply( replyData, IO_ReadOnly );
+ * TQDataStream reply( replyData, IO_ReadOnly );
* reply >> result;
* // ...
* }
@@ -238,10 +238,10 @@ inline QDataStream & operator << (QDataStream & str, const DCOPArg& arg )
* dcopTypeName function, for example
*
* \code
- * inline const char* dcopTypeName( const QString& ) { return "QString"; }
+ * inline const char* dcopTypeName( const TQString& ) { return "TQString"; }
* \endcode
*
- * If you use custom data types that do support QDataStream but have
+ * If you use custom data types that do support TQDataStream but have
* no corresponding dcopTypeName overload, you can either provide such
* an overload or use a DCOPArg wrapper that allows you to specify the type.
*
@@ -295,7 +295,7 @@ public:
* by the dcopserver.
* @param obj The name of the dcop object.
*/
- DCOPRef( const QCString& app, const QCString& obj = "" );
+ DCOPRef( const TQCString& app, const TQCString& obj = "" );
/**
* Creates a reference to an existing dcop object
@@ -313,7 +313,7 @@ public:
* @param obj The name of the dcop object
* @param type The object's type
*/
- DCOPRef( const QCString& app, const QCString& obj, const QCString& type );
+ DCOPRef( const TQCString& app, const TQCString& obj, const TQCString& type );
/**
* Tests whether this is a null reference.
@@ -326,25 +326,25 @@ public:
* Name of the application in which the object resides.
* @return the application's id. Can be null or empty if not set.
*/
- QCString app() const;
+ TQCString app() const;
/**
* Object ID of the referenced object.
* @return the id of the referenced object. Can be null or empty if not set.
* @since 3.1
*/
- QCString obj() const;
+ TQCString obj() const;
/**
* @obsolete
*/
- QCString object() const;
+ TQCString object() const;
/**
* Type of the referenced object. May be null (i.e. unknown).
* @return the type of the referenced object, or null if unknown
*/
- QCString type() const;
+ TQCString type() const;
/**
@@ -358,7 +358,7 @@ public:
* @param app the application id.
* @param obj the object id
*/
- void setRef( const QCString& app, const QCString& obj = "" );
+ void setRef( const TQCString& app, const TQCString& obj = "" );
/**
* Changes the referenced object.
@@ -366,7 +366,7 @@ public:
* @param obj the object id
* @param type the object's type
*/
- void setRef( const QCString& app, const QCString& obj, const QCString& type );
+ void setRef( const TQCString& app, const TQCString& obj, const TQCString& type );
/**
@@ -404,7 +404,7 @@ public:
/**
* Calls the function @p fun on the object referenced by this reference.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -414,8 +414,8 @@ public:
* @see DCOPArg
* @since 3.1
*/
- DCOPReply call( const QCString& fun ) {
- QByteArray data;
+ DCOPReply call( const TQCString& fun ) {
+ TQByteArray data;
return callInternal( fun, "()", data );
}
@@ -426,22 +426,22 @@ public:
* the call blocks too long
* @param timeout timeout for the call in miliseconds, or -1 for no timeout
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
* @since 3.2
*/
- DCOPReply callExt( const QCString& fun, EventLoopFlag useEventLoop=NoEventLoop,
+ DCOPReply callExt( const TQCString& fun, EventLoopFlag useEventLoop=NoEventLoop,
int timeout=-1 ) {
- QByteArray data;
+ TQByteArray data;
return callInternal( fun, "()", data, useEventLoop, timeout );
}
/**
* Calls the function @p fun on the object referenced by this reference.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -454,12 +454,12 @@ public:
* @since 3.1
*/
template <class T1>
- DCOPReply call( const QCString& fun, const T1& t1 ) {
- QCString args;
+ DCOPReply call( const TQCString& fun, const T1& t1 ) {
+ TQCString args;
args.sprintf( "(%s)",
dcopTypeName(t1) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1;
return callInternal( fun, args, data );
}
@@ -471,7 +471,7 @@ public:
* the call blocks too long
* @param timeout timeout for the call in miliseconds, or -1 for no timeout
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -480,14 +480,14 @@ public:
* @since 3.2
*/
template <class T1>
- DCOPReply callExt( const QCString& fun,
+ DCOPReply callExt( const TQCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s)",
dcopTypeName(t1) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1;
return callInternal( fun, args, data, useEventLoop, timeout );
}
@@ -495,7 +495,7 @@ public:
/**
* Calls the function @p fun on the object referenced by this reference.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -510,15 +510,15 @@ public:
* @since 3.1
*/
template <class T1, class T2>
- DCOPReply call( const QCString& fun,
+ DCOPReply call( const TQCString& fun,
const T1& t1,
const T2& t2 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2;
return callInternal( fun, args, data );
}
@@ -530,7 +530,7 @@ public:
* the call blocks too long
* @param timeout timeout for the call in miliseconds, or -1 for no timeout
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -541,16 +541,16 @@ public:
* @since 3.2
*/
template <class T1, class T2>
- DCOPReply callExt( const QCString& fun,
+ DCOPReply callExt( const TQCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2;
return callInternal( fun, args, data, useEventLoop, timeout );
}
@@ -558,7 +558,7 @@ public:
/**
* Calls the function @p fun on the object referenced by this reference.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -575,17 +575,17 @@ public:
* @since 3.1
*/
template <class T1, class T2, class T3>
- DCOPReply call( const QCString& fun,
+ DCOPReply call( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3;
return callInternal( fun, args, data );
}
@@ -596,7 +596,7 @@ public:
* @param useEventLoop if UseEventLoop, the event loop will be started when
* the call blocks too long
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -610,18 +610,18 @@ public:
* @since 3.2
*/
template <class T1, class T2, class T3>
- DCOPReply callExt( const QCString& fun,
+ DCOPReply callExt( const TQCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
const T3& t3) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3;
return callInternal( fun, args, data, useEventLoop, timeout );
}
@@ -629,7 +629,7 @@ public:
/**
* Calls the function @p fun on the object referenced by this reference.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -648,19 +648,19 @@ public:
* @since 3.1
*/
template <class T1,class T2,class T3,class T4>
- DCOPReply call( const QCString& fun,
+ DCOPReply call( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4;
return callInternal( fun, args, data );
}
@@ -671,7 +671,7 @@ public:
* @param useEventLoop if UseEventLoop, the event loop will be started when
* the call blocks too long
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -687,20 +687,20 @@ public:
* @since 3.2
*/
template <class T1,class T2,class T3,class T4>
- DCOPReply callExt( const QCString& fun,
+ DCOPReply callExt( const TQCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4;
return callInternal( fun, args, data, useEventLoop, timeout );
}
@@ -708,7 +708,7 @@ public:
/**
* Calls the function @p fun on the object referenced by this reference.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -729,21 +729,21 @@ public:
* @since 3.1
*/
template <class T1,class T2,class T3,class T4,class T5>
- DCOPReply call( const QCString& fun,
+ DCOPReply call( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5 ) {
- QCString args;
+ TQCString 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 );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5;
return callInternal( fun, args, data );
}
@@ -754,7 +754,7 @@ public:
* @param useEventLoop if UseEventLoop, the event loop will be started when
* the call blocks too long
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -772,22 +772,22 @@ public:
* @since 3.2
*/
template <class T1,class T2,class T3,class T4,class T5>
- DCOPReply callExt( const QCString& fun,
+ DCOPReply callExt( const TQCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5 ) {
- QCString args;
+ TQCString 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 );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5;
return callInternal( fun, args, data, useEventLoop, timeout );
}
@@ -795,7 +795,7 @@ public:
/**
* Calls the function @p fun on the object referenced by this reference.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -818,14 +818,14 @@ public:
* @since 3.1
*/
template <class T1,class T2,class T3,class T4,class T5,class T6>
- DCOPReply call( const QCString& fun,
+ DCOPReply call( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5,
const T6& t6 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
@@ -833,8 +833,8 @@ public:
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6;
return callInternal( fun, args, data );
}
@@ -845,7 +845,7 @@ public:
* @param useEventLoop if UseEventLoop, the event loop will be started when
* the call blocks too long
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -865,7 +865,7 @@ public:
* @since 3.2
*/
template <class T1,class T2,class T3,class T4,class T5,class T6>
- DCOPReply callExt( const QCString& fun,
+ DCOPReply callExt( const TQCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
@@ -873,7 +873,7 @@ public:
const T4& t4,
const T5& t5,
const T6& t6) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
@@ -881,15 +881,15 @@ public:
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6;
return callInternal( fun, args, data, useEventLoop, timeout );
}
/**
* Calls the function @p fun on the object referenced by this reference.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -914,7 +914,7 @@ public:
* @since 3.1
*/
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7>
- DCOPReply call( const QCString& fun,
+ DCOPReply call( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
@@ -922,7 +922,7 @@ public:
const T5& t5,
const T6& t6,
const T7& t7 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
@@ -931,8 +931,8 @@ public:
dcopTypeName(t5),
dcopTypeName(t6),
dcopTypeName(t7) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7;
return callInternal( fun, args, data );
}
@@ -941,7 +941,7 @@ public:
* Like call(), with additional arguments allowing entering the event loop
* and specifying timeout.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -965,7 +965,7 @@ public:
* @since 3.2
*/
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7>
- DCOPReply callExt( const QCString& fun,
+ DCOPReply callExt( const TQCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
@@ -974,7 +974,7 @@ public:
const T5& t5,
const T6& t6,
const T7& t7) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
@@ -983,8 +983,8 @@ public:
dcopTypeName(t5),
dcopTypeName(t6),
dcopTypeName(t7) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7;
return callInternal( fun, args, data, useEventLoop, timeout );
}
@@ -992,7 +992,7 @@ public:
/**
* Calls the function @p fun on the object referenced by this reference.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -1019,7 +1019,7 @@ public:
* @since 3.1
*/
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8>
- DCOPReply call( const QCString& fun,
+ DCOPReply call( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
@@ -1028,7 +1028,7 @@ public:
const T6& t6,
const T7& t7,
const T8& t8 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
@@ -1038,8 +1038,8 @@ public:
dcopTypeName(t6),
dcopTypeName(t7),
dcopTypeName(t8) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7 << t8;
return callInternal( fun, args, data );
}
@@ -1067,14 +1067,14 @@ public:
* @param t8 the eigth argument of the function. This can be a
* supported base type or a DCOPArg object.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
* @since 3.2
*/
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8>
- DCOPReply callExt( const QCString& fun,
+ DCOPReply callExt( const TQCString& fun,
EventLoopFlag useEventLoop, int timeout,
const T1& t1,
const T2& t2,
@@ -1084,7 +1084,7 @@ public:
const T6& t6,
const T7& t7,
const T8& t8) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
@@ -1094,8 +1094,8 @@ public:
dcopTypeName(t6),
dcopTypeName(t7),
dcopTypeName(t8) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7 << t8;
return callInternal( fun, args, data, useEventLoop, timeout );
}
@@ -1104,7 +1104,7 @@ public:
* Calls the function @p fun on the object referenced by this reference.
* Unlike call() this method does not expect a return value.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -1113,8 +1113,8 @@ public:
* @see call()
* @since 3.1
*/
- bool send( const QCString& fun ) {
- QByteArray data;
+ bool send( const TQCString& fun ) {
+ TQByteArray data;
return sendInternal( fun, "()", data );
}
@@ -1122,7 +1122,7 @@ public:
* Calls the function @p fun on the object referenced by this reference.
* Unlike call() this method does not expect a return value.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -1135,12 +1135,12 @@ public:
* @since 3.1
*/
template <class T1>
- bool send( const QCString& fun, const T1& t1 ) {
- QCString args;
+ bool send( const TQCString& fun, const T1& t1 ) {
+ TQCString args;
args.sprintf( "(%s)",
dcopTypeName(t1) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1;
return sendInternal( fun, args, data );
}
@@ -1148,7 +1148,7 @@ public:
* Calls the function @p fun on the object referenced by this reference.
* Unlike call() this method does not expect a return value.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -1163,15 +1163,15 @@ public:
* @since 3.1
*/
template <class T1, class T2>
- bool send( const QCString& fun,
+ bool send( const TQCString& fun,
const T1& t1,
const T2& t2 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2;
return sendInternal( fun, args, data );
}
@@ -1179,7 +1179,7 @@ public:
* Calls the function @p fun on the object referenced by this reference.
* Unlike call() this method does not expect a return value.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -1196,17 +1196,17 @@ public:
* @since 3.1
*/
template <class T1, class T2, class T3>
- bool send( const QCString& fun,
+ bool send( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3;
return sendInternal( fun, args, data );
}
@@ -1214,7 +1214,7 @@ public:
* Calls the function @p fun on the object referenced by this reference.
* Unlike call() this method does not expect a return value.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -1233,19 +1233,19 @@ public:
* @since 3.1
*/
template <class T1,class T2,class T3,class T4>
- bool send( const QCString& fun,
+ bool send( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
dcopTypeName(t3),
dcopTypeName(t4) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4;
return sendInternal( fun, args, data );
}
@@ -1253,7 +1253,7 @@ public:
* Calls the function @p fun on the object referenced by this reference.
* Unlike call() this method does not expect a return value.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -1274,21 +1274,21 @@ public:
* @since 3.1
*/
template <class T1,class T2,class T3,class T4,class T5>
- bool send( const QCString& fun,
+ bool send( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5 ) {
- QCString args;
+ TQCString 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 );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5;
return sendInternal( fun, args, data );
}
@@ -1296,7 +1296,7 @@ public:
* Calls the function @p fun on the object referenced by this reference.
* Unlike call() this method does not expect a return value.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -1319,14 +1319,14 @@ public:
* @since 3.1
*/
template <class T1,class T2,class T3,class T4,class T5,class T6>
- bool send( const QCString& fun,
+ bool send( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
const T4& t4,
const T5& t5,
const T6& t6 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
@@ -1334,8 +1334,8 @@ public:
dcopTypeName(t4),
dcopTypeName(t5),
dcopTypeName(t6) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6;
return sendInternal( fun, args, data );
}
@@ -1343,7 +1343,7 @@ public:
* Calls the function @p fun on the object referenced by this reference.
* Unlike call() this method does not expect a return value.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -1368,7 +1368,7 @@ public:
* @since 3.1
*/
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7>
- bool send( const QCString& fun,
+ bool send( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
@@ -1376,7 +1376,7 @@ public:
const T5& t5,
const T6& t6,
const T7& t7 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
@@ -1385,8 +1385,8 @@ public:
dcopTypeName(t5),
dcopTypeName(t6),
dcopTypeName(t7) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7;
return sendInternal( fun, args, data );
}
@@ -1394,7 +1394,7 @@ public:
* Calls the function @p fun on the object referenced by this reference.
* Unlike call() this method does not expect a return value.
* @param fun the name of the DCOP function. This can be either the
- * full function signature (e.g. "setName(QString)") or
+ * full function signature (e.g. "setName(TQString)") or
* only the function's name (e.g. "setName"). In the
* latter case the exact signature will be guessed from
* the arguments
@@ -1421,7 +1421,7 @@ public:
* @since 3.1
*/
template <class T1,class T2,class T3,class T4,class T5,class T6,class T7,class T8>
- bool send( const QCString& fun,
+ bool send( const TQCString& fun,
const T1& t1,
const T2& t2,
const T3& t3,
@@ -1430,7 +1430,7 @@ public:
const T6& t6,
const T7& t7,
const T8& t8 ) {
- QCString args;
+ TQCString args;
args.sprintf( "(%s,%s,%s,%s,%s,%s,%s,%s)",
dcopTypeName(t1),
dcopTypeName(t2),
@@ -1440,8 +1440,8 @@ public:
dcopTypeName(t6),
dcopTypeName(t7),
dcopTypeName(t8) );
- QByteArray data;
- QDataStream ds( data, IO_WriteOnly );
+ TQByteArray data;
+ TQDataStream ds( data, IO_WriteOnly );
ds << t1 << t2 << t3 << t4 << t5 << t6 << t7 << t8;
return sendInternal( fun, args, data );
}
@@ -1449,14 +1449,14 @@ public:
private:
- DCOPReply callInternal( const QCString& fun, const QCString& args, const QByteArray& data,
+ DCOPReply callInternal( const TQCString& fun, const TQCString& args, const TQByteArray& 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 );
+ DCOPReply callInternal( const TQCString& fun, const TQCString& args, const TQByteArray& data );
+ bool sendInternal( const TQCString& fun, const TQCString& args, const TQByteArray& data );
- QCString m_app;
- QCString m_obj;
- QCString m_type;
+ TQCString m_app;
+ TQCString m_obj;
+ TQCString m_type;
class DCOPRefPrivate;
DCOPRefPrivate *d;
@@ -1465,10 +1465,10 @@ private:
/**
* Writes the reference (NOT the object itself) to the stream.
*/
-DCOP_EXPORT QDataStream& operator<<( QDataStream&, const DCOPRef& ref );
+DCOP_EXPORT TQDataStream& operator<<( TQDataStream&, const DCOPRef& ref );
/**
* Reads a reference from the stream.
*/
-DCOP_EXPORT QDataStream& operator>>( QDataStream&, DCOPRef& ref );
+DCOP_EXPORT TQDataStream& operator>>( TQDataStream&, DCOPRef& ref );
#endif