moc_appmodel.cpp 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'appmodel.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.2.4)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include <memory>
  9. #include "../appmodel.h"
  10. #include <QtGui/qtextcursor.h>
  11. #include <QScreen>
  12. #include <QtCore/qbytearray.h>
  13. #include <QtCore/qmetatype.h>
  14. #if !defined(Q_MOC_OUTPUT_REVISION)
  15. #error "The header file 'appmodel.h' doesn't include <QObject>."
  16. #elif Q_MOC_OUTPUT_REVISION != 68
  17. #error "This file was generated using the moc from 6.2.4. It"
  18. #error "cannot be used with the include files from this version of Qt."
  19. #error "(The moc has changed too much.)"
  20. #endif
  21. QT_BEGIN_MOC_NAMESPACE
  22. QT_WARNING_PUSH
  23. QT_WARNING_DISABLE_DEPRECATED
  24. struct qt_meta_stringdata_CarData_t {
  25. const uint offsetsAndSize[16];
  26. char stringdata0[49];
  27. };
  28. #define QT_MOC_LITERAL(ofs, len) \
  29. uint(offsetof(qt_meta_stringdata_CarData_t, stringdata0) + ofs), len
  30. static const qt_meta_stringdata_CarData_t qt_meta_stringdata_CarData = {
  31. {
  32. QT_MOC_LITERAL(0, 7), // "CarData"
  33. QT_MOC_LITERAL(8, 11), // "dataChanged"
  34. QT_MOC_LITERAL(20, 0), // ""
  35. QT_MOC_LITERAL(21, 3), // "uid"
  36. QT_MOC_LITERAL(25, 7), // "int32_t"
  37. QT_MOC_LITERAL(33, 4), // "name"
  38. QT_MOC_LITERAL(38, 4), // "type"
  39. QT_MOC_LITERAL(43, 5) // "state"
  40. },
  41. "CarData\0dataChanged\0\0uid\0int32_t\0name\0"
  42. "type\0state"
  43. };
  44. #undef QT_MOC_LITERAL
  45. static const uint qt_meta_data_CarData[] = {
  46. // content:
  47. 10, // revision
  48. 0, // classname
  49. 0, 0, // classinfo
  50. 1, 14, // methods
  51. 4, 21, // properties
  52. 0, 0, // enums/sets
  53. 0, 0, // constructors
  54. 0, // flags
  55. 1, // signalCount
  56. // signals: name, argc, parameters, tag, flags, initial metatype offsets
  57. 1, 0, 20, 2, 0x06, 5 /* Public */,
  58. // signals: parameters
  59. QMetaType::Void,
  60. // properties: name, type, flags
  61. 3, 0x80000000 | 4, 0x0001510b, uint(0), 0,
  62. 5, QMetaType::QString, 0x00015103, uint(0), 0,
  63. 6, QMetaType::QString, 0x00015103, uint(0), 0,
  64. 7, QMetaType::QString, 0x00015103, uint(0), 0,
  65. 0 // eod
  66. };
  67. void CarData::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  68. {
  69. if (_c == QMetaObject::InvokeMetaMethod) {
  70. auto *_t = static_cast<CarData *>(_o);
  71. (void)_t;
  72. switch (_id) {
  73. case 0: _t->dataChanged(); break;
  74. default: ;
  75. }
  76. } else if (_c == QMetaObject::IndexOfMethod) {
  77. int *result = reinterpret_cast<int *>(_a[0]);
  78. {
  79. using _t = void (CarData::*)();
  80. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CarData::dataChanged)) {
  81. *result = 0;
  82. return;
  83. }
  84. }
  85. }
  86. #ifndef QT_NO_PROPERTIES
  87. else if (_c == QMetaObject::ReadProperty) {
  88. auto *_t = static_cast<CarData *>(_o);
  89. (void)_t;
  90. void *_v = _a[0];
  91. switch (_id) {
  92. case 0: *reinterpret_cast< int32_t*>(_v) = _t->uid(); break;
  93. case 1: *reinterpret_cast< QString*>(_v) = _t->name(); break;
  94. case 2: *reinterpret_cast< QString*>(_v) = _t->type(); break;
  95. case 3: *reinterpret_cast< QString*>(_v) = _t->state(); break;
  96. default: break;
  97. }
  98. } else if (_c == QMetaObject::WriteProperty) {
  99. auto *_t = static_cast<CarData *>(_o);
  100. (void)_t;
  101. void *_v = _a[0];
  102. switch (_id) {
  103. case 0: _t->setUid(*reinterpret_cast< int32_t*>(_v)); break;
  104. case 1: _t->setName(*reinterpret_cast< QString*>(_v)); break;
  105. case 2: _t->setType(*reinterpret_cast< QString*>(_v)); break;
  106. case 3: _t->setState(*reinterpret_cast< QString*>(_v)); break;
  107. default: break;
  108. }
  109. } else if (_c == QMetaObject::ResetProperty) {
  110. } else if (_c == QMetaObject::BindableProperty) {
  111. }
  112. #endif // QT_NO_PROPERTIES
  113. (void)_a;
  114. }
  115. const QMetaObject CarData::staticMetaObject = { {
  116. QMetaObject::SuperData::link<QObject::staticMetaObject>(),
  117. qt_meta_stringdata_CarData.offsetsAndSize,
  118. qt_meta_data_CarData,
  119. qt_static_metacall,
  120. nullptr,
  121. qt_incomplete_metaTypeArray<qt_meta_stringdata_CarData_t
  122. , QtPrivate::TypeAndForceComplete<int32_t, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<CarData, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
  123. >,
  124. nullptr
  125. } };
  126. const QMetaObject *CarData::metaObject() const
  127. {
  128. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  129. }
  130. void *CarData::qt_metacast(const char *_clname)
  131. {
  132. if (!_clname) return nullptr;
  133. if (!strcmp(_clname, qt_meta_stringdata_CarData.stringdata0))
  134. return static_cast<void*>(this);
  135. return QObject::qt_metacast(_clname);
  136. }
  137. int CarData::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  138. {
  139. _id = QObject::qt_metacall(_c, _id, _a);
  140. if (_id < 0)
  141. return _id;
  142. if (_c == QMetaObject::InvokeMetaMethod) {
  143. if (_id < 1)
  144. qt_static_metacall(this, _c, _id, _a);
  145. _id -= 1;
  146. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  147. if (_id < 1)
  148. *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
  149. _id -= 1;
  150. }
  151. #ifndef QT_NO_PROPERTIES
  152. else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
  153. || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
  154. || _c == QMetaObject::RegisterPropertyMetaType) {
  155. qt_static_metacall(this, _c, _id, _a);
  156. _id -= 4;
  157. }
  158. #endif // QT_NO_PROPERTIES
  159. return _id;
  160. }
  161. // SIGNAL 0
  162. void CarData::dataChanged()
  163. {
  164. QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
  165. }
  166. struct qt_meta_stringdata_AppModel_t {
  167. const uint offsetsAndSize[90];
  168. char stringdata0[456];
  169. };
  170. #define QT_MOC_LITERAL(ofs, len) \
  171. uint(offsetof(qt_meta_stringdata_AppModel_t, stringdata0) + ofs), len
  172. static const qt_meta_stringdata_AppModel_t qt_meta_stringdata_AppModel = {
  173. {
  174. QT_MOC_LITERAL(0, 8), // "AppModel"
  175. QT_MOC_LITERAL(9, 12), // "readyChanged"
  176. QT_MOC_LITERAL(22, 0), // ""
  177. QT_MOC_LITERAL(23, 14), // "accountChanged"
  178. QT_MOC_LITERAL(38, 15), // "passwordChanged"
  179. QT_MOC_LITERAL(54, 14), // "carNameChanged"
  180. QT_MOC_LITERAL(69, 16), // "driveNameChanged"
  181. QT_MOC_LITERAL(86, 18), // "sectionTextChanged"
  182. QT_MOC_LITERAL(105, 11), // "gearChanged"
  183. QT_MOC_LITERAL(117, 14), // "playAlertSound"
  184. QT_MOC_LITERAL(132, 12), // "carConnected"
  185. QT_MOC_LITERAL(145, 8), // "closeWin"
  186. QT_MOC_LITERAL(154, 10), // "carChanged"
  187. QT_MOC_LITERAL(165, 10), // "onLoginRst"
  188. QT_MOC_LITERAL(176, 3), // "rst"
  189. QT_MOC_LITERAL(180, 11), // "onCarAppend"
  190. QT_MOC_LITERAL(192, 10), // "UserDriver"
  191. QT_MOC_LITERAL(203, 4), // "info"
  192. QT_MOC_LITERAL(208, 13), // "onNotifyState"
  193. QT_MOC_LITERAL(222, 7), // "int32_t"
  194. QT_MOC_LITERAL(230, 3), // "uid"
  195. QT_MOC_LITERAL(234, 9), // "UserState"
  196. QT_MOC_LITERAL(244, 5), // "state"
  197. QT_MOC_LITERAL(250, 11), // "onNotifyDel"
  198. QT_MOC_LITERAL(262, 4), // "peer"
  199. QT_MOC_LITERAL(267, 9), // "onKickoff"
  200. QT_MOC_LITERAL(277, 13), // "onNotifyLeave"
  201. QT_MOC_LITERAL(291, 12), // "onNotifyFail"
  202. QT_MOC_LITERAL(304, 7), // "OnClose"
  203. QT_MOC_LITERAL(312, 9), // "userLogin"
  204. QT_MOC_LITERAL(322, 7), // "useName"
  205. QT_MOC_LITERAL(330, 8), // "password"
  206. QT_MOC_LITERAL(339, 10), // "connectCar"
  207. QT_MOC_LITERAL(350, 2), // "id"
  208. QT_MOC_LITERAL(353, 8), // "leaveCar"
  209. QT_MOC_LITERAL(362, 6), // "logout"
  210. QT_MOC_LITERAL(369, 10), // "controlCar"
  211. QT_MOC_LITERAL(380, 4), // "idle"
  212. QT_MOC_LITERAL(385, 5), // "ready"
  213. QT_MOC_LITERAL(391, 3), // "car"
  214. QT_MOC_LITERAL(395, 25), // "QQmlListProperty<CarData>"
  215. QT_MOC_LITERAL(421, 7), // "Account"
  216. QT_MOC_LITERAL(429, 8), // "Password"
  217. QT_MOC_LITERAL(438, 7), // "CarName"
  218. QT_MOC_LITERAL(446, 9) // "DriveName"
  219. },
  220. "AppModel\0readyChanged\0\0accountChanged\0"
  221. "passwordChanged\0carNameChanged\0"
  222. "driveNameChanged\0sectionTextChanged\0"
  223. "gearChanged\0playAlertSound\0carConnected\0"
  224. "closeWin\0carChanged\0onLoginRst\0rst\0"
  225. "onCarAppend\0UserDriver\0info\0onNotifyState\0"
  226. "int32_t\0uid\0UserState\0state\0onNotifyDel\0"
  227. "peer\0onKickoff\0onNotifyLeave\0onNotifyFail\0"
  228. "OnClose\0userLogin\0useName\0password\0"
  229. "connectCar\0id\0leaveCar\0logout\0controlCar\0"
  230. "idle\0ready\0car\0QQmlListProperty<CarData>\0"
  231. "Account\0Password\0CarName\0DriveName"
  232. };
  233. #undef QT_MOC_LITERAL
  234. static const uint qt_meta_data_AppModel[] = {
  235. // content:
  236. 10, // revision
  237. 0, // classname
  238. 0, 0, // classinfo
  239. 25, 14, // methods
  240. 6, 213, // properties
  241. 0, 0, // enums/sets
  242. 0, 0, // constructors
  243. 0, // flags
  244. 11, // signalCount
  245. // signals: name, argc, parameters, tag, flags, initial metatype offsets
  246. 1, 0, 164, 2, 0x06, 7 /* Public */,
  247. 3, 0, 165, 2, 0x06, 8 /* Public */,
  248. 4, 0, 166, 2, 0x06, 9 /* Public */,
  249. 5, 0, 167, 2, 0x06, 10 /* Public */,
  250. 6, 0, 168, 2, 0x06, 11 /* Public */,
  251. 7, 0, 169, 2, 0x06, 12 /* Public */,
  252. 8, 0, 170, 2, 0x06, 13 /* Public */,
  253. 9, 0, 171, 2, 0x06, 14 /* Public */,
  254. 10, 0, 172, 2, 0x06, 15 /* Public */,
  255. 11, 0, 173, 2, 0x06, 16 /* Public */,
  256. 12, 0, 174, 2, 0x06, 17 /* Public */,
  257. // slots: name, argc, parameters, tag, flags, initial metatype offsets
  258. 13, 1, 175, 2, 0x0a, 18 /* Public */,
  259. 15, 1, 178, 2, 0x0a, 20 /* Public */,
  260. 18, 2, 181, 2, 0x0a, 22 /* Public */,
  261. 23, 1, 186, 2, 0x0a, 25 /* Public */,
  262. 25, 0, 189, 2, 0x0a, 27 /* Public */,
  263. 26, 1, 190, 2, 0x0a, 28 /* Public */,
  264. 27, 1, 193, 2, 0x0a, 30 /* Public */,
  265. 28, 0, 196, 2, 0x0a, 32 /* Public */,
  266. // methods: name, argc, parameters, tag, flags, initial metatype offsets
  267. 29, 2, 197, 2, 0x02, 33 /* Public */,
  268. 32, 1, 202, 2, 0x02, 36 /* Public */,
  269. 34, 0, 205, 2, 0x02, 38 /* Public */,
  270. 35, 0, 206, 2, 0x02, 39 /* Public */,
  271. 36, 1, 207, 2, 0x02, 40 /* Public */,
  272. 37, 1, 210, 2, 0x02, 42 /* Public */,
  273. // signals: parameters
  274. QMetaType::Void,
  275. QMetaType::Void,
  276. QMetaType::Void,
  277. QMetaType::Void,
  278. QMetaType::Void,
  279. QMetaType::Void,
  280. QMetaType::Void,
  281. QMetaType::Void,
  282. QMetaType::Void,
  283. QMetaType::Void,
  284. QMetaType::Void,
  285. // slots: parameters
  286. QMetaType::Void, QMetaType::Bool, 14,
  287. QMetaType::Void, 0x80000000 | 16, 17,
  288. QMetaType::Void, 0x80000000 | 19, 0x80000000 | 21, 20, 22,
  289. QMetaType::Void, 0x80000000 | 19, 24,
  290. QMetaType::Void,
  291. QMetaType::Void, 0x80000000 | 19, 24,
  292. QMetaType::Void, 0x80000000 | 19, 24,
  293. QMetaType::Void,
  294. // methods: parameters
  295. QMetaType::Void, QMetaType::QString, QMetaType::QString, 30, 31,
  296. QMetaType::Void, QMetaType::Int, 33,
  297. QMetaType::Void,
  298. QMetaType::Void,
  299. QMetaType::Void, QMetaType::Int, 33,
  300. QMetaType::Bool, 0x80000000 | 19, 20,
  301. // properties: name, type, flags
  302. 38, QMetaType::Bool, 0x00015103, uint(0), 0,
  303. 39, 0x80000000 | 40, 0x00015009, uint(10), 0,
  304. 41, QMetaType::QString, 0x00015103, uint(1), 0,
  305. 42, QMetaType::QString, 0x00015103, uint(2), 0,
  306. 43, QMetaType::QString, 0x00015103, uint(3), 0,
  307. 44, QMetaType::QString, 0x00015103, uint(4), 0,
  308. 0 // eod
  309. };
  310. void AppModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  311. {
  312. if (_c == QMetaObject::InvokeMetaMethod) {
  313. auto *_t = static_cast<AppModel *>(_o);
  314. (void)_t;
  315. switch (_id) {
  316. case 0: _t->readyChanged(); break;
  317. case 1: _t->accountChanged(); break;
  318. case 2: _t->passwordChanged(); break;
  319. case 3: _t->carNameChanged(); break;
  320. case 4: _t->driveNameChanged(); break;
  321. case 5: _t->sectionTextChanged(); break;
  322. case 6: _t->gearChanged(); break;
  323. case 7: _t->playAlertSound(); break;
  324. case 8: _t->carConnected(); break;
  325. case 9: _t->closeWin(); break;
  326. case 10: _t->carChanged(); break;
  327. case 11: _t->onLoginRst((*reinterpret_cast< std::add_pointer_t<bool>>(_a[1]))); break;
  328. case 12: _t->onCarAppend((*reinterpret_cast< std::add_pointer_t<UserDriver>>(_a[1]))); break;
  329. case 13: _t->onNotifyState((*reinterpret_cast< std::add_pointer_t<int32_t>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<UserState>>(_a[2]))); break;
  330. case 14: _t->onNotifyDel((*reinterpret_cast< std::add_pointer_t<int32_t>>(_a[1]))); break;
  331. case 15: _t->onKickoff(); break;
  332. case 16: _t->onNotifyLeave((*reinterpret_cast< std::add_pointer_t<int32_t>>(_a[1]))); break;
  333. case 17: _t->onNotifyFail((*reinterpret_cast< std::add_pointer_t<int32_t>>(_a[1]))); break;
  334. case 18: _t->OnClose(); break;
  335. case 19: _t->userLogin((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<QString>>(_a[2]))); break;
  336. case 20: _t->connectCar((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
  337. case 21: _t->leaveCar(); break;
  338. case 22: _t->logout(); break;
  339. case 23: _t->controlCar((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
  340. case 24: { bool _r = _t->idle((*reinterpret_cast< std::add_pointer_t<int32_t>>(_a[1])));
  341. if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
  342. default: ;
  343. }
  344. } else if (_c == QMetaObject::IndexOfMethod) {
  345. int *result = reinterpret_cast<int *>(_a[0]);
  346. {
  347. using _t = void (AppModel::*)();
  348. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::readyChanged)) {
  349. *result = 0;
  350. return;
  351. }
  352. }
  353. {
  354. using _t = void (AppModel::*)();
  355. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::accountChanged)) {
  356. *result = 1;
  357. return;
  358. }
  359. }
  360. {
  361. using _t = void (AppModel::*)();
  362. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::passwordChanged)) {
  363. *result = 2;
  364. return;
  365. }
  366. }
  367. {
  368. using _t = void (AppModel::*)();
  369. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::carNameChanged)) {
  370. *result = 3;
  371. return;
  372. }
  373. }
  374. {
  375. using _t = void (AppModel::*)();
  376. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::driveNameChanged)) {
  377. *result = 4;
  378. return;
  379. }
  380. }
  381. {
  382. using _t = void (AppModel::*)();
  383. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::sectionTextChanged)) {
  384. *result = 5;
  385. return;
  386. }
  387. }
  388. {
  389. using _t = void (AppModel::*)();
  390. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::gearChanged)) {
  391. *result = 6;
  392. return;
  393. }
  394. }
  395. {
  396. using _t = void (AppModel::*)();
  397. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::playAlertSound)) {
  398. *result = 7;
  399. return;
  400. }
  401. }
  402. {
  403. using _t = void (AppModel::*)();
  404. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::carConnected)) {
  405. *result = 8;
  406. return;
  407. }
  408. }
  409. {
  410. using _t = void (AppModel::*)();
  411. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::closeWin)) {
  412. *result = 9;
  413. return;
  414. }
  415. }
  416. {
  417. using _t = void (AppModel::*)();
  418. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&AppModel::carChanged)) {
  419. *result = 10;
  420. return;
  421. }
  422. }
  423. }
  424. #ifndef QT_NO_PROPERTIES
  425. else if (_c == QMetaObject::ReadProperty) {
  426. auto *_t = static_cast<AppModel *>(_o);
  427. (void)_t;
  428. void *_v = _a[0];
  429. switch (_id) {
  430. case 0: *reinterpret_cast< bool*>(_v) = _t->ready(); break;
  431. case 1: *reinterpret_cast< QQmlListProperty<CarData>*>(_v) = _t->car(); break;
  432. case 2: *reinterpret_cast< QString*>(_v) = _t->Account(); break;
  433. case 3: *reinterpret_cast< QString*>(_v) = _t->Password(); break;
  434. case 4: *reinterpret_cast< QString*>(_v) = _t->CarName(); break;
  435. case 5: *reinterpret_cast< QString*>(_v) = _t->DriveName(); break;
  436. default: break;
  437. }
  438. } else if (_c == QMetaObject::WriteProperty) {
  439. auto *_t = static_cast<AppModel *>(_o);
  440. (void)_t;
  441. void *_v = _a[0];
  442. switch (_id) {
  443. case 0: _t->setReady(*reinterpret_cast< bool*>(_v)); break;
  444. case 2: _t->setAccount(*reinterpret_cast< QString*>(_v)); break;
  445. case 3: _t->setPassword(*reinterpret_cast< QString*>(_v)); break;
  446. case 4: _t->setCarName(*reinterpret_cast< QString*>(_v)); break;
  447. case 5: _t->setDriveName(*reinterpret_cast< QString*>(_v)); break;
  448. default: break;
  449. }
  450. } else if (_c == QMetaObject::ResetProperty) {
  451. } else if (_c == QMetaObject::BindableProperty) {
  452. }
  453. #endif // QT_NO_PROPERTIES
  454. }
  455. const QMetaObject AppModel::staticMetaObject = { {
  456. QMetaObject::SuperData::link<QObject::staticMetaObject>(),
  457. qt_meta_stringdata_AppModel.offsetsAndSize,
  458. qt_meta_data_AppModel,
  459. qt_static_metacall,
  460. nullptr,
  461. qt_incomplete_metaTypeArray<qt_meta_stringdata_AppModel_t
  462. , QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<QQmlListProperty<CarData>, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<AppModel, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
  463. , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const UserDriver &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int32_t, std::false_type>, QtPrivate::TypeAndForceComplete<UserState, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int32_t, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int32_t, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int32_t, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
  464. , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QString, std::false_type>, QtPrivate::TypeAndForceComplete<QString, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<int32_t, std::false_type>
  465. >,
  466. nullptr
  467. } };
  468. const QMetaObject *AppModel::metaObject() const
  469. {
  470. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  471. }
  472. void *AppModel::qt_metacast(const char *_clname)
  473. {
  474. if (!_clname) return nullptr;
  475. if (!strcmp(_clname, qt_meta_stringdata_AppModel.stringdata0))
  476. return static_cast<void*>(this);
  477. return QObject::qt_metacast(_clname);
  478. }
  479. int AppModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  480. {
  481. _id = QObject::qt_metacall(_c, _id, _a);
  482. if (_id < 0)
  483. return _id;
  484. if (_c == QMetaObject::InvokeMetaMethod) {
  485. if (_id < 25)
  486. qt_static_metacall(this, _c, _id, _a);
  487. _id -= 25;
  488. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  489. if (_id < 25)
  490. *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
  491. _id -= 25;
  492. }
  493. #ifndef QT_NO_PROPERTIES
  494. else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
  495. || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
  496. || _c == QMetaObject::RegisterPropertyMetaType) {
  497. qt_static_metacall(this, _c, _id, _a);
  498. _id -= 6;
  499. }
  500. #endif // QT_NO_PROPERTIES
  501. return _id;
  502. }
  503. // SIGNAL 0
  504. void AppModel::readyChanged()
  505. {
  506. QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
  507. }
  508. // SIGNAL 1
  509. void AppModel::accountChanged()
  510. {
  511. QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
  512. }
  513. // SIGNAL 2
  514. void AppModel::passwordChanged()
  515. {
  516. QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
  517. }
  518. // SIGNAL 3
  519. void AppModel::carNameChanged()
  520. {
  521. QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
  522. }
  523. // SIGNAL 4
  524. void AppModel::driveNameChanged()
  525. {
  526. QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
  527. }
  528. // SIGNAL 5
  529. void AppModel::sectionTextChanged()
  530. {
  531. QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
  532. }
  533. // SIGNAL 6
  534. void AppModel::gearChanged()
  535. {
  536. QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
  537. }
  538. // SIGNAL 7
  539. void AppModel::playAlertSound()
  540. {
  541. QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
  542. }
  543. // SIGNAL 8
  544. void AppModel::carConnected()
  545. {
  546. QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
  547. }
  548. // SIGNAL 9
  549. void AppModel::closeWin()
  550. {
  551. QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
  552. }
  553. // SIGNAL 10
  554. void AppModel::carChanged()
  555. {
  556. QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
  557. }
  558. QT_WARNING_POP
  559. QT_END_MOC_NAMESPACE