奥特QT DDS 插件库
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

196 rindas
6.7KB

  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'PluginLoader.hpp'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.8.1)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "../../../PluginLoader.hpp"
  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 'PluginLoader.hpp' doesn't include <QObject>."
  15. #elif Q_MOC_OUTPUT_REVISION != 68
  16. #error "This file was generated using the moc from 6.8.1. 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_ZN12PluginLoaderE_t {};
  28. } // unnamed namespace
  29. #ifdef QT_MOC_HAS_STRINGDATA
  30. static constexpr auto qt_meta_stringdata_ZN12PluginLoaderE = QtMocHelpers::stringData(
  31. "PluginLoader",
  32. "messagePublished",
  33. "",
  34. "message",
  35. "index",
  36. "error",
  37. "errorString",
  38. "loadPlugin",
  39. "path",
  40. "unloadPlugin"
  41. );
  42. #else // !QT_MOC_HAS_STRINGDATA
  43. #error "qtmochelpers.h not found or too old."
  44. #endif // !QT_MOC_HAS_STRINGDATA
  45. Q_CONSTINIT static const uint qt_meta_data_ZN12PluginLoaderE[] = {
  46. // content:
  47. 12, // revision
  48. 0, // classname
  49. 0, 0, // classinfo
  50. 5, 14, // methods
  51. 0, 0, // properties
  52. 0, 0, // enums/sets
  53. 0, 0, // constructors
  54. 0, // flags
  55. 2, // signalCount
  56. // signals: name, argc, parameters, tag, flags, initial metatype offsets
  57. 1, 2, 44, 2, 0x06, 1 /* Public */,
  58. 5, 1, 49, 2, 0x06, 4 /* Public */,
  59. // methods: name, argc, parameters, tag, flags, initial metatype offsets
  60. 7, 1, 52, 2, 0x02, 6 /* Public */,
  61. 9, 0, 55, 2, 0x02, 8 /* Public */,
  62. 6, 0, 56, 2, 0x102, 9 /* Public | MethodIsConst */,
  63. // signals: parameters
  64. QMetaType::Void, QMetaType::QString, QMetaType::Int, 3, 4,
  65. QMetaType::Void, QMetaType::QString, 6,
  66. // methods: parameters
  67. QMetaType::QObjectStar, QMetaType::QString, 8,
  68. QMetaType::Bool,
  69. QMetaType::QString,
  70. 0 // eod
  71. };
  72. Q_CONSTINIT const QMetaObject PluginLoader::staticMetaObject = { {
  73. QMetaObject::SuperData::link<QObject::staticMetaObject>(),
  74. qt_meta_stringdata_ZN12PluginLoaderE.offsetsAndSizes,
  75. qt_meta_data_ZN12PluginLoaderE,
  76. qt_static_metacall,
  77. nullptr,
  78. qt_incomplete_metaTypeArray<qt_meta_tag_ZN12PluginLoaderE_t,
  79. // Q_OBJECT / Q_GADGET
  80. QtPrivate::TypeAndForceComplete<PluginLoader, std::true_type>,
  81. // method 'messagePublished'
  82. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  83. QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
  84. QtPrivate::TypeAndForceComplete<int, std::false_type>,
  85. // method 'error'
  86. QtPrivate::TypeAndForceComplete<void, std::false_type>,
  87. QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
  88. // method 'loadPlugin'
  89. QtPrivate::TypeAndForceComplete<QObject *, std::false_type>,
  90. QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
  91. // method 'unloadPlugin'
  92. QtPrivate::TypeAndForceComplete<bool, std::false_type>,
  93. // method 'errorString'
  94. QtPrivate::TypeAndForceComplete<QString, std::false_type>
  95. >,
  96. nullptr
  97. } };
  98. void PluginLoader::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  99. {
  100. auto *_t = static_cast<PluginLoader *>(_o);
  101. if (_c == QMetaObject::InvokeMetaMethod) {
  102. switch (_id) {
  103. case 0: _t->messagePublished((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])),(*reinterpret_cast< std::add_pointer_t<int>>(_a[2]))); break;
  104. case 1: _t->error((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
  105. case 2: { QObject* _r = _t->loadPlugin((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1])));
  106. if (_a[0]) *reinterpret_cast< QObject**>(_a[0]) = std::move(_r); } break;
  107. case 3: { bool _r = _t->unloadPlugin();
  108. if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
  109. case 4: { QString _r = _t->errorString();
  110. if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); } break;
  111. default: ;
  112. }
  113. }
  114. if (_c == QMetaObject::IndexOfMethod) {
  115. int *result = reinterpret_cast<int *>(_a[0]);
  116. {
  117. using _q_method_type = void (PluginLoader::*)(const QString & , int );
  118. if (_q_method_type _q_method = &PluginLoader::messagePublished; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
  119. *result = 0;
  120. return;
  121. }
  122. }
  123. {
  124. using _q_method_type = void (PluginLoader::*)(const QString & );
  125. if (_q_method_type _q_method = &PluginLoader::error; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
  126. *result = 1;
  127. return;
  128. }
  129. }
  130. }
  131. }
  132. const QMetaObject *PluginLoader::metaObject() const
  133. {
  134. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  135. }
  136. void *PluginLoader::qt_metacast(const char *_clname)
  137. {
  138. if (!_clname) return nullptr;
  139. if (!strcmp(_clname, qt_meta_stringdata_ZN12PluginLoaderE.stringdata0))
  140. return static_cast<void*>(this);
  141. return QObject::qt_metacast(_clname);
  142. }
  143. int PluginLoader::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  144. {
  145. _id = QObject::qt_metacall(_c, _id, _a);
  146. if (_id < 0)
  147. return _id;
  148. if (_c == QMetaObject::InvokeMetaMethod) {
  149. if (_id < 5)
  150. qt_static_metacall(this, _c, _id, _a);
  151. _id -= 5;
  152. }
  153. if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  154. if (_id < 5)
  155. *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
  156. _id -= 5;
  157. }
  158. return _id;
  159. }
  160. // SIGNAL 0
  161. void PluginLoader::messagePublished(const QString & _t1, int _t2)
  162. {
  163. void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
  164. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  165. }
  166. // SIGNAL 1
  167. void PluginLoader::error(const QString & _t1)
  168. {
  169. void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
  170. QMetaObject::activate(this, &staticMetaObject, 1, _a);
  171. }
  172. QT_WARNING_POP