statemachine.cpp Example File
trafficlight-qml-static/statemachine.cpp// // Statemachine code from reading SCXML file 'statemachine.scxml' // Created by: The Qt SCXML Compiler version 1 (Qt 5.12.6) // WARNING! All changes made in this file will be lost! // #include "statemachine.h" #include <qscxmlinvokableservice.h> #include <qscxmltabledata.h> #include <QScxmlNullDataModel> #if !defined(Q_QSCXMLC_OUTPUT_REVISION) #error "The header file 'statemachine.scxml' doesn't include <qscxmltabledata.h>." #elif Q_QSCXMLC_OUTPUT_REVISION != 1 #error "This file was generated using the qscxmlc from 5.12.6. It" #error "cannot be used with the include files from this version of Qt." #error "(The qscxmlc has changed too much.)" #endif struct TrafficLightStateMachine::Data: private QScxmlTableData { Data(TrafficLightStateMachine &stateMachine) : stateMachine(stateMachine) {} void init() { stateMachine.setTableData(this); stateMachine.setDataModel(&dataModel); } QString name() const override final { return string(0); } QScxmlExecutableContent::ContainerId initialSetup() const override final { return -1; } QScxmlExecutableContent::InstructionId *instructions() const override final { return theInstructions; } QScxmlExecutableContent::StringId *dataNames(int *count) const override final { *count = 0; return dataIds; } QScxmlExecutableContent::EvaluatorInfo evaluatorInfo(QScxmlExecutableContent::EvaluatorId evaluatorId) const override final { Q_ASSERT(evaluatorId >= 0); Q_ASSERT(evaluatorId < 0); return evaluators[evaluatorId]; } QScxmlExecutableContent::AssignmentInfo assignmentInfo(QScxmlExecutableContent::EvaluatorId assignmentId) const override final { Q_ASSERT(assignmentId >= 0); Q_ASSERT(assignmentId < 0); return assignments[assignmentId]; } QScxmlExecutableContent::ForeachInfo foreachInfo(QScxmlExecutableContent::EvaluatorId foreachId) const override final { Q_ASSERT(foreachId >= 0); Q_ASSERT(foreachId < 0); return foreaches[foreachId]; } QString string(QScxmlExecutableContent::StringId id) const override final { Q_ASSERT(id >= QScxmlExecutableContent::NoString); Q_ASSERT(id < 26); if (id == QScxmlExecutableContent::NoString) return QString(); return QString({static_cast<QStringData*>(strings.data + id)}); } const qint32 *stateMachineTable() const override final { return theStateMachineTable; } QScxmlInvokableServiceFactory *serviceFactory(int id) const override final; TrafficLightStateMachine &stateMachine; QScxmlNullDataModel dataModel; static QScxmlExecutableContent::ParameterInfo param(QScxmlExecutableContent::StringId name, QScxmlExecutableContent::EvaluatorId expr, QScxmlExecutableContent::StringId location) { QScxmlExecutableContent::ParameterInfo p; p.name = name; p.expr = expr; p.location = location; return p; } static QScxmlExecutableContent::InvokeInfo invoke( QScxmlExecutableContent::StringId id, QScxmlExecutableContent::StringId prefix, QScxmlExecutableContent::EvaluatorId expr, QScxmlExecutableContent::StringId location, QScxmlExecutableContent::StringId context, QScxmlExecutableContent::ContainerId finalize, bool autoforward) { QScxmlExecutableContent::InvokeInfo i; i.id = id; i.prefix = prefix; i.expr = expr; i.location = location; i.context = context; i.finalize = finalize; i.autoforward = autoforward; return i; } static qint32 theInstructions[]; static QScxmlExecutableContent::StringId dataIds[]; static QScxmlExecutableContent::EvaluatorInfo evaluators[]; static QScxmlExecutableContent::AssignmentInfo assignments[]; static QScxmlExecutableContent::ForeachInfo foreaches[]; static const qint32 theStateMachineTable[]; static struct Strings { QArrayData data[26]; qunicodechar stringdata[397]; } strings; }; TrafficLightStateMachine::TrafficLightStateMachine(QObject *parent) : QScxmlStateMachine(&staticMetaObject, parent) , data(new Data(*this)) { qRegisterMetaType<TrafficLightStateMachine *>(); data->init(); } TrafficLightStateMachine::~TrafficLightStateMachine() { delete data; } QScxmlInvokableServiceFactory *TrafficLightStateMachine::Data::serviceFactory(int id) const { Q_UNUSED(id); Q_UNREACHABLE(); } qint32 TrafficLightStateMachine::Data::theInstructions[] = { 2, 1, 18, 1, 16, 3, 3, 4, -1, -1, -1, -1, -1, -1, -1, 5, -1, -1, -1, 0, 0, 2, 1, 18, 1, 16, 3, 8, 9, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, 0, 0, 2, 1, 18, 1, 16, 3, 12, 13, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, 0, 0, 2, 1, 18, 1, 16, 3, 15, 16, -1, -1, -1, -1, -1, -1, -1, 5, -1, -1, -1, 0, 0, 2, 1, 18, 1, 16, 3, 20, 21, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, 0, 0, 2, 1, 18, 1, 16, 3, 23, 24, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, 0, 0 }; QScxmlExecutableContent::StringId TrafficLightStateMachine::Data::dataIds[] = { -1 }; QScxmlExecutableContent::EvaluatorInfo TrafficLightStateMachine::Data::evaluators[] = { { -1, -1 } }; QScxmlExecutableContent::AssignmentInfo TrafficLightStateMachine::Data::assignments[] = { { -1, -1, -1 } }; QScxmlExecutableContent::ForeachInfo TrafficLightStateMachine::Data::foreaches[] = { { -1, -1, -1, -1 } }; #define STR_LIT(idx, ofs, len) \ Q_STATIC_STRING_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ qptrdiff(offsetof(Strings, stringdata) + ofs * sizeof(qunicodechar) - idx * sizeof(QArrayData)) \ ) TrafficLightStateMachine::Data::Strings TrafficLightStateMachine::Data::strings = {{ STR_LIT(0, 0, 24), STR_LIT(1, 25, 7), STR_LIT(2, 33, 3), STR_LIT(3, 37, 29), STR_LIT(4, 67, 15), STR_LIT(5, 83, 2), STR_LIT(6, 86, 6), STR_LIT(7, 93, 13), STR_LIT(8, 107, 39), STR_LIT(9, 147, 7), STR_LIT(10, 155, 2), STR_LIT(11, 158, 13), STR_LIT(12, 172, 39), STR_LIT(13, 212, 5), STR_LIT(14, 218, 5), STR_LIT(15, 224, 31), STR_LIT(16, 256, 13), STR_LIT(17, 270, 5), STR_LIT(18, 276, 6), STR_LIT(19, 283, 8), STR_LIT(20, 292, 34), STR_LIT(21, 327, 7), STR_LIT(22, 335, 10), STR_LIT(23, 346, 36), STR_LIT(24, 383, 5), STR_LIT(25, 389, 6) },{ 0x54,0x72,0x61,0x66,0x66,0x69,0x63,0x4c,0x69,0x67,0x68,0x74,0x53,0x74,0x61,0x74,0x65,0x4d,0x61,0x63,0x68,0x69,0x6e,0x65,0, // 0: TrafficLightStateMachine 0x77,0x6f,0x72,0x6b,0x69,0x6e,0x67,0, // 1: working 0x72,0x65,0x64,0, // 2: red 0x73,0x65,0x6e,0x64,0x20,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x20,0x69,0x6e,0x20,0x73,0x74,0x61,0x74,0x65,0x20,0x72,0x65,0x64,0, // 3: send instruction in state red 0x73,0x74,0x61,0x72,0x74,0x47,0x6f,0x69,0x6e,0x67,0x47,0x72,0x65,0x65,0x6e,0, // 4: startGoingGreen 0x33,0x73,0, // 5: 3s 0x79,0x65,0x6c,0x6c,0x6f,0x77,0, // 6: yellow 0x72,0x65,0x64,0x47,0x6f,0x69,0x6e,0x67,0x47,0x72,0x65,0x65,0x6e,0, // 7: redGoingGreen 0x73,0x65,0x6e,0x64,0x20,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x20,0x69,0x6e,0x20,0x73,0x74,0x61,0x74,0x65,0x20,0x72,0x65,0x64,0x47,0x6f,0x69,0x6e,0x67,0x47,0x72,0x65,0x65,0x6e,0, // 8: send instruction in state redGoingGreen 0x67,0x6f,0x47,0x72,0x65,0x65,0x6e,0, // 9: goGreen 0x31,0x73,0, // 10: 1s 0x67,0x72,0x65,0x65,0x6e,0x47,0x6f,0x69,0x6e,0x67,0x52,0x65,0x64,0, // 11: greenGoingRed 0x73,0x65,0x6e,0x64,0x20,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x20,0x69,0x6e,0x20,0x73,0x74,0x61,0x74,0x65,0x20,0x67,0x72,0x65,0x65,0x6e,0x47,0x6f,0x69,0x6e,0x67,0x52,0x65,0x64,0, // 12: send instruction in state greenGoingRed 0x67,0x6f,0x52,0x65,0x64,0, // 13: goRed 0x67,0x72,0x65,0x65,0x6e,0, // 14: green 0x73,0x65,0x6e,0x64,0x20,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x20,0x69,0x6e,0x20,0x73,0x74,0x61,0x74,0x65,0x20,0x67,0x72,0x65,0x65,0x6e,0, // 15: send instruction in state green 0x73,0x74,0x61,0x72,0x74,0x47,0x6f,0x69,0x6e,0x67,0x52,0x65,0x64,0, // 16: startGoingRed 0x73,0x6d,0x61,0x73,0x68,0, // 17: smash 0x62,0x72,0x6f,0x6b,0x65,0x6e,0, // 18: broken 0x62,0x6c,0x69,0x6e,0x6b,0x69,0x6e,0x67,0, // 19: blinking 0x73,0x65,0x6e,0x64,0x20,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x20,0x69,0x6e,0x20,0x73,0x74,0x61,0x74,0x65,0x20,0x62,0x6c,0x69,0x6e,0x6b,0x69,0x6e,0x67,0, // 20: send instruction in state blinking 0x75,0x6e,0x62,0x6c,0x69,0x6e,0x6b,0, // 21: unblink 0x75,0x6e,0x62,0x6c,0x69,0x6e,0x6b,0x69,0x6e,0x67,0, // 22: unblinking 0x73,0x65,0x6e,0x64,0x20,0x69,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x69,0x6f,0x6e,0x20,0x69,0x6e,0x20,0x73,0x74,0x61,0x74,0x65,0x20,0x75,0x6e,0x62,0x6c,0x69,0x6e,0x6b,0x69,0x6e,0x67,0, // 23: send instruction in state unblinking 0x62,0x6c,0x69,0x6e,0x6b,0, // 24: blink 0x72,0x65,0x70,0x61,0x69,0x72,0 // 25: repair }}; const qint32 TrafficLightStateMachine::Data::theStateMachineTable[] = { 0x1, // version 0, // name 0, // data-model 64, // child states array offset 8, // transition to initial states -1, // initial setup 0, // binding -1, // maxServiceId 14, 9, // state offset and count 113, 12, // transition offset and count 185, 69, // array offset and size // States: 1, -1, 0, 9, -1, -1, -1, -1, 33, 37, -1, 2, 0, 0, -1, -1, 0, -1, -1, -1, 4, -1, 6, 0, 0, 10, -1, -1, -1, -1, 18, -1, -1, 7, 2, 0, -1, -1, 21, -1, -1, -1, 10, -1, 11, 2, 0, -1, -1, 42, -1, -1, -1, 16, -1, 14, 0, 0, -1, -1, 63, -1, -1, -1, 27, -1, 18, -1, 0, 11, -1, -1, -1, -1, 57, 60, -1, 19, 6, 0, -1, -1, 84, -1, -1, -1, 45, -1, 22, 6, 0, -1, -1, 105, -1, -1, -1, 51, -1, // Transitions: 2, -1, 1, 1, 0, -1, 8, -1, 1, 3, 6, -1, 14, -1, 1, 4, 12, -1, 25, -1, 1, 5, 23, -1, 31, -1, 1, 0, 29, -1, 43, -1, 1, 7, 41, -1, 49, -1, 1, 8, 47, -1, 55, -1, 1, 6, 53, -1, -1, -1, 2, -1, 67, -1, -1, -1, 2, 0, 39, -1, -1, -1, 2, 2, 21, -1, -1, -1, 2, 6, 62, -1, // Arrays: 1, 3, 1, 4, 1, 0, 1, 5, 1, 9, 1, 1, 1, 1, 1, 13, 1, 2, 2, 3, 4, 1, 4, 1, 4, 1, 16, 1, 3, 1, 6, 1, 17, 3, 1, 2, 5, 1, 4, 1, 2, 1, 8, 1, 21, 1, 5, 1, 7, 1, 24, 1, 6, 1, 0, 1, 25, 2, 7, 8, 1, 7, 1, 7, 2, 0, 6, 1, 0, 0xc0ff33 // terminator }; struct qt_meta_stringdata_TrafficLightStateMachine_t { QByteArrayData data[22]; unsigned char stringdata0[263]; }; #define QT_MOC_LITERAL(idx, ofs, len) \ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ qptrdiff(offsetof(qt_meta_stringdata_TrafficLightStateMachine_t, stringdata0) + ofs \ - idx * sizeof(QByteArrayData)) \ ) static const qt_meta_stringdata_TrafficLightStateMachine_t qt_meta_stringdata_TrafficLightStateMachine = { { QT_MOC_LITERAL(0, 0, 24), // "TrafficLightStateMachine" QT_MOC_LITERAL(1, 25, 14), // "workingChanged" QT_MOC_LITERAL(2, 40, 0), // "" QT_MOC_LITERAL(3, 41, 6), // "active" QT_MOC_LITERAL(4, 48, 10), // "redChanged" QT_MOC_LITERAL(5, 59, 13), // "yellowChanged" QT_MOC_LITERAL(6, 73, 20), // "redGoingGreenChanged" QT_MOC_LITERAL(7, 94, 20), // "greenGoingRedChanged" QT_MOC_LITERAL(8, 115, 12), // "greenChanged" QT_MOC_LITERAL(9, 128, 13), // "brokenChanged" QT_MOC_LITERAL(10, 142, 15), // "blinkingChanged" QT_MOC_LITERAL(11, 158, 17), // "unblinkingChanged" QT_MOC_LITERAL(12, 176, 6), // "parent" QT_MOC_LITERAL(13, 183, 7), // "working" QT_MOC_LITERAL(14, 191, 3), // "red" QT_MOC_LITERAL(15, 195, 6), // "yellow" QT_MOC_LITERAL(16, 202, 13), // "redGoingGreen" QT_MOC_LITERAL(17, 216, 13), // "greenGoingRed" QT_MOC_LITERAL(18, 230, 5), // "green" QT_MOC_LITERAL(19, 236, 6), // "broken" QT_MOC_LITERAL(20, 243, 8), // "blinking" QT_MOC_LITERAL(21, 252, 10) // "unblinking" },{ 0x54,0x72,0x61,0x66,0x66,0x69,0x63,0x4c,0x69,0x67,0x68,0x74,0x53,0x74,0x61,0x74,0x65,0x4d,0x61,0x63,0x68,0x69,0x6e,0x65,0, // 0: TrafficLightStateMachine 0x77,0x6f,0x72,0x6b,0x69,0x6e,0x67,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 1: workingChanged 0, // 2: 0x61,0x63,0x74,0x69,0x76,0x65,0, // 3: active 0x72,0x65,0x64,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 4: redChanged 0x79,0x65,0x6c,0x6c,0x6f,0x77,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 5: yellowChanged 0x72,0x65,0x64,0x47,0x6f,0x69,0x6e,0x67,0x47,0x72,0x65,0x65,0x6e,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 6: redGoingGreenChanged 0x67,0x72,0x65,0x65,0x6e,0x47,0x6f,0x69,0x6e,0x67,0x52,0x65,0x64,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 7: greenGoingRedChanged 0x67,0x72,0x65,0x65,0x6e,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 8: greenChanged 0x62,0x72,0x6f,0x6b,0x65,0x6e,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 9: brokenChanged 0x62,0x6c,0x69,0x6e,0x6b,0x69,0x6e,0x67,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 10: blinkingChanged 0x75,0x6e,0x62,0x6c,0x69,0x6e,0x6b,0x69,0x6e,0x67,0x43,0x68,0x61,0x6e,0x67,0x65,0x64,0, // 11: unblinkingChanged 0x70,0x61,0x72,0x65,0x6e,0x74,0, // 12: parent 0x77,0x6f,0x72,0x6b,0x69,0x6e,0x67,0, // 13: working 0x72,0x65,0x64,0, // 14: red 0x79,0x65,0x6c,0x6c,0x6f,0x77,0, // 15: yellow 0x72,0x65,0x64,0x47,0x6f,0x69,0x6e,0x67,0x47,0x72,0x65,0x65,0x6e,0, // 16: redGoingGreen 0x67,0x72,0x65,0x65,0x6e,0x47,0x6f,0x69,0x6e,0x67,0x52,0x65,0x64,0, // 17: greenGoingRed 0x67,0x72,0x65,0x65,0x6e,0, // 18: green 0x62,0x72,0x6f,0x6b,0x65,0x6e,0, // 19: broken 0x62,0x6c,0x69,0x6e,0x6b,0x69,0x6e,0x67,0, // 20: blinking 0x75,0x6e,0x62,0x6c,0x69,0x6e,0x6b,0x69,0x6e,0x67,0 // 21: unblinking }}; #undef QT_MOC_LITERAL static const uint qt_meta_data_TrafficLightStateMachine[] = { // content: 8, // revision 0, // classname 0, 0, // classinfo 9, 14, // methods 9, 89, // properties 0, 0, // enums/sets 1, 125, // constructors 0, // flags 9, // signalCount // signals: name, argc, parameters, tag, flags 1, 1, 59, 2, 0x06 /* Public */, 4, 1, 62, 2, 0x06 /* Public */, 5, 1, 65, 2, 0x06 /* Public */, 6, 1, 68, 2, 0x06 /* Public */, 7, 1, 71, 2, 0x06 /* Public */, 8, 1, 74, 2, 0x06 /* Public */, 9, 1, 77, 2, 0x06 /* Public */, 10, 1, 80, 2, 0x06 /* Public */, 11, 1, 83, 2, 0x06 /* Public */, // signals: parameters QMetaType::Void, QMetaType::Bool, 3, QMetaType::Void, QMetaType::Bool, 3, QMetaType::Void, QMetaType::Bool, 3, QMetaType::Void, QMetaType::Bool, 3, QMetaType::Void, QMetaType::Bool, 3, QMetaType::Void, QMetaType::Bool, 3, QMetaType::Void, QMetaType::Bool, 3, QMetaType::Void, QMetaType::Bool, 3, QMetaType::Void, QMetaType::Bool, 3, // constructors: parameters 0x80000000 | 2, QMetaType::QObjectStar, 12, // properties: name, type, flags 13, QMetaType::Bool, 0x006a6001, 14, QMetaType::Bool, 0x006a6001, 15, QMetaType::Bool, 0x006a6001, 16, QMetaType::Bool, 0x006a6001, 17, QMetaType::Bool, 0x006a6001, 18, QMetaType::Bool, 0x006a6001, 19, QMetaType::Bool, 0x006a6001, 20, QMetaType::Bool, 0x006a6001, 21, QMetaType::Bool, 0x006a6001, // properties: notify_signal_id 0, 1, 2, 3, 4, 5, 6, 7, 8, // constructors: name, argc, parameters, tag, flags 0, 1, 86, 2, 0x0e /* Public */, 0 // eod }; void TrafficLightStateMachine::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::CreateInstance) { switch (_id) { case 0: { TrafficLightStateMachine *_r = new TrafficLightStateMachine((*reinterpret_cast< QObject **>(_a[1]))); if (_a[0]) *reinterpret_cast<QObject**>(_a[0]) = _r; } break; default: break; } } else if (_c == QMetaObject::InvokeMetaMethod) { TrafficLightStateMachine *_t = static_cast<TrafficLightStateMachine *>(_o); Q_UNUSED(_t) switch (_id) { case 0: QMetaObject::activate(_o, &staticMetaObject, 0, _a); break; case 1: QMetaObject::activate(_o, &staticMetaObject, 1, _a); break; case 2: QMetaObject::activate(_o, &staticMetaObject, 2, _a); break; case 3: QMetaObject::activate(_o, &staticMetaObject, 3, _a); break; case 4: QMetaObject::activate(_o, &staticMetaObject, 4, _a); break; case 5: QMetaObject::activate(_o, &staticMetaObject, 5, _a); break; case 6: QMetaObject::activate(_o, &staticMetaObject, 6, _a); break; case 7: QMetaObject::activate(_o, &staticMetaObject, 7, _a); break; case 8: QMetaObject::activate(_o, &staticMetaObject, 8, _a); break; default: ; } } else if (_c == QMetaObject::IndexOfMethod) { int *result = reinterpret_cast<int *>(_a[0]); void **func = reinterpret_cast<void **>(_a[1]); Q_UNUSED(result); Q_UNUSED(func); } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { TrafficLightStateMachine *_t = static_cast<TrafficLightStateMachine *>(_o); Q_UNUSED(_t) void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< bool*>(_v) = _t->isActive(0); break; case 1: *reinterpret_cast< bool*>(_v) = _t->isActive(1); break; case 2: *reinterpret_cast< bool*>(_v) = _t->isActive(2); break; case 3: *reinterpret_cast< bool*>(_v) = _t->isActive(3); break; case 4: *reinterpret_cast< bool*>(_v) = _t->isActive(4); break; case 5: *reinterpret_cast< bool*>(_v) = _t->isActive(5); break; case 6: *reinterpret_cast< bool*>(_v) = _t->isActive(6); break; case 7: *reinterpret_cast< bool*>(_v) = _t->isActive(7); break; case 8: *reinterpret_cast< bool*>(_v) = _t->isActive(8); break; default: break; } } else if (_c == QMetaObject::WriteProperty) { } else if (_c == QMetaObject::ResetProperty) { } #endif // QT_NO_PROPERTIES } const QMetaObject TrafficLightStateMachine::staticMetaObject = { { &QScxmlStateMachine::staticMetaObject, qt_meta_stringdata_TrafficLightStateMachine.data, qt_meta_data_TrafficLightStateMachine, qt_static_metacall, nullptr, nullptr} }; const QMetaObject *TrafficLightStateMachine::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *TrafficLightStateMachine::qt_metacast(const char *_clname) { if (!_clname) return nullptr; if (!strcmp(_clname, reinterpret_cast<const char *>( qt_meta_stringdata_TrafficLightStateMachine.stringdata0))) return static_cast<void*>(const_cast< TrafficLightStateMachine*>(this)); return QScxmlStateMachine::qt_metacast(_clname); } int TrafficLightStateMachine::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QScxmlStateMachine::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 9) qt_static_metacall(this, _c, _id, _a); _id -= 9; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 9) *reinterpret_cast<int*>(_a[0]) = -1; _id -= 9; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { qt_static_metacall(this, _c, _id, _a); _id -= 9; } else if (_c == QMetaObject::QueryPropertyDesignable) { _id -= 9; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 9; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 9; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 9; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 9; } #endif // QT_NO_PROPERTIES return _id; }