moc_readthread.cpp 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'readthread.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 "../readthread.h"
  10. #include <QtCore/qbytearray.h>
  11. #include <QtCore/qmetatype.h>
  12. #if !defined(Q_MOC_OUTPUT_REVISION)
  13. #error "The header file 'readthread.h' doesn't include <QObject>."
  14. #elif Q_MOC_OUTPUT_REVISION != 68
  15. #error "This file was generated using the moc from 6.2.4. 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_ReadThread_t {
  23. const uint offsetsAndSize[24];
  24. char stringdata0[84];
  25. };
  26. #define QT_MOC_LITERAL(ofs, len) \
  27. uint(offsetof(qt_meta_stringdata_ReadThread_t, stringdata0) + ofs), len
  28. static const qt_meta_stringdata_ReadThread_t qt_meta_stringdata_ReadThread = {
  29. {
  30. QT_MOC_LITERAL(0, 10), // "ReadThread"
  31. QT_MOC_LITERAL(11, 11), // "updateImage"
  32. QT_MOC_LITERAL(23, 0), // ""
  33. QT_MOC_LITERAL(24, 5), // "image"
  34. QT_MOC_LITERAL(30, 9), // "playState"
  35. QT_MOC_LITERAL(40, 9), // "PlayState"
  36. QT_MOC_LITERAL(50, 5), // "state"
  37. QT_MOC_LITERAL(56, 7), // "setPath"
  38. QT_MOC_LITERAL(64, 4), // "path"
  39. QT_MOC_LITERAL(69, 4), // "open"
  40. QT_MOC_LITERAL(74, 3), // "url"
  41. QT_MOC_LITERAL(78, 5) // "close"
  42. },
  43. "ReadThread\0updateImage\0\0image\0playState\0"
  44. "PlayState\0state\0setPath\0path\0open\0url\0"
  45. "close"
  46. };
  47. #undef QT_MOC_LITERAL
  48. static const uint qt_meta_data_ReadThread[] = {
  49. // content:
  50. 10, // revision
  51. 0, // classname
  52. 0, 0, // classinfo
  53. 6, 14, // methods
  54. 0, 0, // properties
  55. 0, 0, // enums/sets
  56. 0, 0, // constructors
  57. 0, // flags
  58. 2, // signalCount
  59. // signals: name, argc, parameters, tag, flags, initial metatype offsets
  60. 1, 1, 50, 2, 0x06, 1 /* Public */,
  61. 4, 1, 53, 2, 0x06, 3 /* Public */,
  62. // methods: name, argc, parameters, tag, flags, initial metatype offsets
  63. 7, 1, 56, 2, 0x02, 5 /* Public */,
  64. 9, 1, 59, 2, 0x02, 7 /* Public */,
  65. 9, 0, 62, 2, 0x22, 9 /* Public | MethodCloned */,
  66. 11, 0, 63, 2, 0x02, 10 /* Public */,
  67. // signals: parameters
  68. QMetaType::Void, QMetaType::QImage, 3,
  69. QMetaType::Void, 0x80000000 | 5, 6,
  70. // methods: parameters
  71. QMetaType::Void, QMetaType::QString, 8,
  72. QMetaType::Void, QMetaType::QString, 10,
  73. QMetaType::Void,
  74. QMetaType::Void,
  75. 0 // eod
  76. };
  77. void ReadThread::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  78. {
  79. if (_c == QMetaObject::InvokeMetaMethod) {
  80. auto *_t = static_cast<ReadThread *>(_o);
  81. (void)_t;
  82. switch (_id) {
  83. case 0: _t->updateImage((*reinterpret_cast< std::add_pointer_t<QImage>>(_a[1]))); break;
  84. case 1: _t->playState((*reinterpret_cast< std::add_pointer_t<PlayState>>(_a[1]))); break;
  85. case 2: _t->setPath((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
  86. case 3: _t->open((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
  87. case 4: _t->open(); break;
  88. case 5: _t->close(); break;
  89. default: ;
  90. }
  91. } else if (_c == QMetaObject::IndexOfMethod) {
  92. int *result = reinterpret_cast<int *>(_a[0]);
  93. {
  94. using _t = void (ReadThread::*)(const QImage & );
  95. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ReadThread::updateImage)) {
  96. *result = 0;
  97. return;
  98. }
  99. }
  100. {
  101. using _t = void (ReadThread::*)(PlayState );
  102. if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&ReadThread::playState)) {
  103. *result = 1;
  104. return;
  105. }
  106. }
  107. }
  108. }
  109. const QMetaObject ReadThread::staticMetaObject = { {
  110. QMetaObject::SuperData::link<QThread::staticMetaObject>(),
  111. qt_meta_stringdata_ReadThread.offsetsAndSize,
  112. qt_meta_data_ReadThread,
  113. qt_static_metacall,
  114. nullptr,
  115. qt_incomplete_metaTypeArray<qt_meta_stringdata_ReadThread_t
  116. , QtPrivate::TypeAndForceComplete<ReadThread, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QImage &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<PlayState, std::false_type>
  117. , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
  118. >,
  119. nullptr
  120. } };
  121. const QMetaObject *ReadThread::metaObject() const
  122. {
  123. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  124. }
  125. void *ReadThread::qt_metacast(const char *_clname)
  126. {
  127. if (!_clname) return nullptr;
  128. if (!strcmp(_clname, qt_meta_stringdata_ReadThread.stringdata0))
  129. return static_cast<void*>(this);
  130. return QThread::qt_metacast(_clname);
  131. }
  132. int ReadThread::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  133. {
  134. _id = QThread::qt_metacall(_c, _id, _a);
  135. if (_id < 0)
  136. return _id;
  137. if (_c == QMetaObject::InvokeMetaMethod) {
  138. if (_id < 6)
  139. qt_static_metacall(this, _c, _id, _a);
  140. _id -= 6;
  141. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  142. if (_id < 6)
  143. *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
  144. _id -= 6;
  145. }
  146. return _id;
  147. }
  148. // SIGNAL 0
  149. void ReadThread::updateImage(const QImage & _t1)
  150. {
  151. void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
  152. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  153. }
  154. // SIGNAL 1
  155. void ReadThread::playState(PlayState _t1)
  156. {
  157. void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
  158. QMetaObject::activate(this, &staticMetaObject, 1, _a);
  159. }
  160. QT_WARNING_POP
  161. QT_END_MOC_NAMESPACE