www.pudn.com > Five_QT_by_CT.rar > moc_hall.cpp
/**************************************************************************** ** Hall meta object code from reading C++ file 'hall.h' ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #undef QT_NO_COMPAT #include "hall.h" #include#include #include #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26) #error "This file was generated using the moc from 3.1.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif const char *Hall::className() const { return "Hall"; } QMetaObject *Hall::metaObj = 0; static QMetaObjectCleanUp cleanUp_Hall( "Hall", &Hall::staticMetaObject ); #ifndef QT_NO_TRANSLATION QString Hall::tr( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "Hall", s, c, QApplication::DefaultCodec ); else return QString::fromLatin1( s ); } #ifndef QT_NO_TRANSLATION_UTF8 QString Hall::trUtf8( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "Hall", s, c, QApplication::UnicodeUTF8 ); else return QString::fromUtf8( s ); } #endif // QT_NO_TRANSLATION_UTF8 #endif // QT_NO_TRANSLATION QMetaObject* Hall::staticMetaObject() { if ( metaObj ) return metaObj; QMetaObject* parentObject = QWidget::staticMetaObject(); static const QUMethod slot_0 = {"sLogin", 0, 0 }; static const QUMethod slot_1 = {"sUpDateHall", 0, 0 }; static const QUMethod slot_2 = {"sSitdownWhite", 0, 0 }; static const QUMethod slot_3 = {"sSitdownBlack", 0, 0 }; static const QUMethod slot_4 = {"sShowMain", 0, 0 }; static const QUMethod slot_5 = {"sSetServeraddr", 0, 0 }; static const QMetaData slot_tbl[] = { { "sLogin()", &slot_0, QMetaData::Public }, { "sUpDateHall()", &slot_1, QMetaData::Public }, { "sSitdownWhite()", &slot_2, QMetaData::Public }, { "sSitdownBlack()", &slot_3, QMetaData::Public }, { "sShowMain()", &slot_4, QMetaData::Public }, { "sSetServeraddr()", &slot_5, QMetaData::Public } }; static const QUParameter param_signal_0[] = { { 0, &static_QUType_ptr, "Message", QUParameter::In } }; static const QUMethod signal_0 = {"sendmsgtohallmstr", 1, param_signal_0 }; static const QMetaData signal_tbl[] = { { "sendmsgtohallmstr(Message)", &signal_0, QMetaData::Public } }; metaObj = QMetaObject::new_metaobject( "Hall", parentObject, slot_tbl, 6, signal_tbl, 1, #ifndef QT_NO_PROPERTIES 0, 0, 0, 0, #endif // QT_NO_PROPERTIES 0, 0 ); cleanUp_Hall.setMetaObject( metaObj ); return metaObj; } void* Hall::qt_cast( const char* clname ) { if ( !qstrcmp( clname, "Hall" ) ) return this; return QWidget::qt_cast( clname ); } #include #include // SIGNAL sendmsgtohallmstr void Hall::sendmsgtohallmstr( Message t0 ) { if ( signalsBlocked() ) return; QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 ); if ( !clist ) return; QUObject o[2]; static_QUType_ptr.set(o+1,&t0); activate_signal( clist, o ); } bool Hall::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: sLogin(); break; case 1: sUpDateHall(); break; case 2: sSitdownWhite(); break; case 3: sSitdownBlack(); break; case 4: sShowMain(); break; case 5: sSetServeraddr(); break; default: return QWidget::qt_invoke( _id, _o ); } return TRUE; } bool Hall::qt_emit( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->signalOffset() ) { case 0: sendmsgtohallmstr((Message)(*((Message*)static_QUType_ptr.get(_o+1)))); break; default: return QWidget::qt_emit(_id,_o); } return TRUE; } #ifndef QT_NO_PROPERTIES bool Hall::qt_property( int id, int f, QVariant* v) { return QWidget::qt_property( id, f, v); } bool Hall::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; } #endif // QT_NO_PROPERTIES