00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #undef QT_NO_COMPAT
00011 #include "disksensor.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.1.1. 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 *DiskSensor::className() const
00023 {
00024 return "DiskSensor";
00025 }
00026
00027 QMetaObject *DiskSensor::metaObj = 0;
00028 static QMetaObjectCleanUp cleanUp_DiskSensor( "DiskSensor", &DiskSensor::staticMetaObject );
00029
00030 #ifndef QT_NO_TRANSLATION
00031 QString DiskSensor::tr( const char *s, const char *c )
00032 {
00033 if ( qApp )
00034 return qApp->translate( "DiskSensor", s, c, QApplication::DefaultCodec );
00035 else
00036 return QString::fromLatin1( s );
00037 }
00038 #ifndef QT_NO_TRANSLATION_UTF8
00039 QString DiskSensor::trUtf8( const char *s, const char *c )
00040 {
00041 if ( qApp )
00042 return qApp->translate( "DiskSensor", 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* DiskSensor::staticMetaObject()
00051 {
00052 if ( metaObj )
00053 return metaObj;
00054 QMetaObject* parentObject = Sensor::staticMetaObject();
00055 static const QUParameter param_slot_0[] = {
00056 { 0, &static_QUType_ptr, "KProcess", QUParameter::In },
00057 { "buffer", &static_QUType_charstar, 0, QUParameter::In },
00058 { 0, &static_QUType_int, 0, QUParameter::In }
00059 };
00060 static const QUMethod slot_0 = {"receivedStdout", 3, param_slot_0 };
00061 static const QUParameter param_slot_1[] = {
00062 { 0, &static_QUType_ptr, "KProcess", QUParameter::In }
00063 };
00064 static const QUMethod slot_1 = {"processExited", 1, param_slot_1 };
00065 static const QMetaData slot_tbl[] = {
00066 { "receivedStdout(KProcess*,char*,int)", &slot_0, QMetaData::Private },
00067 { "processExited(KProcess*)", &slot_1, QMetaData::Private }
00068 };
00069 metaObj = QMetaObject::new_metaobject(
00070 "DiskSensor", parentObject,
00071 slot_tbl, 2,
00072 0, 0,
00073 #ifndef QT_NO_PROPERTIES
00074 0, 0,
00075 0, 0,
00076 #endif
00077 0, 0 );
00078 cleanUp_DiskSensor.setMetaObject( metaObj );
00079 return metaObj;
00080 }
00081
00082 void* DiskSensor::qt_cast( const char* clname )
00083 {
00084 if ( !qstrcmp( clname, "DiskSensor" ) )
00085 return this;
00086 return Sensor::qt_cast( clname );
00087 }
00088
00089 bool DiskSensor::qt_invoke( int _id, QUObject* _o )
00090 {
00091 switch ( _id - staticMetaObject()->slotOffset() ) {
00092 case 0: receivedStdout((KProcess*)static_QUType_ptr.get(_o+1),(char*)static_QUType_charstar.get(_o+2),(int)static_QUType_int.get(_o+3)); break;
00093 case 1: processExited((KProcess*)static_QUType_ptr.get(_o+1)); break;
00094 default:
00095 return Sensor::qt_invoke( _id, _o );
00096 }
00097 return TRUE;
00098 }
00099
00100 bool DiskSensor::qt_emit( int _id, QUObject* _o )
00101 {
00102 return Sensor::qt_emit(_id,_o);
00103 }
00104 #ifndef QT_NO_PROPERTIES
00105
00106 bool DiskSensor::qt_property( int id, int f, QVariant* v)
00107 {
00108 return Sensor::qt_property( id, f, v);
00109 }
00110
00111 bool DiskSensor::qt_static_property( QObject* , int , int , QVariant* ){ return FALSE; }
00112 #endif // QT_NO_PROPERTIES