00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #undef QT_NO_COMPAT
00011 #include "convert2text.h"
00012 #include <qmetaobject.h>
00013 #include <qapplication.h>
00014
00015 #include <private/qucomextra_p.h>
00016 #if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
00017 #error "This file was generated using the moc from 3.2.3. It"
00018 #error "cannot be used with the include files from this version of Qt."
00019 #error "(The moc has changed too much.)"
00020 #endif
00021
00022 const char *Convert2Text::className() const
00023 {
00024 return "Convert2Text";
00025 }
00026
00027 QMetaObject *Convert2Text::metaObj = 0;
00028 static QMetaObjectCleanUp cleanUp_Convert2Text( "Convert2Text", &Convert2Text::staticMetaObject );
00029
00030 #ifndef QT_NO_TRANSLATION
00031 QString Convert2Text::tr( const char *s, const char *c )
00032 {
00033 if ( qApp )
00034 return qApp->translate( "Convert2Text", s, c, QApplication::DefaultCodec );
00035 else
00036 return QString::fromLatin1( s );
00037 }
00038 #ifndef QT_NO_TRANSLATION_UTF8
00039 QString Convert2Text::trUtf8( const char *s, const char *c )
00040 {
00041 if ( qApp )
00042 return qApp->translate( "Convert2Text", s, c, QApplication::UnicodeUTF8 );
00043 else
00044 return QString::fromUtf8( s );
00045 }
00046 #endif // QT_NO_TRANSLATION_UTF8
00047
00048 #endif // QT_NO_TRANSLATION
00049
00050 QMetaObject* Convert2Text::staticMetaObject()
00051 {
00052 if ( metaObj )
00053 return metaObj;
00054 QMetaObject* parentObject = QObject::staticMetaObject();
00055 static const QUParameter param_slot_0[] = {
00056 { "proc", &static_QUType_ptr, "KProcess", QUParameter::In },
00057 { "buf", &static_QUType_charstar, 0, QUParameter::In },
00058 { "len", &static_QUType_int, 0, QUParameter::In }
00059 };
00060 static const QUMethod slot_0 = {"slotReceivedStderr", 3, param_slot_0 };
00061 static const QUParameter param_slot_1[] = {
00062 { "proc", &static_QUType_ptr, "KProcess", QUParameter::In },
00063 { "buf", &static_QUType_charstar, 0, QUParameter::In },
00064 { "len", &static_QUType_int, 0, QUParameter::In }
00065 };
00066 static const QUMethod slot_1 = {"slotReceivedStdout", 3, param_slot_1 };
00067 static const QMetaData slot_tbl[] = {
00068 { "slotReceivedStderr(KProcess*,char*,int)", &slot_0, QMetaData::Public },
00069 { "slotReceivedStdout(KProcess*,char*,int)", &slot_1, QMetaData::Public }
00070 };
00071 static const QUParameter param_signal_0[] = {
00072 { 0, &static_QUType_QString, 0, QUParameter::In }
00073 };
00074 static const QUMethod signal_0 = {"output", 1, param_signal_0 };
00075 static const QMetaData signal_tbl[] = {
00076 { "output(QString)", &signal_0, QMetaData::Public }
00077 };
00078 metaObj = QMetaObject::new_metaobject(
00079 "Convert2Text", parentObject,
00080 slot_tbl, 2,
00081 signal_tbl, 1,
00082 #ifndef QT_NO_PROPERTIES
00083 0, 0,
00084 0, 0,
00085 #endif
00086 0, 0 );
00087 cleanUp_Convert2Text.setMetaObject( metaObj );
00088 return metaObj;
00089 }
00090
00091 void* Convert2Text::qt_cast( const char* clname )
00092 {
00093 if ( !qstrcmp( clname, "Convert2Text" ) )
00094 return this;
00095 return QObject::qt_cast( clname );
00096 }
00097
00098
00099 void Convert2Text::output( QString t0 )
00100 {
00101 activate_signal( staticMetaObject()->signalOffset() + 0, t0 );
00102 }
00103
00104 bool Convert2Text::qt_invoke( int _id, QUObject* _o )
00105 {
00106 switch ( _id - staticMetaObject()->slotOffset() ) {
00107 case 0: slotReceivedStderr((KProcess*)static_QUType_ptr.get(_o+1),(char*)static_QUType_charstar.get(_o+2),(int)static_QUType_int.get(_o+3)); break;
00108 case 1: slotReceivedStdout((KProcess*)static_QUType_ptr.get(_o+1),(char*)static_QUType_charstar.get(_o+2),(int)static_QUType_int.get(_o+3)); break;
00109 default:
00110 return QObject::qt_invoke( _id, _o );
00111 }
00112 return TRUE;
00113 }
00114
00115 bool Convert2Text::qt_emit( int _id, QUObject* _o )
00116 {
00117 switch ( _id - staticMetaObject()->signalOffset() ) {
00118 case 0: output((QString)static_QUType_QString.get(_o+1)); break;
00119 default:
00120 return QObject::qt_emit(_id,_o);
00121 }
00122 return TRUE;
00123 }
00124 #ifndef QT_NO_PROPERTIES
00125
00126 bool Convert2Text::qt_property( int id, int f, QVariant* v)
00127 {
00128 return QObject::qt_property( id, f, v);
00129 }
00130
00131 bool Convert2Text::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
00132 #endif // QT_NO_PROPERTIES