summaryrefslogtreecommitdiffstats
path: root/kjsembed/bindings/dcop_imp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/bindings/dcop_imp.cpp')
-rw-r--r--kjsembed/bindings/dcop_imp.cpp460
1 files changed, 230 insertions, 230 deletions
diff --git a/kjsembed/bindings/dcop_imp.cpp b/kjsembed/bindings/dcop_imp.cpp
index caa47313..d27ff703 100644
--- a/kjsembed/bindings/dcop_imp.cpp
+++ b/kjsembed/bindings/dcop_imp.cpp
@@ -23,33 +23,33 @@
#include <dcopref.h>
#include <dcopclient.h>
#include <kdebug.h>
-#include <qregexp.h>
+#include <tqregexp.h>
#include "dcop_imp.h"
#include "dcop_imp.moc"
#include <kdatastream.h>
#include <kurl.h>
-#include <qvariant.h>
-#include <qstring.h>
-#include <qmap.h>
-#include <qfont.h>
-#include <qpixmap.h>
-#include <qbrush.h>
-#include <qrect.h>
-#include <qsize.h>
-#include <qcolor.h>
-#include <qimage.h>
-#include <qpoint.h>
-#include <qvaluelist.h>
-#include <qiconset.h>
-#include <qpointarray.h>
-#include <qbitmap.h>
-#include <qcursor.h>
-#include <qdatetime.h>
-#include <qmemarray.h>
-#include <qkeysequence.h>
-#include <qbitarray.h>
+#include <tqvariant.h>
+#include <tqstring.h>
+#include <tqmap.h>
+#include <tqfont.h>
+#include <tqpixmap.h>
+#include <tqbrush.h>
+#include <tqrect.h>
+#include <tqsize.h>
+#include <tqcolor.h>
+#include <tqimage.h>
+#include <tqpoint.h>
+#include <tqvaluelist.h>
+#include <tqiconset.h>
+#include <tqpointarray.h>
+#include <tqbitmap.h>
+#include <tqcursor.h>
+#include <tqdatetime.h>
+#include <tqmemarray.h>
+#include <tqkeysequence.h>
+#include <tqbitarray.h>
#include <kjs/interpreter.h>
#include <kjs/identifier.h>
@@ -65,8 +65,8 @@ namespace KJSEmbed {
namespace Bindings {
KJS::Object JSDCOPRefLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const
{
- QString application = extractQString(exec, args, 0);
- QString object = extractQString(exec, args, 1);
+ TQString application = extractQString(exec, args, 0);
+ TQString object = extractQString(exec, args, 1);
JSOpaqueProxy * prx;
if( application.isEmpty() )
prx= new JSOpaqueProxy( new DCOPRef(), "DCOPRef" );
@@ -157,14 +157,14 @@ KJS::Value JSDCOPRef::call( KJS::ExecState *exec, KJS::Object &self, const KJS::
kdWarning() << "Not enough args..." << endl;
return KJS::Boolean(false);
}
- QByteArray data, replyData;
- QDataStream ds( replyData, IO_ReadOnly);
- QCString type;
+ TQByteArray data, replyData;
+ TQDataStream ds( replyData, IO_ReadOnly);
+ TQCString type;
- QString app = ref->app();
- QString interface = ref->obj();
- QString function = extractQString(exec, args, 0);
- QStringList argTypes = JSDCOPClient::getTypes( function );
+ TQString app = ref->app();
+ TQString interface = ref->obj();
+ TQString function = extractQString(exec, args, 0);
+ TQStringList argTypes = JSDCOPClient::getTypes( function );
if( args.size() > 1)
for( int idx = 1; idx < args.size(); ++idx)
@@ -182,12 +182,12 @@ KJS::Value JSDCOPRef::call( KJS::ExecState *exec, KJS::Object &self, const KJS::
if ( args.size() < 1 )
return KJS::Boolean(false);
- QByteArray data;
- QString app = ref->app();
- QString interface = ref->obj();
- QString function = extractQString(exec, args, 0);
+ TQByteArray data;
+ TQString app = ref->app();
+ TQString interface = ref->obj();
+ TQString function = extractQString(exec, args, 0);
- QStringList argTypes = JSDCOPClient::getTypes( function );
+ TQStringList argTypes = JSDCOPClient::getTypes( function );
if( args.size() > 1)
for( int idx = 1; idx < args.size(); ++idx)
@@ -215,9 +215,9 @@ KJS::Value JSDCOPRef::call( KJS::ExecState *exec, KJS::Object &self, const KJS::
}
case MethodsetRef:
{
- QString arg0 = extractQString(exec, args, 0);
- QString arg1 = extractQString(exec, args, 1);
- QString arg2 = extractQString(exec, args, 0);
+ TQString arg0 = extractQString(exec, args, 0);
+ TQString arg1 = extractQString(exec, args, 1);
+ TQString arg2 = extractQString(exec, args, 0);
ref->setRef(arg0.latin1(), arg1.latin1(), arg2.latin1() );
break;
}
@@ -304,52 +304,52 @@ KJS::Value JSDCOPClient::call( KJS::ExecState *exec, KJS::Object &self, const KJ
break;
}
case MethodremoteObjects: {
- QString arg0 = extractQString(exec, args, 0);
+ TQString arg0 = extractQString(exec, args, 0);
retValue = convertToValue( exec, remoteObjects(arg0));
break;
}
case MethodremoteInterfaces: {
- QString arg0 = extractQString(exec, args, 0);
- QString arg1 = extractQString(exec, args, 1);
+ TQString arg0 = extractQString(exec, args, 0);
+ TQString arg1 = extractQString(exec, args, 1);
this->remoteInterfaces(arg0, arg1);
break;
}
case MethodremoteFunctions: {
- QString arg0 = extractQString(exec, args, 0);
- QString arg1 = extractQString(exec, args, 1);
+ TQString arg0 = extractQString(exec, args, 0);
+ TQString arg1 = extractQString(exec, args, 1);
remoteFunctions(arg0, arg1);
break;
}
case MethodconnectDCOPSignal: {
- QString arg0 = extractQString(exec, args, 0);
- QString arg1 = extractQString(exec, args, 1);
- QString arg2 = extractQString(exec, args, 2);
- QString arg3 = extractQString(exec, args, 3);
- QString arg4 = extractQString(exec, args, 4);
+ TQString arg0 = extractQString(exec, args, 0);
+ TQString arg1 = extractQString(exec, args, 1);
+ TQString arg2 = extractQString(exec, args, 2);
+ TQString arg3 = extractQString(exec, args, 3);
+ TQString arg4 = extractQString(exec, args, 4);
bool arg5 = (args.size() > 5) ? args[5].toBoolean(exec) : false;
connectDCOPSignal( arg0, arg1, arg2, arg3, arg4, arg5);
break;
}
case MethoddisconnectDCOPSignal: {
- QString arg0 = extractQString(exec, args, 0);
- QString arg1 = extractQString(exec, args, 1);
- QString arg2 = extractQString(exec, args, 2);
- QString arg3 = extractQString(exec, args, 3);
- QString arg4 = extractQString(exec, args, 4);
+ TQString arg0 = extractQString(exec, args, 0);
+ TQString arg1 = extractQString(exec, args, 1);
+ TQString arg2 = extractQString(exec, args, 2);
+ TQString arg3 = extractQString(exec, args, 3);
+ TQString arg4 = extractQString(exec, args, 4);
disconnectDCOPSignal(arg0, arg1, arg2, arg3, arg4);
break;
}
case MethodDCOPStart: {
- QString arg0 = extractQString(exec, args, 0);
+ TQString arg0 = extractQString(exec, args, 0);
- retValue = KJS::String( dcopStart( arg0, QStringList() ) );
+ retValue = KJS::String( dcopStart( arg0, TQStringList() ) );
break;
}
case MethodappId:
retValue = KJS::String( kapp->dcopClient()->appId().data() );
break;
case MethodisApplicationRegistered: {
- QString arg0 = extractQString(exec, args, 0);
+ TQString arg0 = extractQString(exec, args, 0);
retValue = KJS::Boolean( kapp->dcopClient()->isApplicationRegistered( arg0.latin1() ) );
break;
}
@@ -387,20 +387,20 @@ KJS::Value JSDCOPClient::dcopCall( KJS::ExecState * exec, KJS::Object &, const K
if ( args.size() < 3 )
return KJS::Boolean(false);
- QStringList types;
- QByteArray data, replyData;
- QDataStream ds( replyData, IO_ReadOnly);
- QCString type;
+ TQStringList types;
+ TQByteArray data, replyData;
+ TQDataStream ds( replyData, IO_ReadOnly);
+ TQCString type;
- QString app = extractQString(exec, args, 0);
- QString interface = extractQString(exec, args, 1);
- QString function = extractQString(exec, args, 2);
- QStringList argTypes = getTypes( function );
+ TQString app = extractQString(exec, args, 0);
+ TQString interface = extractQString(exec, args, 1);
+ TQString function = extractQString(exec, args, 2);
+ TQStringList argTypes = getTypes( function );
if( args.size() > 3)
for( int idx = 3; idx < args.size(); ++idx)
{
- QVariant var = convertToVariant(exec,args[idx] );
+ TQVariant var = convertToVariant(exec,args[idx] );
marshall(var, argTypes[idx -3 ], data);
}
if( !kapp->dcopClient()->call(app.local8Bit(), interface.local8Bit(), function.local8Bit(), data, type, replyData))
@@ -414,23 +414,23 @@ KJS::Value JSDCOPClient::dcopSend( KJS::ExecState * exec, KJS::Object &, const K
if ( args.size() < 3 )
return KJS::Boolean(false);
- QByteArray data;
- QString app = extractQString(exec, args, 0);
- QString interface = extractQString(exec, args, 1);
- QString function = extractQString(exec, args, 2);
- QStringList argTypes = getTypes( function );
+ TQByteArray data;
+ TQString app = extractQString(exec, args, 0);
+ TQString interface = extractQString(exec, args, 1);
+ TQString function = extractQString(exec, args, 2);
+ TQStringList argTypes = getTypes( function );
if( args.size() > 3)
for( int idx = 3; idx < args.size(); ++idx)
{
- QVariant var = convertToVariant(exec,args[idx] );
+ TQVariant var = convertToVariant(exec,args[idx] );
marshall(var, argTypes[idx - 3], data);
}
return KJS::Boolean( kapp->dcopClient()->send(app.local8Bit(), interface.local8Bit(),
function.local8Bit(), data));
}
-KJS::Value JSDCOPClient::demarshall( KJS::ExecState * exec, const QCString& type, QDataStream& data)
+KJS::Value JSDCOPClient::demarshall( KJS::ExecState * exec, const TQCString& type, TQDataStream& data)
{
kdDebug() << "Demarshall " << type << endl;
@@ -449,23 +449,23 @@ KJS::Value JSDCOPClient::demarshall( KJS::ExecState * exec, const QCString& type
return convertToValue(exec, demarshall(type, data));
}
-QStringList JSDCOPClient::getTypes( const QString& function )
+TQStringList JSDCOPClient::getTypes( const TQString& function )
{
- QCString myFunction = DCOPClient::normalizeFunctionSignature (function.latin1());
- QString args = myFunction.mid( myFunction.find('(') + 1 );
+ TQCString myFunction = DCOPClient::normalizeFunctionSignature (function.latin1());
+ TQString args = myFunction.mid( myFunction.find('(') + 1 );
args = args.left( args.length() - 1);
- return QStringList::split(',', args);
+ return TQStringList::split(',', args);
}
-void JSDCOPClient::marshall( const QVariant& data, const QString& typeName, QByteArray& buffer )
+void JSDCOPClient::marshall( const TQVariant& data, const TQString& typeName, TQByteArray& buffer )
{
- QDataStream stream(buffer, IO_WriteOnly | IO_Append);
+ TQDataStream stream(buffer, IO_WriteOnly | IO_Append);
- if ( typeName == "QString" )
+ if ( typeName == "TQString" )
{
stream << data.toString();
}
- else if ( typeName == "QCString")
+ else if ( typeName == "TQCString")
{
stream << data.toCString();
}
@@ -485,99 +485,99 @@ void JSDCOPClient::marshall( const QVariant& data, const QString& typeName, QByt
{
stream << data.toDouble();
}
- else if ( typeName == "QMap" )
+ else if ( typeName == "TQMap" )
{
stream << data.toMap();
}
- else if ( typeName == "QValueList")
+ else if ( typeName == "TQValueList")
{
stream << data.toList();
}
- else if ( typeName == "QFont")
+ else if ( typeName == "TQFont")
{
stream << data.toFont();
}
- else if ( typeName == "QPixmap")
+ else if ( typeName == "TQPixmap")
{
stream << data.toPixmap();
}
- else if ( typeName == "QBrush")
+ else if ( typeName == "TQBrush")
{
stream << data.toBrush();
}
- else if ( typeName == "QRect")
+ else if ( typeName == "TQRect")
{
stream << data.toRect();
}
- else if ( typeName == "QSize")
+ else if ( typeName == "TQSize")
{
stream << data.toSize();
}
- else if ( typeName == "QColor")
+ else if ( typeName == "TQColor")
{
stream << data.toColor();
}
- else if ( typeName == "QPalette")
+ else if ( typeName == "TQPalette")
{
stream << data.toPalette();
}
- else if ( typeName == "QColorGroup")
+ else if ( typeName == "TQColorGroup")
{
stream << data.toColorGroup();
}
- /*else if ( typeName == "QIconSet")
+ /*else if ( typeName == "TQIconSet")
{
stream << data.toIconSet();
}*/
- else if ( typeName == "QPoint")
+ else if ( typeName == "TQPoint")
{
stream << data.toPoint();
}
- else if ( typeName == "QImage")
+ else if ( typeName == "TQImage")
{
stream << data.toImage();
}
- else if ( typeName == "QPointArray")
+ else if ( typeName == "TQPointArray")
{
stream << data.toPointArray();
}
- else if ( typeName == "QRegion")
+ else if ( typeName == "TQRegion")
{
stream << data.toRegion();
}
- else if ( typeName == "QBitmap")
+ else if ( typeName == "TQBitmap")
{
stream << data.toBitmap();
}
- else if ( typeName == "QCursor")
+ else if ( typeName == "TQCursor")
{
stream << data.toCursor();
}
- /*else if ( typeName == "QSizePolicy")
+ /*else if ( typeName == "TQSizePolicy")
{
stream << data.toSizePolicy();
}*/
- else if ( typeName == "QDate")
+ else if ( typeName == "TQDate")
{
stream << data.toDate();
}
- else if ( typeName == "QTime")
+ else if ( typeName == "TQTime")
{
stream << data.toTime();
}
- else if ( typeName == "QDateTime")
+ else if ( typeName == "TQDateTime")
{
stream << data.toDateTime();
}
- else if ( typeName == "QByteArray")
+ else if ( typeName == "TQByteArray")
{
stream << data.toByteArray();
}
- else if ( typeName == "QBitArray")
+ else if ( typeName == "TQBitArray")
{
stream << data.toBitArray();
}
- else if ( typeName == "QKeySequence")
+ else if ( typeName == "TQKeySequence")
{
stream << data.toKeySequence();
}
@@ -591,18 +591,18 @@ void JSDCOPClient::marshall( const QVariant& data, const QString& typeName, QByt
}
-QString JSDCOPClient::dcopStart( const QString &appName, const QStringList& args )
+TQString JSDCOPClient::dcopStart( const TQString &appName, const TQStringList& args )
{
- QString error;
- QString startFunction;
+ TQString error;
+ TQString startFunction;
if (appName.endsWith(".desktop"))
- startFunction = "start_service_by_desktop_path(QString,QStringList)";
+ startFunction = "start_service_by_desktop_path(TQString,TQStringList)";
else
- startFunction = "start_service_by_desktop_name(QString,QStringList)";
+ startFunction = "start_service_by_desktop_name(TQString,TQStringList)";
- QByteArray data, replyData;
- QCString replyType;
- QDataStream arg(data, IO_WriteOnly);
+ TQByteArray data, replyData;
+ TQCString replyType;
+ TQDataStream arg(data, IO_WriteOnly);
arg << appName << args;
if ( !kapp->dcopClient()->call( "klauncher", "klauncher", startFunction.latin1(), data, replyType, replyData) )
@@ -611,7 +611,7 @@ QString JSDCOPClient::dcopStart( const QString &appName, const QStringList& args
}
else
{
- QDataStream reply(replyData, IO_ReadOnly);
+ TQDataStream reply(replyData, IO_ReadOnly);
if ( replyType != "serviceResult" )
{
@@ -620,8 +620,8 @@ QString JSDCOPClient::dcopStart( const QString &appName, const QStringList& args
else
{
int result;
- QCString dcopName;
- QString error;
+ TQCString dcopName;
+ TQString error;
reply >> result >> dcopName >> error;
if (result != 0)
{
@@ -640,57 +640,57 @@ QString JSDCOPClient::dcopStart( const QString &appName, const QStringList& args
}
-QStringList JSDCOPClient::remoteFunctions( const QString & remApp, const QString & remObj )
+TQStringList JSDCOPClient::remoteFunctions( const TQString & remApp, const TQString & remObj )
{
- QStringList returnList;
+ TQStringList returnList;
QCStringList lst = kapp->dcopClient()->remoteFunctions(remApp.local8Bit(), remObj.local8Bit());
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-QStringList JSDCOPClient::remoteInterfaces( const QString & remApp, const QString & remObj )
+TQStringList JSDCOPClient::remoteInterfaces( const TQString & remApp, const TQString & remObj )
{
- QStringList returnList;
+ TQStringList returnList;
QCStringList lst = kapp->dcopClient()->remoteInterfaces(remApp.local8Bit(), remObj.local8Bit());
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-QStringList JSDCOPClient::remoteObjects( const QString & remApp )
+TQStringList JSDCOPClient::remoteObjects( const TQString & remApp )
{
- QStringList returnList;
+ TQStringList returnList;
QCStringList lst = kapp->dcopClient()->remoteObjects(remApp.local8Bit());
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-QStringList JSDCOPClient::registeredApplications( )
+TQStringList JSDCOPClient::registeredApplications( )
{
- QStringList returnList;
+ TQStringList returnList;
QCStringList lst = kapp->dcopClient()->registeredApplications( );
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-bool JSDCOPClient::connectDCOPSignal (const QString &sender, const QString &senderObj, const QString &signal, const QString &receiverObj, const QString &slot, bool Volatile)
+bool JSDCOPClient::connectDCOPSignal (const TQString &sender, const TQString &senderObj, const TQString &signal, const TQString &receiverObj, const TQString &slot, bool Volatile)
{
return kapp->dcopClient()->connectDCOPSignal(sender.latin1(), senderObj.latin1(), signal.latin1(), receiverObj.latin1(), slot.latin1(), Volatile);
}
-bool JSDCOPClient::disconnectDCOPSignal (const QString &sender, const QString &senderObj, const QString &signal, const QString &receiverObj, const QString &slot)
+bool JSDCOPClient::disconnectDCOPSignal (const TQString &sender, const TQString &senderObj, const TQString &signal, const TQString &receiverObj, const TQString &slot)
{
return kapp->dcopClient()->disconnectDCOPSignal(sender.latin1(), senderObj.latin1(), signal.latin1(), receiverObj.latin1(), slot.latin1());
}
KJS::Object JSDCOPInterfacerLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const
{
- QObject *parent = extractQObject(exec, args, 0);
- QString name = extractQString(exec, args, 1);
- QObject *obj = new JSDCOPInterface(jspart->interpreter(),parent, name.latin1() );
+ TQObject *parent = extractQObject(exec, args, 0);
+ TQString name = extractQString(exec, args, 1);
+ TQObject *obj = new JSDCOPInterface(jspart->interpreter(),parent, name.latin1() );
JSObjectProxy *prxy = new JSObjectProxy(jspart, obj);
KJS::Object object(prxy);
addBindings(jspart,exec,object);
@@ -704,7 +704,7 @@ void JSDCOPInterfacerLoader::addBindings( KJSEmbedPart *jspart, KJS::ExecState *
prx->addBindings( exec, proxy );
}
-void JSDCOPInterface::publish( const QString & signature )
+void JSDCOPInterface::publish( const TQString & signature )
{
if( m_Members.find(signature.latin1() ) == m_Members.end())
m_Members.append(signature.latin1() );
@@ -714,7 +714,7 @@ JSDCOPInterface::~ JSDCOPInterface( )
{
}
-JSDCOPInterface::JSDCOPInterface( KJS::Interpreter *js, QObject * parent, const char * name )
+JSDCOPInterface::JSDCOPInterface( KJS::Interpreter *js, TQObject * parent, const char * name )
: BindingObject( parent, name ),DCOPObject(name), m_js(js)
{
m_Members.clear();
@@ -725,11 +725,11 @@ QCStringList JSDCOPInterface::functionsDynamic( )
return m_Members;
}
-bool JSDCOPInterface::processDynamic( const QCString & rawFunction, const QByteArray & data, QCString & replyType, QByteArray & replyData )
+bool JSDCOPInterface::processDynamic( const TQCString & rawFunction, const TQByteArray & data, TQCString & replyType, TQByteArray & replyData )
{
bool isOkay = false;
- QRegExp reg = QRegExp("([_\\d\\w]+)(\\()(.*)(\\))");
+ TQRegExp reg = TQRegExp("([_\\d\\w]+)(\\()(.*)(\\))");
reg.search(rawFunction);
kdDebug() << "Raw function: " << rawFunction << endl;
@@ -737,9 +737,9 @@ bool JSDCOPInterface::processDynamic( const QCString & rawFunction, const QByteA
kdDebug() << "Signature: " << reg.cap(1) << endl;
kdDebug() << "Args: " << reg.cap(3) << endl;
- QString signature = reg.cap(1);
+ TQString signature = reg.cap(1);
- QStringList argStrings = QStringList::split(',', reg.cap(3), false);
+ TQStringList argStrings = TQStringList::split(',', reg.cap(3), false);
kdDebug() << argStrings.count() << " args..." << endl;
KJS::ExecState *exec = m_js->globalExec();
@@ -751,7 +751,7 @@ bool JSDCOPInterface::processDynamic( const QCString & rawFunction, const QByteA
if ( fun.implementsCall() )
{
- QDataStream ds( data, IO_ReadOnly );
+ TQDataStream ds( data, IO_ReadOnly );
KJS::List args;
for( uint idx = 0; idx < argStrings.count(); ++idx)
{
@@ -779,7 +779,7 @@ bool JSDCOPInterface::processDynamic( const QCString & rawFunction, const QByteA
if( oprx )
{
replyType = "DCOPRef";
- QDataStream refStream( replyData, IO_WriteOnly );
+ TQDataStream refStream( replyData, IO_WriteOnly );
if( oprx->typeName() == "DCOPRef" )
{
DCOPRef ref(*oprx->toNative<DCOPRef>());
@@ -790,7 +790,7 @@ bool JSDCOPInterface::processDynamic( const QCString & rawFunction, const QByteA
}
else
{
- QVariant returnVariant = convertToVariant(exec, retValue);
+ TQVariant returnVariant = convertToVariant(exec, retValue);
JSDCOPClient::marshall(returnVariant,returnVariant.typeName(), replyData);
replyType = returnVariant.typeName();
isOkay = true;
@@ -800,216 +800,216 @@ bool JSDCOPInterface::processDynamic( const QCString & rawFunction, const QByteA
return isOkay;
}
-QVariant JSDCOPClient::demarshall( const QCString & type, QDataStream & reply )
+TQVariant JSDCOPClient::demarshall( const TQCString & type, TQDataStream & reply )
{
kdDebug() << "Type: '" << type << "'"<< endl;
- /*if ( type == "QMap" ) // ? dont handle?
+ /*if ( type == "TQMap" ) // ? dont handle?
{
- QMap<QVariant, QVariant> result;
+ TQMap<TQVariant, TQVariant> result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QValueList") // ? dont handle?
+ else if ( type == "TQValueList") // ? dont handle?
{
- QValueList<QVariant> result;
+ TQValueList<TQVariant> result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}else if ( type == "QVariantList")
{
QVariantList result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
else */
- if ( type == "QString")
+ if ( type == "TQString")
{
- QString result;
+ TQString result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
else if ( type == "int")
{
int result;
reply >> result;
kdDebug() << "Result: " << result << endl;
- return QVariant(result);
+ return TQVariant(result);
}
else if ( type == "uint")
{
uint result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
else if ( type == "bool")
{
bool result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
else if ( type == "double")
{
double result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QCString")
+ else if ( type == "TQCString")
{
- QCString result;
+ TQCString result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QVariant")
+ else if ( type == "TQVariant")
{
- QVariant result;
+ TQVariant result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QFont")
+ else if ( type == "TQFont")
{
- QFont result;
+ TQFont result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QPixmap")
+ else if ( type == "TQPixmap")
{
- QPixmap result;
+ TQPixmap result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QBrush")
+ else if ( type == "TQBrush")
{
- QBrush result;
+ TQBrush result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QRect")
+ else if ( type == "TQRect")
{
- QRect result;
+ TQRect result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QSize")
+ else if ( type == "TQSize")
{
- QSize result;
+ TQSize result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QColor")
+ else if ( type == "TQColor")
{
- QColor result;
+ TQColor result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QPalette")
+ else if ( type == "TQPalette")
{
- QPalette result;
+ TQPalette result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QColorGroup")
+ else if ( type == "TQColorGroup")
{
- QColorGroup result;
+ TQColorGroup result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- /*else if ( type == "QIconSet")
+ /*else if ( type == "TQIconSet")
{
- QIconSet result;
+ TQIconSet result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}*/
- else if ( type == "QPoint")
+ else if ( type == "TQPoint")
{
- QPoint result;
+ TQPoint result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QImage")
+ else if ( type == "TQImage")
{
- QImage result;
+ TQImage result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QPointArray")
+ else if ( type == "TQPointArray")
{
- QPointArray result;
+ TQPointArray result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QRegion")
+ else if ( type == "TQRegion")
{
- QRegion result;
+ TQRegion result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QBitmap")
+ else if ( type == "TQBitmap")
{
- QBitmap result;
+ TQBitmap result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QCursor")
+ else if ( type == "TQCursor")
{
- QCursor result;
+ TQCursor result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- /*else if ( type == "QSizePolicy")
+ /*else if ( type == "TQSizePolicy")
{
- QSizePolicy result;
+ TQSizePolicy result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}*/
- else if ( type == "QDate")
+ else if ( type == "TQDate")
{
- QDate result;
+ TQDate result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QTime")
+ else if ( type == "TQTime")
{
- QTime result;
+ TQTime result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QDateTime")
+ else if ( type == "TQDateTime")
{
- QDateTime result;
+ TQDateTime result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QByteArray")
+ else if ( type == "TQByteArray")
{
- QByteArray result;
+ TQByteArray result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QBitArray")
+ else if ( type == "TQBitArray")
{
- QBitArray result;
+ TQBitArray result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QKeySequence")
+ else if ( type == "TQKeySequence")
{
- QKeySequence result;
+ TQKeySequence result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
- else if ( type == "QStringList")
+ else if ( type == "TQStringList")
{
- QStringList result;
+ TQStringList result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
else if ( type == "QCStringList")
{
- QStringList result;
+ TQStringList result;
reply >> result;
- return QVariant(result);
+ return TQVariant(result);
}
else
- return QVariant();
+ return TQVariant();
}
} // namespace Bindings