/****************************************************************************
** QApplication meta object code from reading C++ file 'qapplication.h'
**
** Created: sáb 28. set 18:24:07 2002
**      by: The Qt MOC ($Id: moc_yacc.cpp,v 1.2 2002/07/16 00:28:41 thiagocorrea Exp $)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

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

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

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

QMetaObject *QApplication::metaObj = 0;
static QMetaObjectCleanUp cleanUp_QApplication;

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

#endif // QT_NO_TRANSLATION

QMetaObject* QApplication::staticMetaObject()
{
    if ( metaObj )
	return metaObj;
    QMetaObject* parentObject = QObject::staticMetaObject();
    static const QUMethod slot_0 = {"quit", 0, 0 };
    static const QMetaData slot_tbl[] = {
	{ "quit()", &slot_0, QMetaData::Public }
    };
    static const QUMethod signal_0 = {"lastWindowClosed", 0, 0 };
    static const QUMethod signal_1 = {"aboutToQuit", 0, 0 };
    static const QUMethod signal_2 = {"guiThreadAwake", 0, 0 };
    static const QMetaData signal_tbl[] = {
	{ "lastWindowClosed()", &signal_0, QMetaData::Public },
	{ "aboutToQuit()", &signal_1, QMetaData::Public },
	{ "guiThreadAwake()", &signal_2, QMetaData::Public }
    };
    metaObj = QMetaObject::new_metaobject(
	"QApplication", parentObject,
	slot_tbl, 1,
	signal_tbl, 3,
#ifndef QT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // QT_NO_PROPERTIES
	0, 0 );
    cleanUp_QApplication.setMetaObject( metaObj );
    return metaObj;
}

void* QApplication::qt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "QApplication" ) ) return (QApplication*)this;
    return QObject::qt_cast( clname );
}

// SIGNAL lastWindowClosed
void QApplication::lastWindowClosed()
{
    activate_signal( staticMetaObject()->signalOffset() + 0 );
}

// SIGNAL aboutToQuit
void QApplication::aboutToQuit()
{
    activate_signal( staticMetaObject()->signalOffset() + 1 );
}

// SIGNAL guiThreadAwake
void QApplication::guiThreadAwake()
{
    activate_signal( staticMetaObject()->signalOffset() + 2 );
}

bool QApplication::qt_invoke( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: quit(); break;
    default:
	return QObject::qt_invoke( _id, _o );
    }
    return TRUE;
}

bool QApplication::qt_emit( int _id, QUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: lastWindowClosed(); break;
    case 1: aboutToQuit(); break;
    case 2: guiThreadAwake(); break;
    default:
	return QObject::qt_emit(_id,_o);
    }
    return TRUE;
}
#ifndef QT_NO_PROPERTIES

bool QApplication::qt_property( int _id, int _f, QVariant* _v)
{
    return QObject::qt_property( _id, _f, _v);
}
#endif // QT_NO_PROPERTIES
