moc_mainwindow.cpp 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'mainwindow.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 69 (Qt 6.9.3)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "../../../mainwindow.h"
  9. #include <QtCore/qmetatype.h>
  10. #include <QtCore/qtmochelpers.h>
  11. #include <memory>
  12. #include <QtCore/qxptype_traits.h>
  13. #if !defined(Q_MOC_OUTPUT_REVISION)
  14. #error "The header file 'mainwindow.h' doesn't include <QObject>."
  15. #elif Q_MOC_OUTPUT_REVISION != 69
  16. #error "This file was generated using the moc from 6.9.3. It"
  17. #error "cannot be used with the include files from this version of Qt."
  18. #error "(The moc has changed too much.)"
  19. #endif
  20. #ifndef Q_CONSTINIT
  21. #define Q_CONSTINIT
  22. #endif
  23. QT_WARNING_PUSH
  24. QT_WARNING_DISABLE_DEPRECATED
  25. QT_WARNING_DISABLE_GCC("-Wuseless-cast")
  26. namespace {
  27. struct qt_meta_tag_ZN10MainWindowE_t {};
  28. } // unnamed namespace
  29. template <> constexpr inline auto MainWindow::qt_create_metaobjectdata<qt_meta_tag_ZN10MainWindowE_t>()
  30. {
  31. namespace QMC = QtMocConstants;
  32. QtMocHelpers::StringRefStorage qt_stringData {
  33. "MainWindow",
  34. "onConnectClicked",
  35. "",
  36. "onSynthesizeClicked",
  37. "onBrowseRefAudio",
  38. "onConnected",
  39. "onDisconnected",
  40. "onConnectionError",
  41. "error",
  42. "onAudioReceived",
  43. "audioData",
  44. "sampleRate",
  45. "chunkIndex",
  46. "isFirst",
  47. "isLast",
  48. "onSynthesisFinished",
  49. "onVoicesReceived",
  50. "voices",
  51. "onPlayerFinished"
  52. };
  53. QtMocHelpers::UintData qt_methods {
  54. // Slot 'onConnectClicked'
  55. QtMocHelpers::SlotData<void()>(1, 2, QMC::AccessPrivate, QMetaType::Void),
  56. // Slot 'onSynthesizeClicked'
  57. QtMocHelpers::SlotData<void()>(3, 2, QMC::AccessPrivate, QMetaType::Void),
  58. // Slot 'onBrowseRefAudio'
  59. QtMocHelpers::SlotData<void()>(4, 2, QMC::AccessPrivate, QMetaType::Void),
  60. // Slot 'onConnected'
  61. QtMocHelpers::SlotData<void()>(5, 2, QMC::AccessPrivate, QMetaType::Void),
  62. // Slot 'onDisconnected'
  63. QtMocHelpers::SlotData<void()>(6, 2, QMC::AccessPrivate, QMetaType::Void),
  64. // Slot 'onConnectionError'
  65. QtMocHelpers::SlotData<void(const QString &)>(7, 2, QMC::AccessPrivate, QMetaType::Void, {{
  66. { QMetaType::QString, 8 },
  67. }}),
  68. // Slot 'onAudioReceived'
  69. QtMocHelpers::SlotData<void(const QByteArray &, int, int, bool, bool)>(9, 2, QMC::AccessPrivate, QMetaType::Void, {{
  70. { QMetaType::QByteArray, 10 }, { QMetaType::Int, 11 }, { QMetaType::Int, 12 }, { QMetaType::Bool, 13 },
  71. { QMetaType::Bool, 14 },
  72. }}),
  73. // Slot 'onSynthesisFinished'
  74. QtMocHelpers::SlotData<void(int)>(15, 2, QMC::AccessPrivate, QMetaType::Void, {{
  75. { QMetaType::Int, 12 },
  76. }}),
  77. // Slot 'onVoicesReceived'
  78. QtMocHelpers::SlotData<void(const QStringList &)>(16, 2, QMC::AccessPrivate, QMetaType::Void, {{
  79. { QMetaType::QStringList, 17 },
  80. }}),
  81. // Slot 'onPlayerFinished'
  82. QtMocHelpers::SlotData<void()>(18, 2, QMC::AccessPrivate, QMetaType::Void),
  83. };
  84. QtMocHelpers::UintData qt_properties {
  85. };
  86. QtMocHelpers::UintData qt_enums {
  87. };
  88. return QtMocHelpers::metaObjectData<MainWindow, qt_meta_tag_ZN10MainWindowE_t>(QMC::MetaObjectFlag{}, qt_stringData,
  89. qt_methods, qt_properties, qt_enums);
  90. }
  91. Q_CONSTINIT const QMetaObject MainWindow::staticMetaObject = { {
  92. QMetaObject::SuperData::link<QMainWindow::staticMetaObject>(),
  93. qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.stringdata,
  94. qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.data,
  95. qt_static_metacall,
  96. nullptr,
  97. qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10MainWindowE_t>.metaTypes,
  98. nullptr
  99. } };
  100. void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  101. {
  102. auto *_t = static_cast<MainWindow *>(_o);
  103. if (_c == QMetaObject::InvokeMetaMethod) {
  104. switch (_id) {
  105. case 0: _t->onConnectClicked(); break;
  106. case 1: _t->onSynthesizeClicked(); break;
  107. case 2: _t->onBrowseRefAudio(); break;
  108. case 3: _t->onConnected(); break;
  109. case 4: _t->onDisconnected(); break;
  110. case 5: _t->onConnectionError((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
  111. case 6: _t->onAudioReceived((*reinterpret_cast< std::add_pointer_t<QByteArray>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[3])),(*reinterpret_cast< std::add_pointer_t<bool>>(_a[4])),(*reinterpret_cast< std::add_pointer_t<bool>>(_a[5]))); break;
  112. case 7: _t->onSynthesisFinished((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
  113. case 8: _t->onVoicesReceived((*reinterpret_cast< std::add_pointer_t<QStringList>>(_a[1]))); break;
  114. case 9: _t->onPlayerFinished(); break;
  115. default: ;
  116. }
  117. }
  118. }
  119. const QMetaObject *MainWindow::metaObject() const
  120. {
  121. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  122. }
  123. void *MainWindow::qt_metacast(const char *_clname)
  124. {
  125. if (!_clname) return nullptr;
  126. if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10MainWindowE_t>.strings))
  127. return static_cast<void*>(this);
  128. return QMainWindow::qt_metacast(_clname);
  129. }
  130. int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  131. {
  132. _id = QMainWindow::qt_metacall(_c, _id, _a);
  133. if (_id < 0)
  134. return _id;
  135. if (_c == QMetaObject::InvokeMetaMethod) {
  136. if (_id < 10)
  137. qt_static_metacall(this, _c, _id, _a);
  138. _id -= 10;
  139. }
  140. if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  141. if (_id < 10)
  142. *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
  143. _id -= 10;
  144. }
  145. return _id;
  146. }
  147. QT_WARNING_POP