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