/****************************************************************************
** KJSEmbed::KJSEmbedPart meta object code from reading C++ file 'kjsembedpart.h'
**
** Created: Sat Apr 17 03:47:02 2004
**      by: The Qt MOC ($Id: qt/moc_yacc.cpp   3.2.1   edited Aug 20 15:04 $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "kjsembedpart.h"
#include <qmetaobject.h>
#include <qapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.2.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#include <qvariant.h>
const char *KJSEmbed::KJSEmbedPart::className() const
{
    return "KJSEmbed::KJSEmbedPart";
}

QMetaObject *KJSEmbed::KJSEmbedPart::metaObj = 0;
static QMetaObjectCleanUp cleanUp_KJSEmbed__KJSEmbedPart( "KJSEmbed::KJSEmbedPart", &KJSEmbed::KJSEmbedPart::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString KJSEmbed::KJSEmbedPart::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "KJSEmbed::KJSEmbedPart", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString KJSEmbed::KJSEmbedPart::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "KJSEmbed::KJSEmbedPart", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* KJSEmbed::KJSEmbedPart::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = KParts::ReadOnlyPart::staticMetaObject();
    static const QUParameter param_slot_0[] = {
	{ 0, &static_QUType_ptr, "KJSEmbed::JSConsoleWidget", QUParameter::Out }
    };
    static const QUMethod slot_0 = {"view", 1, param_slot_0 };
    static const QUParameter param_slot_1[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "url", &static_QUType_ptr, "KURL", QUParameter::In }
    };
    static const QUMethod slot_1 = {"openURL", 2, param_slot_1 };
    static const QUParameter param_slot_2[] = {
	{ 0, &static_QUType_ptr, "KJSEmbed::XMLActionClient", QUParameter::Out }
    };
    static const QUMethod slot_2 = {"actionClient", 1, param_slot_2 };
    static const QUParameter param_slot_3[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "file", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_3 = {"loadActionSet", 2, param_slot_3 };
    static const QUParameter param_slot_4[] = {
	{ 0, &static_QUType_ptr, "KJS::Interpreter", QUParameter::Out }
    };
    static const QUMethod slot_4 = {"interpreter", 1, param_slot_4 };
    static const QUParameter param_slot_5[] = {
	{ 0, &static_QUType_ptr, "KJS::ExecState", QUParameter::Out }
    };
    static const QUMethod slot_5 = {"globalExec", 1, param_slot_5 };
    static const QUParameter param_slot_6[] = {
	{ 0, &static_QUType_ptr, "JSFactory", QUParameter::Out }
    };
    static const QUMethod slot_6 = {"factory", 1, param_slot_6 };
    static const QUParameter param_slot_7[] = {
	{ "script", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_7 = {"evaluate", 1, param_slot_7 };
    static const QUParameter param_slot_8[] = {
	{ "script", &static_QUType_QString, 0, QUParameter::In },
	{ "self", &static_QUType_ptr, "KJS::Value", QUParameter::In }
    };
    static const QUMethod slot_8 = {"evaluate", 2, param_slot_8 };
    static const QUParameter param_slot_9[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "script", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_9 = {"execute", 2, param_slot_9 };
    static const QUParameter param_slot_10[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "script", &static_QUType_QString, 0, QUParameter::In },
	{ "self", &static_QUType_ptr, "KJS::Value", QUParameter::In }
    };
    static const QUMethod slot_10 = {"execute", 3, param_slot_10 };
    static const QUParameter param_slot_11[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "result", &static_QUType_ptr, "KJS::Completion", QUParameter::InOut },
	{ "script", &static_QUType_QString, 0, QUParameter::In },
	{ "self", &static_QUType_ptr, "KJS::Value", QUParameter::In }
    };
    static const QUMethod slot_11 = {"execute", 4, param_slot_11 };
    static const QUParameter param_slot_12[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "filename", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_12 = {"runFile", 2, param_slot_12 };
    static const QUParameter param_slot_13[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ "filename", &static_QUType_QString, 0, QUParameter::In },
	{ "self", &static_QUType_ptr, "KJS::Value", QUParameter::In }
    };
    static const QUMethod slot_13 = {"runFile", 3, param_slot_13 };
    static const QUParameter param_slot_14[] = {
	{ 0, &static_QUType_QString, 0, QUParameter::Out },
	{ "file", &static_QUType_QString, 0, QUParameter::In }
    };
    static const QUMethod slot_14 = {"loadFile", 2, param_slot_14 };
    static const QMetaData slot_tbl[] = {
	{ "view()", &slot_0, QMetaData::Public },
	{ "openURL(const KURL&)", &slot_1, QMetaData::Public },
	{ "actionClient()", &slot_2, QMetaData::Public },
	{ "loadActionSet(const QString&)", &slot_3, QMetaData::Public },
	{ "interpreter()", &slot_4, QMetaData::Public },
	{ "globalExec()", &slot_5, QMetaData::Public },
	{ "factory()", &slot_6, QMetaData::Public },
	{ "evaluate(const QString&)", &slot_7, QMetaData::Public },
	{ "evaluate(const QString&,const KJS::Value&)", &slot_8, QMetaData::Public },
	{ "execute(const QString&)", &slot_9, QMetaData::Public },
	{ "execute(const QString&,const KJS::Value&)", &slot_10, QMetaData::Public },
	{ "execute(KJS::Completion&,const QString&,const KJS::Value&)", &slot_11, QMetaData::Public },
	{ "runFile(const QString&)", &slot_12, QMetaData::Public },
	{ "runFile(const QString&,const KJS::Value&)", &slot_13, QMetaData::Public },
	{ "loadFile(const QString&)", &slot_14, QMetaData::Public }
    };
#ifndef QT_NO_PROPERTIES
    static const QMetaProperty props_tbl[4] = {
 	{ "QStringList","constructorNames", 0x4000001, &KJSEmbed::KJSEmbedPart::metaObj, 0, -1 },
	{ "QCString","versionString", 0x14000001, &KJSEmbed::KJSEmbedPart::metaObj, 0, -1 },
	{ "int","versionMajor", 0x10000001, &KJSEmbed::KJSEmbedPart::metaObj, 0, -1 },
	{ "int","versionMinor", 0x10000001, &KJSEmbed::KJSEmbedPart::metaObj, 0, -1 }
    };
#endif // QT_NO_PROPERTIES
    metaObj = QMetaObject::new_metaobject(
	"KJSEmbed::KJSEmbedPart", parentObject,
	slot_tbl, 15,
	0, 0,
#ifndef QT_NO_PROPERTIES
	props_tbl, 4,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_KJSEmbed__KJSEmbedPart.setMetaObject( metaObj );
    return metaObj;
}

void* KJSEmbed::KJSEmbedPart::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "KJSEmbed::KJSEmbedPart" ) )
	return this;
    return ReadOnlyPart::qt_cast( clname );
}

bool KJSEmbed::KJSEmbedPart::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: static_QUType_ptr.set(_o,view()); break;
    case 1: static_QUType_bool.set(_o,openURL((const KURL&)*((const KURL*)static_QUType_ptr.get(_o+1)))); break;
    case 2: static_QUType_ptr.set(_o,actionClient()); break;
    case 3: static_QUType_bool.set(_o,loadActionSet((const QString&)static_QUType_QString.get(_o+1))); break;
    case 4: static_QUType_ptr.set(_o,interpreter()); break;
    case 5: static_QUType_ptr.set(_o,globalExec()); break;
    case 6: static_QUType_ptr.set(_o,factory()); break;
    case 7: evaluate((const QString&)static_QUType_QString.get(_o+1)); break;
    case 8: evaluate((const QString&)static_QUType_QString.get(_o+1),(const KJS::Value&)*((const KJS::Value*)static_QUType_ptr.get(_o+2))); break;
    case 9: static_QUType_bool.set(_o,execute((const QString&)static_QUType_QString.get(_o+1))); break;
    case 10: static_QUType_bool.set(_o,execute((const QString&)static_QUType_QString.get(_o+1),(const KJS::Value&)*((const KJS::Value*)static_QUType_ptr.get(_o+2)))); break;
    case 11: static_QUType_bool.set(_o,execute((KJS::Completion&)*((KJS::Completion*)static_QUType_ptr.get(_o+1)),(const QString&)static_QUType_QString.get(_o+2),(const KJS::Value&)*((const KJS::Value*)static_QUType_ptr.get(_o+3)))); break;
    case 12: static_QUType_bool.set(_o,runFile((const QString&)static_QUType_QString.get(_o+1))); break;
    case 13: static_QUType_bool.set(_o,runFile((const QString&)static_QUType_QString.get(_o+1),(const KJS::Value&)*((const KJS::Value*)static_QUType_ptr.get(_o+2)))); break;
    case 14: static_QUType_QString.set(_o,loadFile((const QString&)static_QUType_QString.get(_o+1))); break;
    default:
	return ReadOnlyPart::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool KJSEmbed::KJSEmbedPart::qt_emit( int _id, QUObject* _o )
{
    return ReadOnlyPart::qt_emit(_id,_o);
}
#ifndef QT_NO_PROPERTIES

bool KJSEmbed::KJSEmbedPart::qt_property( int id, int f, QVariant* v)
{
    switch ( id - staticMetaObject()->propertyOffset() ) {
    case 0: switch( f ) {
	case 1: *v = QVariant( this->constructorNames() ); break;
	case 3: case 4: case 5: break;
	default: return FALSE;
    } break;
    case 1: switch( f ) {
	case 1: *v = QVariant( this->versionString() ); break;
	case 3: case 4: case 5: break;
	default: return FALSE;
    } break;
    case 2: switch( f ) {
	case 1: *v = QVariant( this->versionMajor() ); break;
	case 3: case 4: case 5: break;
	default: return FALSE;
    } break;
    case 3: switch( f ) {
	case 1: *v = QVariant( this->versionMinor() ); break;
	case 3: case 4: case 5: break;
	default: return FALSE;
    } break;
    default:
	return ReadOnlyPart::qt_property( id, f, v );
    }
    return TRUE;
}

bool KJSEmbed::KJSEmbedPart::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
