/**************************************************************************** ** QCamV4L meta object code from reading C++ file 'QCamV4L.hpp' ** ** Created: Mon May 15 10:35:02 2006 ** by: The Qt MOC ($Id: qt/moc_yacc.cpp 3.3.5 edited Sep 2 14:41 $) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #undef QT_NO_COMPAT #include "QCamV4L.hpp" #include #include #include #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26) #error "This file was generated using the moc from 3.3.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 *QCamV4L::className() const { return "QCamV4L"; } QMetaObject *QCamV4L::metaObj = 0; static QMetaObjectCleanUp cleanUp_QCamV4L( "QCamV4L", &QCamV4L::staticMetaObject ); #ifndef QT_NO_TRANSLATION QString QCamV4L::tr( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "QCamV4L", s, c, QApplication::DefaultCodec ); else return QString::fromLatin1( s ); } #ifndef QT_NO_TRANSLATION_UTF8 QString QCamV4L::trUtf8( const char *s, const char *c ) { if ( qApp ) return qApp->translate( "QCamV4L", s, c, QApplication::UnicodeUTF8 ); else return QString::fromUtf8( s ); } #endif // QT_NO_TRANSLATION_UTF8 #endif // QT_NO_TRANSLATION QMetaObject* QCamV4L::staticMetaObject() { if ( metaObj ) return metaObj; QMetaObject* parentObject = QCam::staticMetaObject(); static const QUParameter param_slot_0[] = { { "value", &static_QUType_int, 0, QUParameter::In } }; static const QUMethod slot_0 = {"setContrast", 1, param_slot_0 }; static const QUParameter param_slot_1[] = { { "value", &static_QUType_int, 0, QUParameter::In } }; static const QUMethod slot_1 = {"setBrightness", 1, param_slot_1 }; static const QUParameter param_slot_2[] = { { "value", &static_QUType_int, 0, QUParameter::In } }; static const QUMethod slot_2 = {"setColor", 1, param_slot_2 }; static const QUParameter param_slot_3[] = { { "value", &static_QUType_int, 0, QUParameter::In } }; static const QUMethod slot_3 = {"setHue", 1, param_slot_3 }; static const QUParameter param_slot_4[] = { { "value", &static_QUType_int, 0, QUParameter::In } }; static const QUMethod slot_4 = {"setWhiteness", 1, param_slot_4 }; static const QUParameter param_slot_5[] = { { "val", &static_QUType_ptr, "ImageMode", QUParameter::In } }; static const QUMethod slot_5 = {"setMode", 1, param_slot_5 }; static const QUParameter param_slot_6[] = { { "val", &static_QUType_int, 0, QUParameter::In } }; static const QUMethod slot_6 = {"setMode", 1, param_slot_6 }; static const QUParameter param_slot_7[] = { { 0, &static_QUType_bool, 0, QUParameter::Out } }; static const QUMethod slot_7 = {"updateFrame", 1, param_slot_7 }; static const QMetaData slot_tbl[] = { { "setContrast(int)", &slot_0, QMetaData::Public }, { "setBrightness(int)", &slot_1, QMetaData::Public }, { "setColor(int)", &slot_2, QMetaData::Public }, { "setHue(int)", &slot_3, QMetaData::Public }, { "setWhiteness(int)", &slot_4, QMetaData::Public }, { "setMode(ImageMode)", &slot_5, QMetaData::Public }, { "setMode(int)", &slot_6, QMetaData::Public }, { "updateFrame()", &slot_7, QMetaData::Protected } }; static const QUParameter param_signal_0[] = { { 0, &static_QUType_int, 0, QUParameter::In } }; static const QUMethod signal_0 = {"contrastChange", 1, param_signal_0 }; static const QUParameter param_signal_1[] = { { 0, &static_QUType_int, 0, QUParameter::In } }; static const QUMethod signal_1 = {"brightnessChange", 1, param_signal_1 }; static const QUParameter param_signal_2[] = { { "value", &static_QUType_int, 0, QUParameter::In } }; static const QUMethod signal_2 = {"colorChange", 1, param_signal_2 }; static const QUParameter param_signal_3[] = { { "value", &static_QUType_int, 0, QUParameter::In } }; static const QUMethod signal_3 = {"hueChange", 1, param_signal_3 }; static const QUParameter param_signal_4[] = { { "value", &static_QUType_int, 0, QUParameter::In } }; static const QUMethod signal_4 = {"whitenessChange", 1, param_signal_4 }; static const QMetaData signal_tbl[] = { { "contrastChange(int)", &signal_0, QMetaData::Protected }, { "brightnessChange(int)", &signal_1, QMetaData::Protected }, { "colorChange(int)", &signal_2, QMetaData::Protected }, { "hueChange(int)", &signal_3, QMetaData::Protected }, { "whitenessChange(int)", &signal_4, QMetaData::Protected } }; metaObj = QMetaObject::new_metaobject( "QCamV4L", parentObject, slot_tbl, 8, signal_tbl, 5, #ifndef QT_NO_PROPERTIES 0, 0, 0, 0, #endif // QT_NO_PROPERTIES 0, 0 ); cleanUp_QCamV4L.setMetaObject( metaObj ); return metaObj; } void* QCamV4L::qt_cast( const char* clname ) { if ( !qstrcmp( clname, "QCamV4L" ) ) return this; return QCam::qt_cast( clname ); } // SIGNAL contrastChange void QCamV4L::contrastChange( int t0 ) { activate_signal( staticMetaObject()->signalOffset() + 0, t0 ); } // SIGNAL brightnessChange void QCamV4L::brightnessChange( int t0 ) { activate_signal( staticMetaObject()->signalOffset() + 1, t0 ); } // SIGNAL colorChange void QCamV4L::colorChange( int t0 ) { activate_signal( staticMetaObject()->signalOffset() + 2, t0 ); } // SIGNAL hueChange void QCamV4L::hueChange( int t0 ) { activate_signal( staticMetaObject()->signalOffset() + 3, t0 ); } // SIGNAL whitenessChange void QCamV4L::whitenessChange( int t0 ) { activate_signal( staticMetaObject()->signalOffset() + 4, t0 ); } bool QCamV4L::qt_invoke( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->slotOffset() ) { case 0: setContrast((int)static_QUType_int.get(_o+1)); break; case 1: setBrightness((int)static_QUType_int.get(_o+1)); break; case 2: setColor((int)static_QUType_int.get(_o+1)); break; case 3: setHue((int)static_QUType_int.get(_o+1)); break; case 4: setWhiteness((int)static_QUType_int.get(_o+1)); break; case 5: setMode((ImageMode)(*((ImageMode*)static_QUType_ptr.get(_o+1)))); break; case 6: setMode((int)static_QUType_int.get(_o+1)); break; case 7: static_QUType_bool.set(_o,updateFrame()); break; default: return QCam::qt_invoke( _id, _o ); } return TRUE; } bool QCamV4L::qt_emit( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->signalOffset() ) { case 0: contrastChange((int)static_QUType_int.get(_o+1)); break; case 1: brightnessChange((int)static_QUType_int.get(_o+1)); break; case 2: colorChange((int)static_QUType_int.get(_o+1)); break; case 3: hueChange((int)static_QUType_int.get(_o+1)); break; case 4: whitenessChange((int)static_QUType_int.get(_o+1)); break; default: return QCam::qt_emit(_id,_o); } return TRUE; } #ifndef QT_NO_PROPERTIES bool QCamV4L::qt_property( int id, int f, QVariant* v) { return QCam::qt_property( id, f, v); } bool QCamV4L::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; } #endif // QT_NO_PROPERTIES