/**************************************************************************** ** Meta object code from reading C++ file 'appmodel.h' ** ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.2.4) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include #include "../appmodel.h" #include #include #include #include #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'appmodel.h' doesn't include ." #elif Q_MOC_OUTPUT_REVISION != 68 #error "This file was generated using the moc from 6.2.4. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE QT_WARNING_PUSH QT_WARNING_DISABLE_DEPRECATED struct qt_meta_stringdata_CarData_t { const uint offsetsAndSize[16]; char stringdata0[49]; }; #define QT_MOC_LITERAL(ofs, len) \ uint(offsetof(qt_meta_stringdata_CarData_t, stringdata0) + ofs), len static const qt_meta_stringdata_CarData_t qt_meta_stringdata_CarData = { { QT_MOC_LITERAL(0, 7), // "CarData" QT_MOC_LITERAL(8, 11), // "dataChanged" QT_MOC_LITERAL(20, 0), // "" QT_MOC_LITERAL(21, 3), // "uid" QT_MOC_LITERAL(25, 7), // "int32_t" QT_MOC_LITERAL(33, 4), // "name" QT_MOC_LITERAL(38, 4), // "type" QT_MOC_LITERAL(43, 5) // "state" }, "CarData\0dataChanged\0\0uid\0int32_t\0name\0" "type\0state" }; #undef QT_MOC_LITERAL static const uint qt_meta_data_CarData[] = { // content: 10, // revision 0, // classname 0, 0, // classinfo 1, 14, // methods 4, 21, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 1, // signalCount // signals: name, argc, parameters, tag, flags, initial metatype offsets 1, 0, 20, 2, 0x06, 5 /* Public */, // signals: parameters QMetaType::Void, // properties: name, type, flags 3, 0x80000000 | 4, 0x0001510b, uint(0), 0, 5, QMetaType::QString, 0x00015103, uint(0), 0, 6, QMetaType::QString, 0x00015103, uint(0), 0, 7, QMetaType::QString, 0x00015103, uint(0), 0, 0 // eod }; void CarData::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::InvokeMetaMethod) { auto *_t = static_cast(_o); (void)_t; switch (_id) { case 0: _t->dataChanged(); break; default: ; } } else if (_c == QMetaObject::IndexOfMethod) { int *result = reinterpret_cast(_a[0]); { using _t = void (CarData::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CarData::dataChanged)) { *result = 0; return; } } } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { auto *_t = static_cast(_o); (void)_t; void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< int32_t*>(_v) = _t->uid(); break; case 1: *reinterpret_cast< QString*>(_v) = _t->name(); break; case 2: *reinterpret_cast< QString*>(_v) = _t->type(); break; case 3: *reinterpret_cast< QString*>(_v) = _t->state(); break; default: break; } } else if (_c == QMetaObject::WriteProperty) { auto *_t = static_cast(_o); (void)_t; void *_v = _a[0]; switch (_id) { case 0: _t->setUid(*reinterpret_cast< int32_t*>(_v)); break; case 1: _t->setName(*reinterpret_cast< QString*>(_v)); break; case 2: _t->setType(*reinterpret_cast< QString*>(_v)); break; case 3: _t->setState(*reinterpret_cast< QString*>(_v)); break; default: break; } } else if (_c == QMetaObject::ResetProperty) { } else if (_c == QMetaObject::BindableProperty) { } #endif // QT_NO_PROPERTIES (void)_a; } const QMetaObject CarData::staticMetaObject = { { QMetaObject::SuperData::link(), qt_meta_stringdata_CarData.offsetsAndSize, qt_meta_data_CarData, qt_static_metacall, nullptr, qt_incomplete_metaTypeArray, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete >, nullptr } }; const QMetaObject *CarData::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *CarData::qt_metacast(const char *_clname) { if (!_clname) return nullptr; if (!strcmp(_clname, qt_meta_stringdata_CarData.stringdata0)) return static_cast(this); return QObject::qt_metacast(_clname); } int CarData::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 1) qt_static_metacall(this, _c, _id, _a); _id -= 1; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 1) *reinterpret_cast(_a[0]) = QMetaType(); _id -= 1; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty || _c == QMetaObject::RegisterPropertyMetaType) { qt_static_metacall(this, _c, _id, _a); _id -= 4; } #endif // QT_NO_PROPERTIES return _id; } // SIGNAL 0 void CarData::dataChanged() { QMetaObject::activate(this, &staticMetaObject, 0, nullptr); } struct qt_meta_stringdata_AppModel_t { const uint offsetsAndSize[90]; char stringdata0[456]; }; #define QT_MOC_LITERAL(ofs, len) \ uint(offsetof(qt_meta_stringdata_AppModel_t, stringdata0) + ofs), len static const qt_meta_stringdata_AppModel_t qt_meta_stringdata_AppModel = { { QT_MOC_LITERAL(0, 8), // "AppModel" QT_MOC_LITERAL(9, 12), // "readyChanged" QT_MOC_LITERAL(22, 0), // "" QT_MOC_LITERAL(23, 14), // "accountChanged" QT_MOC_LITERAL(38, 15), // "passwordChanged" QT_MOC_LITERAL(54, 14), // "carNameChanged" QT_MOC_LITERAL(69, 16), // "driveNameChanged" QT_MOC_LITERAL(86, 18), // "sectionTextChanged" QT_MOC_LITERAL(105, 11), // "gearChanged" QT_MOC_LITERAL(117, 14), // "playAlertSound" QT_MOC_LITERAL(132, 12), // "carConnected" QT_MOC_LITERAL(145, 8), // "closeWin" QT_MOC_LITERAL(154, 10), // "carChanged" QT_MOC_LITERAL(165, 10), // "onLoginRst" QT_MOC_LITERAL(176, 3), // "rst" QT_MOC_LITERAL(180, 11), // "onCarAppend" QT_MOC_LITERAL(192, 10), // "UserDriver" QT_MOC_LITERAL(203, 4), // "info" QT_MOC_LITERAL(208, 13), // "onNotifyState" QT_MOC_LITERAL(222, 7), // "int32_t" QT_MOC_LITERAL(230, 3), // "uid" QT_MOC_LITERAL(234, 9), // "UserState" QT_MOC_LITERAL(244, 5), // "state" QT_MOC_LITERAL(250, 11), // "onNotifyDel" QT_MOC_LITERAL(262, 4), // "peer" QT_MOC_LITERAL(267, 9), // "onKickoff" QT_MOC_LITERAL(277, 13), // "onNotifyLeave" QT_MOC_LITERAL(291, 12), // "onNotifyFail" QT_MOC_LITERAL(304, 7), // "OnClose" QT_MOC_LITERAL(312, 9), // "userLogin" QT_MOC_LITERAL(322, 7), // "useName" QT_MOC_LITERAL(330, 8), // "password" QT_MOC_LITERAL(339, 10), // "connectCar" QT_MOC_LITERAL(350, 2), // "id" QT_MOC_LITERAL(353, 8), // "leaveCar" QT_MOC_LITERAL(362, 6), // "logout" QT_MOC_LITERAL(369, 10), // "controlCar" QT_MOC_LITERAL(380, 4), // "idle" QT_MOC_LITERAL(385, 5), // "ready" QT_MOC_LITERAL(391, 3), // "car" QT_MOC_LITERAL(395, 25), // "QQmlListProperty" QT_MOC_LITERAL(421, 7), // "Account" QT_MOC_LITERAL(429, 8), // "Password" QT_MOC_LITERAL(438, 7), // "CarName" QT_MOC_LITERAL(446, 9) // "DriveName" }, "AppModel\0readyChanged\0\0accountChanged\0" "passwordChanged\0carNameChanged\0" "driveNameChanged\0sectionTextChanged\0" "gearChanged\0playAlertSound\0carConnected\0" "closeWin\0carChanged\0onLoginRst\0rst\0" "onCarAppend\0UserDriver\0info\0onNotifyState\0" "int32_t\0uid\0UserState\0state\0onNotifyDel\0" "peer\0onKickoff\0onNotifyLeave\0onNotifyFail\0" "OnClose\0userLogin\0useName\0password\0" "connectCar\0id\0leaveCar\0logout\0controlCar\0" "idle\0ready\0car\0QQmlListProperty\0" "Account\0Password\0CarName\0DriveName" }; #undef QT_MOC_LITERAL static const uint qt_meta_data_AppModel[] = { // content: 10, // revision 0, // classname 0, 0, // classinfo 25, 14, // methods 6, 213, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 11, // signalCount // signals: name, argc, parameters, tag, flags, initial metatype offsets 1, 0, 164, 2, 0x06, 7 /* Public */, 3, 0, 165, 2, 0x06, 8 /* Public */, 4, 0, 166, 2, 0x06, 9 /* Public */, 5, 0, 167, 2, 0x06, 10 /* Public */, 6, 0, 168, 2, 0x06, 11 /* Public */, 7, 0, 169, 2, 0x06, 12 /* Public */, 8, 0, 170, 2, 0x06, 13 /* Public */, 9, 0, 171, 2, 0x06, 14 /* Public */, 10, 0, 172, 2, 0x06, 15 /* Public */, 11, 0, 173, 2, 0x06, 16 /* Public */, 12, 0, 174, 2, 0x06, 17 /* Public */, // slots: name, argc, parameters, tag, flags, initial metatype offsets 13, 1, 175, 2, 0x0a, 18 /* Public */, 15, 1, 178, 2, 0x0a, 20 /* Public */, 18, 2, 181, 2, 0x0a, 22 /* Public */, 23, 1, 186, 2, 0x0a, 25 /* Public */, 25, 0, 189, 2, 0x0a, 27 /* Public */, 26, 1, 190, 2, 0x0a, 28 /* Public */, 27, 1, 193, 2, 0x0a, 30 /* Public */, 28, 0, 196, 2, 0x0a, 32 /* Public */, // methods: name, argc, parameters, tag, flags, initial metatype offsets 29, 2, 197, 2, 0x02, 33 /* Public */, 32, 1, 202, 2, 0x02, 36 /* Public */, 34, 0, 205, 2, 0x02, 38 /* Public */, 35, 0, 206, 2, 0x02, 39 /* Public */, 36, 1, 207, 2, 0x02, 40 /* Public */, 37, 1, 210, 2, 0x02, 42 /* Public */, // signals: parameters QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Void, // slots: parameters QMetaType::Void, QMetaType::Bool, 14, QMetaType::Void, 0x80000000 | 16, 17, QMetaType::Void, 0x80000000 | 19, 0x80000000 | 21, 20, 22, QMetaType::Void, 0x80000000 | 19, 24, QMetaType::Void, QMetaType::Void, 0x80000000 | 19, 24, QMetaType::Void, 0x80000000 | 19, 24, QMetaType::Void, // methods: parameters QMetaType::Void, QMetaType::QString, QMetaType::QString, 30, 31, QMetaType::Void, QMetaType::Int, 33, QMetaType::Void, QMetaType::Void, QMetaType::Void, QMetaType::Int, 33, QMetaType::Bool, 0x80000000 | 19, 20, // properties: name, type, flags 38, QMetaType::Bool, 0x00015103, uint(0), 0, 39, 0x80000000 | 40, 0x00015009, uint(10), 0, 41, QMetaType::QString, 0x00015103, uint(1), 0, 42, QMetaType::QString, 0x00015103, uint(2), 0, 43, QMetaType::QString, 0x00015103, uint(3), 0, 44, QMetaType::QString, 0x00015103, uint(4), 0, 0 // eod }; void AppModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { if (_c == QMetaObject::InvokeMetaMethod) { auto *_t = static_cast(_o); (void)_t; switch (_id) { case 0: _t->readyChanged(); break; case 1: _t->accountChanged(); break; case 2: _t->passwordChanged(); break; case 3: _t->carNameChanged(); break; case 4: _t->driveNameChanged(); break; case 5: _t->sectionTextChanged(); break; case 6: _t->gearChanged(); break; case 7: _t->playAlertSound(); break; case 8: _t->carConnected(); break; case 9: _t->closeWin(); break; case 10: _t->carChanged(); break; case 11: _t->onLoginRst((*reinterpret_cast< std::add_pointer_t>(_a[1]))); break; case 12: _t->onCarAppend((*reinterpret_cast< std::add_pointer_t>(_a[1]))); break; case 13: _t->onNotifyState((*reinterpret_cast< std::add_pointer_t>(_a[1])),(*reinterpret_cast< std::add_pointer_t>(_a[2]))); break; case 14: _t->onNotifyDel((*reinterpret_cast< std::add_pointer_t>(_a[1]))); break; case 15: _t->onKickoff(); break; case 16: _t->onNotifyLeave((*reinterpret_cast< std::add_pointer_t>(_a[1]))); break; case 17: _t->onNotifyFail((*reinterpret_cast< std::add_pointer_t>(_a[1]))); break; case 18: _t->OnClose(); break; case 19: _t->userLogin((*reinterpret_cast< std::add_pointer_t>(_a[1])),(*reinterpret_cast< std::add_pointer_t>(_a[2]))); break; case 20: _t->connectCar((*reinterpret_cast< std::add_pointer_t>(_a[1]))); break; case 21: _t->leaveCar(); break; case 22: _t->logout(); break; case 23: _t->controlCar((*reinterpret_cast< std::add_pointer_t>(_a[1]))); break; case 24: { bool _r = _t->idle((*reinterpret_cast< std::add_pointer_t>(_a[1]))); if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break; default: ; } } else if (_c == QMetaObject::IndexOfMethod) { int *result = reinterpret_cast(_a[0]); { using _t = void (AppModel::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::readyChanged)) { *result = 0; return; } } { using _t = void (AppModel::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::accountChanged)) { *result = 1; return; } } { using _t = void (AppModel::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::passwordChanged)) { *result = 2; return; } } { using _t = void (AppModel::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::carNameChanged)) { *result = 3; return; } } { using _t = void (AppModel::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::driveNameChanged)) { *result = 4; return; } } { using _t = void (AppModel::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::sectionTextChanged)) { *result = 5; return; } } { using _t = void (AppModel::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::gearChanged)) { *result = 6; return; } } { using _t = void (AppModel::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::playAlertSound)) { *result = 7; return; } } { using _t = void (AppModel::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::carConnected)) { *result = 8; return; } } { using _t = void (AppModel::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::closeWin)) { *result = 9; return; } } { using _t = void (AppModel::*)(); if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::carChanged)) { *result = 10; return; } } } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { auto *_t = static_cast(_o); (void)_t; void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< bool*>(_v) = _t->ready(); break; case 1: *reinterpret_cast< QQmlListProperty*>(_v) = _t->car(); break; case 2: *reinterpret_cast< QString*>(_v) = _t->Account(); break; case 3: *reinterpret_cast< QString*>(_v) = _t->Password(); break; case 4: *reinterpret_cast< QString*>(_v) = _t->CarName(); break; case 5: *reinterpret_cast< QString*>(_v) = _t->DriveName(); break; default: break; } } else if (_c == QMetaObject::WriteProperty) { auto *_t = static_cast(_o); (void)_t; void *_v = _a[0]; switch (_id) { case 0: _t->setReady(*reinterpret_cast< bool*>(_v)); break; case 2: _t->setAccount(*reinterpret_cast< QString*>(_v)); break; case 3: _t->setPassword(*reinterpret_cast< QString*>(_v)); break; case 4: _t->setCarName(*reinterpret_cast< QString*>(_v)); break; case 5: _t->setDriveName(*reinterpret_cast< QString*>(_v)); break; default: break; } } else if (_c == QMetaObject::ResetProperty) { } else if (_c == QMetaObject::BindableProperty) { } #endif // QT_NO_PROPERTIES } const QMetaObject AppModel::staticMetaObject = { { QMetaObject::SuperData::link(), qt_meta_stringdata_AppModel.offsetsAndSize, qt_meta_data_AppModel, qt_static_metacall, nullptr, qt_incomplete_metaTypeArray, QtPrivate::TypeAndForceComplete, std::true_type>, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete , QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete , QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete, QtPrivate::TypeAndForceComplete >, nullptr } }; const QMetaObject *AppModel::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *AppModel::qt_metacast(const char *_clname) { if (!_clname) return nullptr; if (!strcmp(_clname, qt_meta_stringdata_AppModel.stringdata0)) return static_cast(this); return QObject::qt_metacast(_clname); } int AppModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 25) qt_static_metacall(this, _c, _id, _a); _id -= 25; } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { if (_id < 25) *reinterpret_cast(_a[0]) = QMetaType(); _id -= 25; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty || _c == QMetaObject::RegisterPropertyMetaType) { qt_static_metacall(this, _c, _id, _a); _id -= 6; } #endif // QT_NO_PROPERTIES return _id; } // SIGNAL 0 void AppModel::readyChanged() { QMetaObject::activate(this, &staticMetaObject, 0, nullptr); } // SIGNAL 1 void AppModel::accountChanged() { QMetaObject::activate(this, &staticMetaObject, 1, nullptr); } // SIGNAL 2 void AppModel::passwordChanged() { QMetaObject::activate(this, &staticMetaObject, 2, nullptr); } // SIGNAL 3 void AppModel::carNameChanged() { QMetaObject::activate(this, &staticMetaObject, 3, nullptr); } // SIGNAL 4 void AppModel::driveNameChanged() { QMetaObject::activate(this, &staticMetaObject, 4, nullptr); } // SIGNAL 5 void AppModel::sectionTextChanged() { QMetaObject::activate(this, &staticMetaObject, 5, nullptr); } // SIGNAL 6 void AppModel::gearChanged() { QMetaObject::activate(this, &staticMetaObject, 6, nullptr); } // SIGNAL 7 void AppModel::playAlertSound() { QMetaObject::activate(this, &staticMetaObject, 7, nullptr); } // SIGNAL 8 void AppModel::carConnected() { QMetaObject::activate(this, &staticMetaObject, 8, nullptr); } // SIGNAL 9 void AppModel::closeWin() { QMetaObject::activate(this, &staticMetaObject, 9, nullptr); } // SIGNAL 10 void AppModel::carChanged() { QMetaObject::activate(this, &staticMetaObject, 10, nullptr); } QT_WARNING_POP QT_END_MOC_NAMESPACE