2 #include "browserinterface.h"
4 #include <tqmetaobject.h>
7 #include <private/tqucomextra_p.h>
9 using namespace KParts;
11 BrowserInterface::BrowserInterface( TQObject *parent,
const char *name )
12 : TQObject( parent,
name )
16 BrowserInterface::~BrowserInterface()
22 int slot = metaObject()->findSlot( name );
31 switch ( argument.type() )
33 case TQVariant::Invalid:
35 case TQVariant::String:
36 static_QUType_TQString.set( o + 1, argument.toString() );
38 case TQVariant::StringList:
39 strLst = argument.toStringList();
40 static_QUType_ptr.set( o + 1, &strLst );
43 static_QUType_int.set( o + 1, argument.toInt() );
46 i = argument.toUInt();
47 static_QUType_ptr.set( o + 1, &i );
50 static_QUType_bool.set( o + 1, argument.toBool() );
55 tqt_invoke( slot, o );
58 #include "browserinterface.moc"
void callMethod(const char *name, const TQVariant &argument)
Perform a dynamic invocation of a method in the BrowserInterface implementation.
TQString name(StdAccel id)