/**************************************************************************** ** GameBoard meta object code from reading C++ file 'gameboard.h' ** ** Created: Sat Jan 5 01:48:43 2008 ** by: The Qt MOC ($Id: qt/moc_yacc.cpp 3.0.3 edited Mar 18 10:45 $) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #undef QT_NO_COMPAT #include "gameboard.h" #include #include #include #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 19) #error "This file was generated using the moc from 3.0.3. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif const char *GameBoard::className() const { return "GameBoard"; } QMetaObject *GameBoard::metaObj = 0; static QMetaObjectCleanUp cleanUp_GameBoard; #ifndef QT_NO_TRANSLATION QString GameBoard::tr( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "GameBoard", s, c, QApplication::DefaultCodec ); else return QString::fromLatin1( s ); } #ifndef QT_NO_TRANSLATION_UTF8 QString GameBoard::trUtf8( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "GameBoard", s, c, QApplication::UnicodeUTF8 ); else return QString::fromUtf8( s ); } #endif // QT_NO_TRANSLATION_UTF8 #endif // QT_NO_TRANSLATION QMetaObject* GameBoard::staticMetaObject() { if ( metaObj ) return metaObj; QMetaObject* parentObject = QWidget::staticMetaObject(); static const QUMethod slot_0 = {"showHostFound", 0, 0 }; static const QUMethod slot_1 = {"sockConnected", 0, 0 }; static const QUMethod slot_2 = {"sockRead", 0, 0 }; static const QUMethod slot_3 = {"sockClosed", 0, 0 }; static const QUParameter param_slot_4[] = { { 0, &static_QUType_QString, 0, QUParameter::In } }; static const QUMethod slot_4 = {"sendMove", 1, param_slot_4 }; static const QUMethod slot_5 = {"sendText", 0, 0 }; static const QUParameter param_slot_6[] = { { 0, &static_QUType_QString, 0, QUParameter::In }, { 0, &static_QUType_ptr, "GameBoard::FigureType", QUParameter::In } }; static const QUMethod slot_6 = {"sendFigure", 2, param_slot_6 }; static const QUMethod slot_7 = {"sockTest", 0, 0 }; static const QUParameter param_slot_8[] = { { 0, &static_QUType_int, 0, QUParameter::In } }; static const QUMethod slot_8 = {"sockError", 1, param_slot_8 }; static const QUParameter param_slot_9[] = { { 0, &static_QUType_int, 0, QUParameter::In } }; static const QUMethod slot_9 = {"gameover", 1, param_slot_9 }; static const QMetaData slot_tbl[] = { { "showHostFound()", &slot_0, QMetaData::Private }, { "sockConnected()", &slot_1, QMetaData::Private }, { "sockRead()", &slot_2, QMetaData::Private }, { "sockClosed()", &slot_3, QMetaData::Private }, { "sendMove(const QString&)", &slot_4, QMetaData::Private }, { "sendText()", &slot_5, QMetaData::Private }, { "sendFigure(const QString&,GameBoard::FigureType)", &slot_6, QMetaData::Private }, { "sockTest()", &slot_7, QMetaData::Private }, { "sockError(int)", &slot_8, QMetaData::Private }, { "gameover(int)", &slot_9, QMetaData::Private } }; static const QUParameter param_signal_0[] = { { 0, &static_QUType_QString, 0, QUParameter::In } }; static const QUMethod signal_0 = {"showStatus", 1, param_signal_0 }; static const QMetaData signal_tbl[] = { { "showStatus(const QString&)", &signal_0, QMetaData::Private } }; metaObj = QMetaObject::new_metaobject( "GameBoard", parentObject, slot_tbl, 10, signal_tbl, 1, #ifndef QT_NO_PROPERTIES 0, 0, 0, 0, #endif // QT_NO_PROPERTIES 0, 0 ); cleanUp_GameBoard.setMetaObject( metaObj ); return metaObj; } void* GameBoard::qt_cast( const char* clname ) { if ( !qstrcmp( clname, "GameBoard" ) ) return (GameBoard*)this; return QWidget::qt_cast( clname ); } // SIGNAL showStatus void GameBoard::showStatus( const QString& t0 ) { activate_signal( staticMetaObject()->signalOffset() + 0, t0 ); } bool GameBoard::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: showHostFound(); break; case 1: sockConnected(); break; case 2: sockRead(); break; case 3: sockClosed(); break; case 4: sendMove(static_QUType_QString.get(_o+1)); break; case 5: sendText(); break; case 6: sendFigure(static_QUType_QString.get(_o+1),*((GameBoard::FigureType*)static_QUType_ptr.get(_o+2))); break; case 7: sockTest(); break; case 8: sockError(static_QUType_int.get(_o+1)); break; case 9: gameover(static_QUType_int.get(_o+1)); break; default: return QWidget::qt_invoke( _id, _o ); } return TRUE; } bool GameBoard::qt_emit( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->signalOffset() ) { case 0: showStatus(static_QUType_QString.get(_o+1)); break; default: return QWidget::qt_emit(_id,_o); } return TRUE; } #ifndef QT_NO_PROPERTIES bool GameBoard::qt_property( int _id, int _f, QVariant* _v) { return QWidget::qt_property( _id, _f, _v); } #endif // QT_NO_PROPERTIES const char *Drawer::className() const { return "Drawer"; } QMetaObject *Drawer::metaObj = 0; static QMetaObjectCleanUp cleanUp_Drawer; #ifndef QT_NO_TRANSLATION QString Drawer::tr( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "Drawer", s, c, QApplication::DefaultCodec ); else return QString::fromLatin1( s ); } #ifndef QT_NO_TRANSLATION_UTF8 QString Drawer::trUtf8( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "Drawer", s, c, QApplication::UnicodeUTF8 ); else return QString::fromUtf8( s ); } #endif // QT_NO_TRANSLATION_UTF8 #endif // QT_NO_TRANSLATION QMetaObject* Drawer::staticMetaObject() { if ( metaObj ) return metaObj; QMetaObject* parentObject = QWidget::staticMetaObject(); static const QUParameter param_signal_0[] = { { 0, &static_QUType_int, 0, QUParameter::In }, { 0, &static_QUType_int, 0, QUParameter::In } }; static const QUMethod signal_0 = {"touchFigure", 2, param_signal_0 }; static const QUParameter param_signal_1[] = { { 0, &static_QUType_QString, 0, QUParameter::In } }; static const QUMethod signal_1 = {"moved", 1, param_signal_1 }; static const QUParameter param_signal_2[] = { { 0, &static_QUType_QString, 0, QUParameter::In }, { 0, &static_QUType_ptr, "GameBoard::FigureType", QUParameter::In } }; static const QUMethod signal_2 = {"newFigure", 2, param_signal_2 }; static const QUParameter param_signal_3[] = { { 0, &static_QUType_int, 0, QUParameter::In } }; static const QUMethod signal_3 = {"gameover", 1, param_signal_3 }; static const QMetaData signal_tbl[] = { { "touchFigure(int,int)", &signal_0, QMetaData::Protected }, { "moved(const QString&)", &signal_1, QMetaData::Protected }, { "newFigure(const QString&,GameBoard::FigureType)", &signal_2, QMetaData::Protected }, { "gameover(int)", &signal_3, QMetaData::Protected } }; metaObj = QMetaObject::new_metaobject( "Drawer", parentObject, 0, 0, signal_tbl, 4, #ifndef QT_NO_PROPERTIES 0, 0, 0, 0, #endif // QT_NO_PROPERTIES 0, 0 ); cleanUp_Drawer.setMetaObject( metaObj ); return metaObj; } void* Drawer::qt_cast( const char* clname ) { if ( !qstrcmp( clname, "Drawer" ) ) return (Drawer*)this; return QWidget::qt_cast( clname ); } #include #include // SIGNAL touchFigure void Drawer::touchFigure( int t0, int t1 ) { if ( signalsBlocked() ) return; QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 0 ); if ( !clist ) return; QUObject o[3]; static_QUType_int.set(o+1,t0); static_QUType_int.set(o+2,t1); activate_signal( clist, o ); } // SIGNAL moved void Drawer::moved( const QString& t0 ) { activate_signal( staticMetaObject()->signalOffset() + 1, t0 ); } // SIGNAL newFigure void Drawer::newFigure( const QString& t0, GameBoard::FigureType t1 ) { if ( signalsBlocked() ) return; QConnectionList *clist = receivers( staticMetaObject()->signalOffset() + 2 ); if ( !clist ) return; QUObject o[3]; static_QUType_QString.set(o+1,t0); static_QUType_ptr.set(o+2,&t1); activate_signal( clist, o ); } // SIGNAL gameover void Drawer::gameover( int t0 ) { activate_signal( staticMetaObject()->signalOffset() + 3, t0 ); } bool Drawer::qt_invoke( int _id, QUObject* _o ) { return QWidget::qt_invoke(_id,_o); } bool Drawer::qt_emit( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->signalOffset() ) { case 0: touchFigure(static_QUType_int.get(_o+1),static_QUType_int.get(_o+2)); break; case 1: moved(static_QUType_QString.get(_o+1)); break; case 2: newFigure(static_QUType_QString.get(_o+1),*((GameBoard::FigureType*)static_QUType_ptr.get(_o+2))); break; case 3: gameover(static_QUType_int.get(_o+1)); break; default: return QWidget::qt_emit(_id,_o); } return TRUE; } #ifndef QT_NO_PROPERTIES bool Drawer::qt_property( int _id, int _f, QVariant* _v) { return QWidget::qt_property( _id, _f, _v); } #endif // QT_NO_PROPERTIES const char *FigureDialog::className() const { return "FigureDialog"; } QMetaObject *FigureDialog::metaObj = 0; static QMetaObjectCleanUp cleanUp_FigureDialog; #ifndef QT_NO_TRANSLATION QString FigureDialog::tr( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "FigureDialog", s, c, QApplication::DefaultCodec ); else return QString::fromLatin1( s ); } #ifndef QT_NO_TRANSLATION_UTF8 QString FigureDialog::trUtf8( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "FigureDialog", s, c, QApplication::UnicodeUTF8 ); else return QString::fromUtf8( s ); } #endif // QT_NO_TRANSLATION_UTF8 #endif // QT_NO_TRANSLATION QMetaObject* FigureDialog::staticMetaObject() { if ( metaObj ) return metaObj; QMetaObject* parentObject = QDialog::staticMetaObject(); metaObj = QMetaObject::new_metaobject( "FigureDialog", parentObject, 0, 0, 0, 0, #ifndef QT_NO_PROPERTIES 0, 0, 0, 0, #endif // QT_NO_PROPERTIES 0, 0 ); cleanUp_FigureDialog.setMetaObject( metaObj ); return metaObj; } void* FigureDialog::qt_cast( const char* clname ) { if ( !qstrcmp( clname, "FigureDialog" ) ) return (FigureDialog*)this; return QDialog::qt_cast( clname ); } bool FigureDialog::qt_invoke( int _id, QUObject* _o ) { return QDialog::qt_invoke(_id,_o); } bool FigureDialog::qt_emit( int _id, QUObject* _o ) { return QDialog::qt_emit(_id,_o); } #ifndef QT_NO_PROPERTIES bool FigureDialog::qt_property( int _id, int _f, QVariant* _v) { return QDialog::qt_property( _id, _f, _v); } #endif // QT_NO_PROPERTIES