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.cpp434
1 files changed, 217 insertions, 217 deletions
diff --git a/kjsembed/bindings/dcop_imp.cpp b/kjsembed/bindings/dcop_imp.cpp
index d27ff703..62ffb456 100644
--- a/kjsembed/bindings/dcop_imp.cpp
+++ b/kjsembed/bindings/dcop_imp.cpp
@@ -65,8 +65,8 @@ namespace KJSEmbed {
namespace Bindings {
KJS::Object JSDCOPRefLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const
{
- TQString application = extractQString(exec, args, 0);
- TQString object = extractQString(exec, args, 1);
+ TTQString application = extractTQString(exec, args, 0);
+ TTQString object = extractTQString(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);
}
- TQByteArray data, replyData;
- TQDataStream ds( replyData, IO_ReadOnly);
- TQCString type;
+ TTQByteArray data, replyData;
+ TTQDataStream ds( replyData, IO_ReadOnly);
+ TTQCString type;
- TQString app = ref->app();
- TQString interface = ref->obj();
- TQString function = extractQString(exec, args, 0);
- TQStringList argTypes = JSDCOPClient::getTypes( function );
+ TTQString app = ref->app();
+ TTQString interface = ref->obj();
+ TTQString function = extractTQString(exec, args, 0);
+ TTQStringList 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);
- TQByteArray data;
- TQString app = ref->app();
- TQString interface = ref->obj();
- TQString function = extractQString(exec, args, 0);
+ TTQByteArray data;
+ TTQString app = ref->app();
+ TTQString interface = ref->obj();
+ TTQString function = extractTQString(exec, args, 0);
- TQStringList argTypes = JSDCOPClient::getTypes( function );
+ TTQStringList 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:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
- TQString arg2 = extractQString(exec, args, 0);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
+ TTQString arg2 = extractTQString(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: {
- TQString arg0 = extractQString(exec, args, 0);
+ TTQString arg0 = extractTQString(exec, args, 0);
retValue = convertToValue( exec, remoteObjects(arg0));
break;
}
case MethodremoteInterfaces: {
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
this->remoteInterfaces(arg0, arg1);
break;
}
case MethodremoteFunctions: {
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
remoteFunctions(arg0, arg1);
break;
}
case MethodconnectDCOPSignal: {
- 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);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
+ TTQString arg2 = extractTQString(exec, args, 2);
+ TTQString arg3 = extractTQString(exec, args, 3);
+ TTQString arg4 = extractTQString(exec, args, 4);
bool arg5 = (args.size() > 5) ? args[5].toBoolean(exec) : false;
connectDCOPSignal( arg0, arg1, arg2, arg3, arg4, arg5);
break;
}
case MethoddisconnectDCOPSignal: {
- 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);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
+ TTQString arg2 = extractTQString(exec, args, 2);
+ TTQString arg3 = extractTQString(exec, args, 3);
+ TTQString arg4 = extractTQString(exec, args, 4);
disconnectDCOPSignal(arg0, arg1, arg2, arg3, arg4);
break;
}
case MethodDCOPStart: {
- TQString arg0 = extractQString(exec, args, 0);
+ TTQString arg0 = extractTQString(exec, args, 0);
- retValue = KJS::String( dcopStart( arg0, TQStringList() ) );
+ retValue = KJS::String( dcopStart( arg0, TTQStringList() ) );
break;
}
case MethodappId:
retValue = KJS::String( kapp->dcopClient()->appId().data() );
break;
case MethodisApplicationRegistered: {
- TQString arg0 = extractQString(exec, args, 0);
+ TTQString arg0 = extractTQString(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);
- TQStringList types;
- TQByteArray data, replyData;
- TQDataStream ds( replyData, IO_ReadOnly);
- TQCString type;
+ TTQStringList types;
+ TTQByteArray data, replyData;
+ TTQDataStream ds( replyData, IO_ReadOnly);
+ TTQCString type;
- TQString app = extractQString(exec, args, 0);
- TQString interface = extractQString(exec, args, 1);
- TQString function = extractQString(exec, args, 2);
- TQStringList argTypes = getTypes( function );
+ TTQString app = extractTQString(exec, args, 0);
+ TTQString interface = extractTQString(exec, args, 1);
+ TTQString function = extractTQString(exec, args, 2);
+ TTQStringList argTypes = getTypes( function );
if( args.size() > 3)
for( int idx = 3; idx < args.size(); ++idx)
{
- TQVariant var = convertToVariant(exec,args[idx] );
+ TTQVariant 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);
- TQByteArray data;
- TQString app = extractQString(exec, args, 0);
- TQString interface = extractQString(exec, args, 1);
- TQString function = extractQString(exec, args, 2);
- TQStringList argTypes = getTypes( function );
+ TTQByteArray data;
+ TTQString app = extractTQString(exec, args, 0);
+ TTQString interface = extractTQString(exec, args, 1);
+ TTQString function = extractTQString(exec, args, 2);
+ TTQStringList argTypes = getTypes( function );
if( args.size() > 3)
for( int idx = 3; idx < args.size(); ++idx)
{
- TQVariant var = convertToVariant(exec,args[idx] );
+ TTQVariant 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 TQCString& type, TQDataStream& data)
+KJS::Value JSDCOPClient::demarshall( KJS::ExecState * exec, const TTQCString& type, TTQDataStream& data)
{
kdDebug() << "Demarshall " << type << endl;
@@ -449,23 +449,23 @@ KJS::Value JSDCOPClient::demarshall( KJS::ExecState * exec, const TQCString& typ
return convertToValue(exec, demarshall(type, data));
}
-TQStringList JSDCOPClient::getTypes( const TQString& function )
+TTQStringList JSDCOPClient::getTypes( const TTQString& function )
{
- TQCString myFunction = DCOPClient::normalizeFunctionSignature (function.latin1());
- TQString args = myFunction.mid( myFunction.find('(') + 1 );
+ TTQCString myFunction = DCOPClient::normalizeFunctionSignature (function.latin1());
+ TTQString args = myFunction.mid( myFunction.find('(') + 1 );
args = args.left( args.length() - 1);
- return TQStringList::split(',', args);
+ return TTQStringList::split(',', args);
}
-void JSDCOPClient::marshall( const TQVariant& data, const TQString& typeName, TQByteArray& buffer )
+void JSDCOPClient::marshall( const TTQVariant& data, const TTQString& typeName, TTQByteArray& buffer )
{
- TQDataStream stream(buffer, IO_WriteOnly | IO_Append);
+ TTQDataStream stream(buffer, IO_WriteOnly | IO_Append);
- if ( typeName == "TQString" )
+ if ( typeName == "TTQString" )
{
stream << data.toString();
}
- else if ( typeName == "TQCString")
+ else if ( typeName == "TTQCString")
{
stream << data.toCString();
}
@@ -485,99 +485,99 @@ void JSDCOPClient::marshall( const TQVariant& data, const TQString& typeName, TQ
{
stream << data.toDouble();
}
- else if ( typeName == "TQMap" )
+ else if ( typeName == "TTQMap" )
{
stream << data.toMap();
}
- else if ( typeName == "TQValueList")
+ else if ( typeName == "TTQValueList")
{
stream << data.toList();
}
- else if ( typeName == "TQFont")
+ else if ( typeName == "TTQFont")
{
stream << data.toFont();
}
- else if ( typeName == "TQPixmap")
+ else if ( typeName == "TTQPixmap")
{
stream << data.toPixmap();
}
- else if ( typeName == "TQBrush")
+ else if ( typeName == "TTQBrush")
{
stream << data.toBrush();
}
- else if ( typeName == "TQRect")
+ else if ( typeName == "TTQRect")
{
stream << data.toRect();
}
- else if ( typeName == "TQSize")
+ else if ( typeName == "TTQSize")
{
stream << data.toSize();
}
- else if ( typeName == "TQColor")
+ else if ( typeName == "TTQColor")
{
stream << data.toColor();
}
- else if ( typeName == "TQPalette")
+ else if ( typeName == "TTQPalette")
{
stream << data.toPalette();
}
- else if ( typeName == "TQColorGroup")
+ else if ( typeName == "TTQColorGroup")
{
stream << data.toColorGroup();
}
- /*else if ( typeName == "TQIconSet")
+ /*else if ( typeName == "TTQIconSet")
{
stream << data.toIconSet();
}*/
- else if ( typeName == "TQPoint")
+ else if ( typeName == "TTQPoint")
{
stream << data.toPoint();
}
- else if ( typeName == "TQImage")
+ else if ( typeName == "TTQImage")
{
stream << data.toImage();
}
- else if ( typeName == "TQPointArray")
+ else if ( typeName == "TTQPointArray")
{
stream << data.toPointArray();
}
- else if ( typeName == "TQRegion")
+ else if ( typeName == "TTQRegion")
{
stream << data.toRegion();
}
- else if ( typeName == "TQBitmap")
+ else if ( typeName == "TTQBitmap")
{
stream << data.toBitmap();
}
- else if ( typeName == "TQCursor")
+ else if ( typeName == "TTQCursor")
{
stream << data.toCursor();
}
- /*else if ( typeName == "TQSizePolicy")
+ /*else if ( typeName == "TTQSizePolicy")
{
stream << data.toSizePolicy();
}*/
- else if ( typeName == "TQDate")
+ else if ( typeName == "TTQDate")
{
stream << data.toDate();
}
- else if ( typeName == "TQTime")
+ else if ( typeName == "TTQTime")
{
stream << data.toTime();
}
- else if ( typeName == "TQDateTime")
+ else if ( typeName == "TTQDateTime")
{
stream << data.toDateTime();
}
- else if ( typeName == "TQByteArray")
+ else if ( typeName == "TTQByteArray")
{
stream << data.toByteArray();
}
- else if ( typeName == "TQBitArray")
+ else if ( typeName == "TTQBitArray")
{
stream << data.toBitArray();
}
- else if ( typeName == "TQKeySequence")
+ else if ( typeName == "TTQKeySequence")
{
stream << data.toKeySequence();
}
@@ -591,18 +591,18 @@ void JSDCOPClient::marshall( const TQVariant& data, const TQString& typeName, TQ
}
-TQString JSDCOPClient::dcopStart( const TQString &appName, const TQStringList& args )
+TTQString JSDCOPClient::dcopStart( const TTQString &appName, const TTQStringList& args )
{
- TQString error;
- TQString startFunction;
+ TTQString error;
+ TTQString startFunction;
if (appName.endsWith(".desktop"))
- startFunction = "start_service_by_desktop_path(TQString,TQStringList)";
+ startFunction = "start_service_by_desktop_path(TTQString,TTQStringList)";
else
- startFunction = "start_service_by_desktop_name(TQString,TQStringList)";
+ startFunction = "start_service_by_desktop_name(TTQString,TTQStringList)";
- TQByteArray data, replyData;
- TQCString replyType;
- TQDataStream arg(data, IO_WriteOnly);
+ TTQByteArray data, replyData;
+ TTQCString replyType;
+ TTQDataStream arg(data, IO_WriteOnly);
arg << appName << args;
if ( !kapp->dcopClient()->call( "klauncher", "klauncher", startFunction.latin1(), data, replyType, replyData) )
@@ -611,7 +611,7 @@ TQString JSDCOPClient::dcopStart( const TQString &appName, const TQStringList& a
}
else
{
- TQDataStream reply(replyData, IO_ReadOnly);
+ TTQDataStream reply(replyData, IO_ReadOnly);
if ( replyType != "serviceResult" )
{
@@ -620,8 +620,8 @@ TQString JSDCOPClient::dcopStart( const TQString &appName, const TQStringList& a
else
{
int result;
- TQCString dcopName;
- TQString error;
+ TTQCString dcopName;
+ TTQString error;
reply >> result >> dcopName >> error;
if (result != 0)
{
@@ -640,57 +640,57 @@ TQString JSDCOPClient::dcopStart( const TQString &appName, const TQStringList& a
}
-TQStringList JSDCOPClient::remoteFunctions( const TQString & remApp, const TQString & remObj )
+TTQStringList JSDCOPClient::remoteFunctions( const TTQString & remApp, const TTQString & remObj )
{
- TQStringList returnList;
- QCStringList lst = kapp->dcopClient()->remoteFunctions(remApp.local8Bit(), remObj.local8Bit());
+ TTQStringList returnList;
+ TQCStringList lst = kapp->dcopClient()->remoteFunctions(remApp.local8Bit(), remObj.local8Bit());
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-TQStringList JSDCOPClient::remoteInterfaces( const TQString & remApp, const TQString & remObj )
+TTQStringList JSDCOPClient::remoteInterfaces( const TTQString & remApp, const TTQString & remObj )
{
- TQStringList returnList;
- QCStringList lst = kapp->dcopClient()->remoteInterfaces(remApp.local8Bit(), remObj.local8Bit());
+ TTQStringList returnList;
+ TQCStringList lst = kapp->dcopClient()->remoteInterfaces(remApp.local8Bit(), remObj.local8Bit());
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-TQStringList JSDCOPClient::remoteObjects( const TQString & remApp )
+TTQStringList JSDCOPClient::remoteObjects( const TTQString & remApp )
{
- TQStringList returnList;
- QCStringList lst = kapp->dcopClient()->remoteObjects(remApp.local8Bit());
+ TTQStringList returnList;
+ TQCStringList lst = kapp->dcopClient()->remoteObjects(remApp.local8Bit());
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-TQStringList JSDCOPClient::registeredApplications( )
+TTQStringList JSDCOPClient::registeredApplications( )
{
- TQStringList returnList;
- QCStringList lst = kapp->dcopClient()->registeredApplications( );
+ TTQStringList returnList;
+ TQCStringList lst = kapp->dcopClient()->registeredApplications( );
for(uint idx = 0; idx < lst.count(); ++idx)
returnList += lst[idx];
return returnList;
}
-bool JSDCOPClient::connectDCOPSignal (const TQString &sender, const TQString &senderObj, const TQString &signal, const TQString &receiverObj, const TQString &slot, bool Volatile)
+bool JSDCOPClient::connectDCOPSignal (const TTQString &sender, const TTQString &senderObj, const TTQString &signal, const TTQString &receiverObj, const TTQString &slot, bool Volatile)
{
return kapp->dcopClient()->connectDCOPSignal(sender.latin1(), senderObj.latin1(), signal.latin1(), receiverObj.latin1(), slot.latin1(), Volatile);
}
-bool JSDCOPClient::disconnectDCOPSignal (const TQString &sender, const TQString &senderObj, const TQString &signal, const TQString &receiverObj, const TQString &slot)
+bool JSDCOPClient::disconnectDCOPSignal (const TTQString &sender, const TTQString &senderObj, const TTQString &signal, const TTQString &receiverObj, const TTQString &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
{
- TQObject *parent = extractQObject(exec, args, 0);
- TQString name = extractQString(exec, args, 1);
- TQObject *obj = new JSDCOPInterface(jspart->interpreter(),parent, name.latin1() );
+ TTQObject *parent = extractTQObject(exec, args, 0);
+ TTQString name = extractTQString(exec, args, 1);
+ TTQObject *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 TQString & signature )
+void JSDCOPInterface::publish( const TTQString & signature )
{
if( m_Members.find(signature.latin1() ) == m_Members.end())
m_Members.append(signature.latin1() );
@@ -714,22 +714,22 @@ JSDCOPInterface::~ JSDCOPInterface( )
{
}
-JSDCOPInterface::JSDCOPInterface( KJS::Interpreter *js, TQObject * parent, const char * name )
+JSDCOPInterface::JSDCOPInterface( KJS::Interpreter *js, TTQObject * parent, const char * name )
: BindingObject( parent, name ),DCOPObject(name), m_js(js)
{
m_Members.clear();
}
-QCStringList JSDCOPInterface::functionsDynamic( )
+TTQCStringList JSDCOPInterface::functionsDynamic( )
{
return m_Members;
}
-bool JSDCOPInterface::processDynamic( const TQCString & rawFunction, const TQByteArray & data, TQCString & replyType, TQByteArray & replyData )
+bool JSDCOPInterface::processDynamic( const TTQCString & rawFunction, const TTQByteArray & data, TTQCString & replyType, TTQByteArray & replyData )
{
bool isOkay = false;
- TQRegExp reg = TQRegExp("([_\\d\\w]+)(\\()(.*)(\\))");
+ TTQRegExp reg = TTQRegExp("([_\\d\\w]+)(\\()(.*)(\\))");
reg.search(rawFunction);
kdDebug() << "Raw function: " << rawFunction << endl;
@@ -737,9 +737,9 @@ bool JSDCOPInterface::processDynamic( const TQCString & rawFunction, const TQByt
kdDebug() << "Signature: " << reg.cap(1) << endl;
kdDebug() << "Args: " << reg.cap(3) << endl;
- TQString signature = reg.cap(1);
+ TTQString signature = reg.cap(1);
- TQStringList argStrings = TQStringList::split(',', reg.cap(3), false);
+ TTQStringList argStrings = TTQStringList::split(',', reg.cap(3), false);
kdDebug() << argStrings.count() << " args..." << endl;
KJS::ExecState *exec = m_js->globalExec();
@@ -751,7 +751,7 @@ bool JSDCOPInterface::processDynamic( const TQCString & rawFunction, const TQByt
if ( fun.implementsCall() )
{
- TQDataStream ds( data, IO_ReadOnly );
+ TTQDataStream ds( data, IO_ReadOnly );
KJS::List args;
for( uint idx = 0; idx < argStrings.count(); ++idx)
{
@@ -779,7 +779,7 @@ bool JSDCOPInterface::processDynamic( const TQCString & rawFunction, const TQByt
if( oprx )
{
replyType = "DCOPRef";
- TQDataStream refStream( replyData, IO_WriteOnly );
+ TTQDataStream refStream( replyData, IO_WriteOnly );
if( oprx->typeName() == "DCOPRef" )
{
DCOPRef ref(*oprx->toNative<DCOPRef>());
@@ -790,7 +790,7 @@ bool JSDCOPInterface::processDynamic( const TQCString & rawFunction, const TQByt
}
else
{
- TQVariant returnVariant = convertToVariant(exec, retValue);
+ TTQVariant returnVariant = convertToVariant(exec, retValue);
JSDCOPClient::marshall(returnVariant,returnVariant.typeName(), replyData);
replyType = returnVariant.typeName();
isOkay = true;
@@ -800,216 +800,216 @@ bool JSDCOPInterface::processDynamic( const TQCString & rawFunction, const TQByt
return isOkay;
}
-TQVariant JSDCOPClient::demarshall( const TQCString & type, TQDataStream & reply )
+TTQVariant JSDCOPClient::demarshall( const TTQCString & type, TTQDataStream & reply )
{
kdDebug() << "Type: '" << type << "'"<< endl;
- /*if ( type == "TQMap" ) // ? dont handle?
+ /*if ( type == "TTQMap" ) // ? dont handle?
{
- TQMap<TQVariant, TQVariant> result;
+ TTQMap<TTQVariant, TTQVariant> result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQValueList") // ? dont handle?
+ else if ( type == "TTQValueList") // ? dont handle?
{
- TQValueList<TQVariant> result;
+ TTQValueList<TTQVariant> result;
reply >> result;
- return TQVariant(result);
- }else if ( type == "QVariantList")
+ return TTQVariant(result);
+ }else if ( type == "TQVariantList")
{
- QVariantList result;
+ TQVariantList result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
else */
- if ( type == "TQString")
+ if ( type == "TTQString")
{
- TQString result;
+ TTQString result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
else if ( type == "int")
{
int result;
reply >> result;
kdDebug() << "Result: " << result << endl;
- return TQVariant(result);
+ return TTQVariant(result);
}
else if ( type == "uint")
{
uint result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
else if ( type == "bool")
{
bool result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
else if ( type == "double")
{
double result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQCString")
+ else if ( type == "TTQCString")
{
- TQCString result;
+ TTQCString result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQVariant")
+ else if ( type == "TTQVariant")
{
- TQVariant result;
+ TTQVariant result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQFont")
+ else if ( type == "TTQFont")
{
- TQFont result;
+ TTQFont result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQPixmap")
+ else if ( type == "TTQPixmap")
{
- TQPixmap result;
+ TTQPixmap result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQBrush")
+ else if ( type == "TTQBrush")
{
- TQBrush result;
+ TTQBrush result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQRect")
+ else if ( type == "TTQRect")
{
- TQRect result;
+ TTQRect result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQSize")
+ else if ( type == "TTQSize")
{
- TQSize result;
+ TTQSize result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQColor")
+ else if ( type == "TTQColor")
{
- TQColor result;
+ TTQColor result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQPalette")
+ else if ( type == "TTQPalette")
{
- TQPalette result;
+ TTQPalette result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQColorGroup")
+ else if ( type == "TTQColorGroup")
{
- TQColorGroup result;
+ TTQColorGroup result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- /*else if ( type == "TQIconSet")
+ /*else if ( type == "TTQIconSet")
{
- TQIconSet result;
+ TTQIconSet result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}*/
- else if ( type == "TQPoint")
+ else if ( type == "TTQPoint")
{
- TQPoint result;
+ TTQPoint result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQImage")
+ else if ( type == "TTQImage")
{
- TQImage result;
+ TTQImage result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQPointArray")
+ else if ( type == "TTQPointArray")
{
- TQPointArray result;
+ TTQPointArray result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQRegion")
+ else if ( type == "TTQRegion")
{
- TQRegion result;
+ TTQRegion result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQBitmap")
+ else if ( type == "TTQBitmap")
{
- TQBitmap result;
+ TTQBitmap result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQCursor")
+ else if ( type == "TTQCursor")
{
- TQCursor result;
+ TTQCursor result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- /*else if ( type == "TQSizePolicy")
+ /*else if ( type == "TTQSizePolicy")
{
- TQSizePolicy result;
+ TTQSizePolicy result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}*/
- else if ( type == "TQDate")
+ else if ( type == "TTQDate")
{
- TQDate result;
+ TTQDate result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQTime")
+ else if ( type == "TTQTime")
{
- TQTime result;
+ TTQTime result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQDateTime")
+ else if ( type == "TTQDateTime")
{
- TQDateTime result;
+ TTQDateTime result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQByteArray")
+ else if ( type == "TTQByteArray")
{
- TQByteArray result;
+ TTQByteArray result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQBitArray")
+ else if ( type == "TTQBitArray")
{
- TQBitArray result;
+ TTQBitArray result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQKeySequence")
+ else if ( type == "TTQKeySequence")
{
- TQKeySequence result;
+ TTQKeySequence result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "TQStringList")
+ else if ( type == "TTQStringList")
{
- TQStringList result;
+ TTQStringList result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
- else if ( type == "QCStringList")
+ else if ( type == "TQCStringList")
{
- TQStringList result;
+ TTQStringList result;
reply >> result;
- return TQVariant(result);
+ return TTQVariant(result);
}
else
- return TQVariant();
+ return TTQVariant();
}
} // namespace Bindings