00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "model.h"
00011 #if !defined(Q_MOC_OUTPUT_REVISION)
00012 #error "The header file 'model.h' doesn't include <QObject>."
00013 #elif Q_MOC_OUTPUT_REVISION != 59
00014 #error "This file was generated using the moc from 4.4.0. It"
00015 #error "cannot be used with the include files from this version of Qt."
00016 #error "(The moc has changed too much.)"
00017 #endif
00018
00019 QT_BEGIN_MOC_NAMESPACE
00020 static const uint qt_meta_data_Model[] = {
00021
00022
00023 1,
00024 0,
00025 0, 0,
00026 22, 10,
00027 0, 0,
00028 0, 0,
00029
00030
00031 7, 6, 6, 6, 0x05,
00032 26, 6, 6, 6, 0x05,
00033 89, 61, 6, 6, 0x05,
00034 133, 6, 6, 6, 0x05,
00035 157, 6, 6, 6, 0x05,
00036
00037
00038 194, 185, 6, 6, 0x0a,
00039 213, 185, 208, 6, 0x0a,
00040 237, 227, 6, 6, 0x0a,
00041 263, 259, 6, 6, 0x0a,
00042 284, 279, 6, 6, 0x0a,
00043 312, 305, 6, 6, 0x0a,
00044 346, 334, 6, 6, 0x0a,
00045 407, 378, 6, 6, 0x0a,
00046 443, 259, 6, 6, 0x0a,
00047 464, 459, 6, 6, 0x0a,
00048 485, 305, 6, 6, 0x0a,
00049 507, 334, 6, 6, 0x0a,
00050 559, 539, 6, 6, 0x0a,
00051 601, 587, 6, 6, 0x2a,
00052 663, 624, 6, 6, 0x0a,
00053 712, 6, 6, 6, 0x08,
00054 738, 6, 6, 6, 0x08,
00055
00056 0
00057 };
00058
00059 static const char qt_meta_stringdata_Model[] = {
00060 "Model\0\0newMapOpened(Map*)\0"
00061 "newEnginesAreaOpened(EnginesArea*)\0"
00062 "address,state,delay,decoder\0"
00063 "newRailStateRequested(int,bool,int,QString)\0"
00064 "railStateChanged(Rail*)\0"
00065 "engineStateChanged(Engine*)\0fileName\0"
00066 "open(QString)\0bool\0save(QString)\0"
00067 "railsFile\0setRailsFile(QString)\0map\0"
00068 "insertMap(Map*)\0rail\0insertMapItem(Rail*)\0"
00069 "engine\0insertEngine(Engine*)\0enginesArea\0"
00070 "insertEnginesArea(EnginesArea*)\0"
00071 "trigger,source,action,target\0"
00072 "insertRule(QString,int,QString,int)\0"
00073 "removeMap(Map*)\0item\0removeMapItem(Rail*)\0"
00074 "removeEngine(Engine*)\0"
00075 "removeEnginesArea(EnginesArea*)\0"
00076 "address,state,quiet\0setRailState(int,bool,bool)\0"
00077 "address,state\0setRailState(int,bool)\0"
00078 "address,direction,speed,light,f2,f3,f4\0"
00079 "setEngineState(int,bool,int,bool,bool,bool,bool)\0"
00080 "commitEngineStateChange()\0"
00081 "commitRailStateChange()\0"
00082 };
00083
00084 const QMetaObject Model::staticMetaObject = {
00085 { &QObject::staticMetaObject, qt_meta_stringdata_Model,
00086 qt_meta_data_Model, 0 }
00087 };
00088
00089 const QMetaObject *Model::metaObject() const
00090 {
00091 return &staticMetaObject;
00092 }
00093
00094 void *Model::qt_metacast(const char *_clname)
00095 {
00096 if (!_clname) return 0;
00097 if (!strcmp(_clname, qt_meta_stringdata_Model))
00098 return static_cast<void*>(const_cast< Model*>(this));
00099 return QObject::qt_metacast(_clname);
00100 }
00101
00102 int Model::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
00103 {
00104 _id = QObject::qt_metacall(_c, _id, _a);
00105 if (_id < 0)
00106 return _id;
00107 if (_c == QMetaObject::InvokeMetaMethod) {
00108 switch (_id) {
00109 case 0: newMapOpened((*reinterpret_cast< Map*(*)>(_a[1]))); break;
00110 case 1: newEnginesAreaOpened((*reinterpret_cast< EnginesArea*(*)>(_a[1]))); break;
00111 case 2: newRailStateRequested((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< QString(*)>(_a[4]))); break;
00112 case 3: railStateChanged((*reinterpret_cast< Rail*(*)>(_a[1]))); break;
00113 case 4: engineStateChanged((*reinterpret_cast< Engine*(*)>(_a[1]))); break;
00114 case 5: open((*reinterpret_cast< QString(*)>(_a[1]))); break;
00115 case 6: { bool _r = save((*reinterpret_cast< QString(*)>(_a[1])));
00116 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
00117 case 7: setRailsFile((*reinterpret_cast< const QString(*)>(_a[1]))); break;
00118 case 8: insertMap((*reinterpret_cast< Map*(*)>(_a[1]))); break;
00119 case 9: insertMapItem((*reinterpret_cast< Rail*(*)>(_a[1]))); break;
00120 case 10: insertEngine((*reinterpret_cast< Engine*(*)>(_a[1]))); break;
00121 case 11: insertEnginesArea((*reinterpret_cast< EnginesArea*(*)>(_a[1]))); break;
00122 case 12: insertRule((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3])),(*reinterpret_cast< int(*)>(_a[4]))); break;
00123 case 13: removeMap((*reinterpret_cast< Map*(*)>(_a[1]))); break;
00124 case 14: removeMapItem((*reinterpret_cast< Rail*(*)>(_a[1]))); break;
00125 case 15: removeEngine((*reinterpret_cast< Engine*(*)>(_a[1]))); break;
00126 case 16: removeEnginesArea((*reinterpret_cast< EnginesArea*(*)>(_a[1]))); break;
00127 case 17: setRailState((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< bool(*)>(_a[3]))); break;
00128 case 18: setRailState((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
00129 case 19: setEngineState((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< bool(*)>(_a[4])),(*reinterpret_cast< bool(*)>(_a[5])),(*reinterpret_cast< bool(*)>(_a[6])),(*reinterpret_cast< bool(*)>(_a[7]))); break;
00130 case 20: commitEngineStateChange(); break;
00131 case 21: commitRailStateChange(); break;
00132 }
00133 _id -= 22;
00134 }
00135 return _id;
00136 }
00137
00138
00139 void Model::newMapOpened(Map * _t1)
00140 {
00141 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00142 QMetaObject::activate(this, &staticMetaObject, 0, _a);
00143 }
00144
00145
00146 void Model::newEnginesAreaOpened(EnginesArea * _t1)
00147 {
00148 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00149 QMetaObject::activate(this, &staticMetaObject, 1, _a);
00150 }
00151
00152
00153 void Model::newRailStateRequested(int _t1, bool _t2, int _t3, QString _t4)
00154 {
00155 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)) };
00156 QMetaObject::activate(this, &staticMetaObject, 2, _a);
00157 }
00158
00159
00160 void Model::railStateChanged(Rail * _t1)
00161 {
00162 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00163 QMetaObject::activate(this, &staticMetaObject, 3, _a);
00164 }
00165
00166
00167 void Model::engineStateChanged(Engine * _t1)
00168 {
00169 void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
00170 QMetaObject::activate(this, &staticMetaObject, 4, _a);
00171 }
00172 QT_END_MOC_NAMESPACE