/****************************************************************************
** AQSEventLoop meta object code from reading C++ file 'AQSEventLoop_p.h'
**
** Created: vi. 31. jul. 22:07:30 2020
**      by: The Qt MOC ($Id: moc_yacc.cpp 2051 2007-02-21 10:04:20Z chehrlic $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef QT_NO_COMPAT
#include "AQSEventLoop_p.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.3.8. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

const char *AQSEventLoop::className() const
{
    return "AQSEventLoop";
}

QMetaObject *AQSEventLoop::metaObj = 0;
static QMetaObjectCleanUp cleanUp_AQSEventLoop( "AQSEventLoop", &AQSEventLoop::staticMetaObject );

#ifndef QT_NO_TRANSLATION
QString AQSEventLoop::tr( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "AQSEventLoop", s, c, QApplication::DefaultCodec );
    else
	return QString::fromLatin1( s );
}
#ifndef QT_NO_TRANSLATION_UTF8
QString AQSEventLoop::trUtf8( const char *s, const char *c )
{
    if ( qApp )
	return qApp->translate( "AQSEventLoop", s, c, QApplication::UnicodeUTF8 );
    else
	return QString::fromUtf8( s );
}
#endif // QT_NO_TRANSLATION_UTF8

#endif // QT_NO_TRANSLATION

QMetaObject* AQSEventLoop::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = AQSObject::staticMetaObject();
    static const QUParameter param_slot_0[] = {
	{ 0, &static_QUType_varptr, "\x11", QUParameter::In },
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_0 = {"processEvents", 2, param_slot_0 };
    static const QUParameter param_slot_1[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out },
	{ 0, &static_QUType_varptr, "\x11", QUParameter::In }
    };
    static const QUMethod slot_1 = {"processEvents", 2, param_slot_1 };
    static const QUParameter param_slot_2[] = {
	{ 0, &static_QUType_bool, 0, QUParameter::Out }
    };
    static const QUMethod slot_2 = {"hasPendingEvents", 1, param_slot_2 };
    static const QUParameter param_slot_3[] = {
	{ 0, &static_QUType_ptr, "QSocketNotifier", QUParameter::In }
    };
    static const QUMethod slot_3 = {"registerSocketNotifier", 1, param_slot_3 };
    static const QUParameter param_slot_4[] = {
	{ 0, &static_QUType_ptr, "QSocketNotifier", QUParameter::In }
    };
    static const QUMethod slot_4 = {"unregisterSocketNotifier", 1, param_slot_4 };
    static const QUParameter param_slot_5[] = {
	{ 0, &static_QUType_ptr, "QSocketNotifier", QUParameter::In }
    };
    static const QUMethod slot_5 = {"setSocketNotifierPending", 1, param_slot_5 };
    static const QUParameter param_slot_6[] = {
	{ 0, &static_QUType_int, 0, QUParameter::Out }
    };
    static const QUMethod slot_6 = {"activateSocketNotifiers", 1, param_slot_6 };
    static const QUParameter param_slot_7[] = {
	{ 0, &static_QUType_int, 0, QUParameter::Out }
    };
    static const QUMethod slot_7 = {"activateTimers", 1, param_slot_7 };
    static const QUParameter param_slot_8[] = {
	{ 0, &static_QUType_int, 0, QUParameter::Out }
    };
    static const QUMethod slot_8 = {"timeToWait", 1, param_slot_8 };
    static const QUParameter param_slot_9[] = {
	{ 0, &static_QUType_int, 0, QUParameter::Out }
    };
    static const QUMethod slot_9 = {"exec", 1, param_slot_9 };
    static const QUMethod slot_10 = {"exit", 0, 0 };
    static const QUParameter param_slot_11[] = {
	{ 0, &static_QUType_int, 0, QUParameter::In }
    };
    static const QUMethod slot_11 = {"exit", 1, param_slot_11 };
    static const QUParameter param_slot_12[] = {
	{ 0, &static_QUType_int, 0, QUParameter::Out }
    };
    static const QUMethod slot_12 = {"enterLoop", 1, param_slot_12 };
    static const QUMethod slot_13 = {"exitLoop", 0, 0 };
    static const QUParameter param_slot_14[] = {
	{ 0, &static_QUType_int, 0, QUParameter::Out }
    };
    static const QUMethod slot_14 = {"loopLevel", 1, param_slot_14 };
    static const QUMethod slot_15 = {"wakeUp", 0, 0 };
    static const QMetaData slot_tbl[] = {
	{ "processEvents(uint,int)", &slot_0, QMetaData::Public },
	{ "processEvents(uint)", &slot_1, QMetaData::Public },
	{ "hasPendingEvents()", &slot_2, QMetaData::Public },
	{ "registerSocketNotifier(QSocketNotifier*)", &slot_3, QMetaData::Public },
	{ "unregisterSocketNotifier(QSocketNotifier*)", &slot_4, QMetaData::Public },
	{ "setSocketNotifierPending(QSocketNotifier*)", &slot_5, QMetaData::Public },
	{ "activateSocketNotifiers()", &slot_6, QMetaData::Public },
	{ "activateTimers()", &slot_7, QMetaData::Public },
	{ "timeToWait()", &slot_8, QMetaData::Public },
	{ "exec()", &slot_9, QMetaData::Public },
	{ "exit()", &slot_10, QMetaData::Public },
	{ "exit(int)", &slot_11, QMetaData::Public },
	{ "enterLoop()", &slot_12, QMetaData::Public },
	{ "exitLoop()", &slot_13, QMetaData::Public },
	{ "loopLevel()", &slot_14, QMetaData::Public },
	{ "wakeUp()", &slot_15, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
	"AQSEventLoop", parentObject,
	slot_tbl, 16,
	0, 0,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_AQSEventLoop.setMetaObject( metaObj );
    return metaObj;
}

void* AQSEventLoop::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "AQSEventLoop" ) )
	return this;
    return AQSObject::qt_cast( clname );
}

bool AQSEventLoop::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: processEvents((uint)(*((uint*)static_QUType_ptr.get(_o+1))),(int)static_QUType_int.get(_o+2)); break;
    case 1: static_QUType_bool.set(_o,processEvents((uint)(*((uint*)static_QUType_ptr.get(_o+1))))); break;
    case 2: static_QUType_bool.set(_o,hasPendingEvents()); break;
    case 3: registerSocketNotifier((QSocketNotifier*)static_QUType_ptr.get(_o+1)); break;
    case 4: unregisterSocketNotifier((QSocketNotifier*)static_QUType_ptr.get(_o+1)); break;
    case 5: setSocketNotifierPending((QSocketNotifier*)static_QUType_ptr.get(_o+1)); break;
    case 6: static_QUType_int.set(_o,activateSocketNotifiers()); break;
    case 7: static_QUType_int.set(_o,activateTimers()); break;
    case 8: static_QUType_int.set(_o,timeToWait()); break;
    case 9: static_QUType_int.set(_o,exec()); break;
    case 10: exit(); break;
    case 11: exit((int)static_QUType_int.get(_o+1)); break;
    case 12: static_QUType_int.set(_o,enterLoop()); break;
    case 13: exitLoop(); break;
    case 14: static_QUType_int.set(_o,loopLevel()); break;
    case 15: wakeUp(); break;
    default:
	return AQSObject::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool AQSEventLoop::qt_emit( int _id, QUObject* _o )
{
    return AQSObject::qt_emit(_id,_o);
}
#ifndef QT_NO_PROPERTIES

bool AQSEventLoop::qt_property( int id, int f, QVariant* v)
{
    return AQSObject::qt_property( id, f, v);
}

bool AQSEventLoop::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
#endif // QT_NO_PROPERTIES
