moc_biosworker.cpp 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'biosworker.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.15.2)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include <memory>
  9. #include "../XJKJ_QT/mainwindow/biosworker.h"
  10. #include <QtCore/qbytearray.h>
  11. #include <QtCore/qmetatype.h>
  12. #if !defined(Q_MOC_OUTPUT_REVISION)
  13. #error "The header file 'biosworker.h' doesn't include <QObject>."
  14. #elif Q_MOC_OUTPUT_REVISION != 67
  15. #error "This file was generated using the moc from 5.15.2. It"
  16. #error "cannot be used with the include files from this version of Qt."
  17. #error "(The moc has changed too much.)"
  18. #endif
  19. QT_BEGIN_MOC_NAMESPACE
  20. QT_WARNING_PUSH
  21. QT_WARNING_DISABLE_DEPRECATED
  22. struct qt_meta_stringdata_BiosWorker_t {
  23. QByteArrayData data[8];
  24. char stringdata0[81];
  25. };
  26. #define QT_MOC_LITERAL(idx, ofs, len) \
  27. Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
  28. qptrdiff(offsetof(qt_meta_stringdata_BiosWorker_t, stringdata0) + ofs \
  29. - idx * sizeof(QByteArrayData)) \
  30. )
  31. static const qt_meta_stringdata_BiosWorker_t qt_meta_stringdata_BiosWorker = {
  32. {
  33. QT_MOC_LITERAL(0, 0, 10), // "BiosWorker"
  34. QT_MOC_LITERAL(1, 11, 9), // "signalPID"
  35. QT_MOC_LITERAL(2, 21, 0), // ""
  36. QT_MOC_LITERAL(3, 22, 10), // "openSerial"
  37. QT_MOC_LITERAL(4, 33, 15), // "sendNextCommand"
  38. QT_MOC_LITERAL(5, 49, 14), // "onTestFilePath"
  39. QT_MOC_LITERAL(6, 64, 4), // "path"
  40. QT_MOC_LITERAL(7, 69, 11) // "OnReadyRead"
  41. },
  42. "BiosWorker\0signalPID\0\0openSerial\0"
  43. "sendNextCommand\0onTestFilePath\0path\0"
  44. "OnReadyRead"
  45. };
  46. #undef QT_MOC_LITERAL
  47. static const uint qt_meta_data_BiosWorker[] = {
  48. // content:
  49. 8, // revision
  50. 0, // classname
  51. 0, 0, // classinfo
  52. 5, 14, // methods
  53. 0, 0, // properties
  54. 0, 0, // enums/sets
  55. 0, 0, // constructors
  56. 0, // flags
  57. 1, // signalCount
  58. // signals: name, argc, parameters, tag, flags
  59. 1, 0, 39, 2, 0x06 /* Public */,
  60. // slots: name, argc, parameters, tag, flags
  61. 3, 0, 40, 2, 0x0a /* Public */,
  62. 4, 0, 41, 2, 0x0a /* Public */,
  63. 5, 1, 42, 2, 0x0a /* Public */,
  64. 7, 0, 45, 2, 0x08 /* Private */,
  65. // signals: parameters
  66. QMetaType::Void,
  67. // slots: parameters
  68. QMetaType::Void,
  69. QMetaType::Void,
  70. QMetaType::Void, QMetaType::QString, 6,
  71. QMetaType::Void,
  72. 0 // eod
  73. };
  74. void BiosWorker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  75. {
  76. if (_c == QMetaObject::InvokeMetaMethod) {
  77. auto *_t = static_cast<BiosWorker *>(_o);
  78. Q_UNUSED(_t)
  79. switch (_id) {
  80. case 0: _t->signalPID(); break;
  81. case 1: _t->openSerial(); break;
  82. case 2: _t->sendNextCommand(); break;
  83. case 3: _t->onTestFilePath((*reinterpret_cast< const QString(*)>(_a[1]))); break;
  84. case 4: _t->OnReadyRead(); break;
  85. default: ;
  86. }
  87. } else if (_c == QMetaObject::IndexOfMethod) {
  88. int *result = reinterpret_cast<int *>(_a[0]);
  89. {
  90. using _t = void (BiosWorker::*)();
  91. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&BiosWorker::signalPID)) {
  92. *result = 0;
  93. return;
  94. }
  95. }
  96. }
  97. }
  98. QT_INIT_METAOBJECT const QMetaObject BiosWorker::staticMetaObject = { {
  99. QMetaObject::SuperData::link<QObject::staticMetaObject>(),
  100. qt_meta_stringdata_BiosWorker.data,
  101. qt_meta_data_BiosWorker,
  102. qt_static_metacall,
  103. nullptr,
  104. nullptr
  105. } };
  106. const QMetaObject *BiosWorker::metaObject() const
  107. {
  108. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  109. }
  110. void *BiosWorker::qt_metacast(const char *_clname)
  111. {
  112. if (!_clname) return nullptr;
  113. if (!strcmp(_clname, qt_meta_stringdata_BiosWorker.stringdata0))
  114. return static_cast<void*>(this);
  115. return QObject::qt_metacast(_clname);
  116. }
  117. int BiosWorker::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  118. {
  119. _id = QObject::qt_metacall(_c, _id, _a);
  120. if (_id < 0)
  121. return _id;
  122. if (_c == QMetaObject::InvokeMetaMethod) {
  123. if (_id < 5)
  124. qt_static_metacall(this, _c, _id, _a);
  125. _id -= 5;
  126. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  127. if (_id < 5)
  128. *reinterpret_cast<int*>(_a[0]) = -1;
  129. _id -= 5;
  130. }
  131. return _id;
  132. }
  133. // SIGNAL 0
  134. void BiosWorker::signalPID()
  135. {
  136. QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
  137. }
  138. QT_WARNING_POP
  139. QT_END_MOC_NAMESPACE