/****************************************************************************
** TQMultiInputContext meta object code from reading C++ file 'qmultiinputcontext.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "../../qmultiinputcontext.h"
#include <ntqmetaobject.h>
#include <ntqapplication.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.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

const char *TQMultiInputContext::className() const
{
    return "TQMultiInputContext";
}

TQMetaObject *TQMultiInputContext::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TQMultiInputContext( "TQMultiInputContext", &TQMultiInputContext::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString TQMultiInputContext::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "TQMultiInputContext", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString TQMultiInputContext::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "TQMultiInputContext", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* TQMultiInputContext::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQInputContext::staticMetaObject();
    static const TQUMethod slot_0 = {"destroyInputContext", 0, 0 };
    static const TQUParameter param_slot_1[] = {
	{ "receiver", &static_QUType_ptr, "TQObject", TQUParameter::In },
	{ "event", &static_QUType_ptr, "TQIMEvent", TQUParameter::In }
    };
    static const TQUMethod slot_1 = {"postIMEvent", 2, param_slot_1 };
    static const TQUParameter param_slot_2[] = {
	{ "menuid", &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"changeInputMethodWithMenuId", 1, param_slot_2 };
    static const TQMetaData slot_tbl[] = {
	{ "destroyInputContext()", &slot_0, TQMetaData::Public },
	{ "postIMEvent(TQObject*,TQIMEvent*)", &slot_1, TQMetaData::Public },
	{ "changeInputMethodWithMenuId(int)", &slot_2, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"TQMultiInputContext", parentObject,
	slot_tbl, 3,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TQMultiInputContext.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* TQMultiInputContext::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "TQMultiInputContext" ) )
	return this;
    return TQInputContext::tqt_cast( clname );
}

bool TQMultiInputContext::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: destroyInputContext(); break;
    case 1: postIMEvent((TQObject*)static_QUType_ptr.get(_o+1),(TQIMEvent*)static_QUType_ptr.get(_o+2)); break;
    case 2: changeInputMethodWithMenuId((int)static_QUType_int.get(_o+1)); break;
    default:
	return TQInputContext::tqt_invoke( _id, _o );
    }
    return true;
}

bool TQMultiInputContext::tqt_emit( int _id, TQUObject* _o )
{
    return TQInputContext::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool TQMultiInputContext::tqt_property( int id, int f, TQVariant* v)
{
    return TQInputContext::tqt_property( id, f, v);
}

bool TQMultiInputContext::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
