moc_helper.cpp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'helper.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.0)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "../../helper/src/helper.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION)
  12. #error "The header file 'helper.h' doesn't include <QObject>."
  13. #elif Q_MOC_OUTPUT_REVISION != 67
  14. #error "This file was generated using the moc from 5.5.0. It"
  15. #error "cannot be used with the include files from this version of Qt."
  16. #error "(The moc has changed too much.)"
  17. #endif
  18. QT_BEGIN_MOC_NAMESPACE
  19. struct qt_meta_stringdata_Helper_t {
  20. QByteArrayData data[5];
  21. char stringdata0[32];
  22. };
  23. #define QT_MOC_LITERAL(idx, ofs, len) \
  24. Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
  25. qptrdiff(offsetof(qt_meta_stringdata_Helper_t, stringdata0) + ofs \
  26. - idx * sizeof(QByteArrayData)) \
  27. )
  28. static const qt_meta_stringdata_Helper_t qt_meta_stringdata_Helper = {
  29. {
  30. QT_MOC_LITERAL(0, 0, 6), // "Helper"
  31. QT_MOC_LITERAL(1, 7, 6), // "action"
  32. QT_MOC_LITERAL(2, 14, 11), // "ActionReply"
  33. QT_MOC_LITERAL(3, 26, 0), // ""
  34. QT_MOC_LITERAL(4, 27, 4) // "args"
  35. },
  36. "Helper\0action\0ActionReply\0\0args"
  37. };
  38. #undef QT_MOC_LITERAL
  39. static const uint qt_meta_data_Helper[] = {
  40. // content:
  41. 7, // revision
  42. 0, // classname
  43. 0, 0, // classinfo
  44. 1, 14, // methods
  45. 0, 0, // properties
  46. 0, 0, // enums/sets
  47. 0, 0, // constructors
  48. 0, // flags
  49. 0, // signalCount
  50. // slots: name, argc, parameters, tag, flags
  51. 1, 1, 19, 3, 0x0a /* Public */,
  52. // slots: parameters
  53. 0x80000000 | 2, QMetaType::QVariantMap, 4,
  54. 0 // eod
  55. };
  56. void Helper::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  57. {
  58. if (_c == QMetaObject::InvokeMetaMethod) {
  59. Helper *_t = static_cast<Helper *>(_o);
  60. Q_UNUSED(_t)
  61. switch (_id) {
  62. case 0: { ActionReply _r = _t->action((*reinterpret_cast< const QVariantMap(*)>(_a[1])));
  63. if (_a[0]) *reinterpret_cast< ActionReply*>(_a[0]) = _r; } break;
  64. default: ;
  65. }
  66. }
  67. }
  68. const QMetaObject Helper::staticMetaObject = {
  69. { &QObject::staticMetaObject, qt_meta_stringdata_Helper.data,
  70. qt_meta_data_Helper, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
  71. };
  72. const QMetaObject *Helper::metaObject() const
  73. {
  74. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  75. }
  76. void *Helper::qt_metacast(const char *_clname)
  77. {
  78. if (!_clname) return Q_NULLPTR;
  79. if (!strcmp(_clname, qt_meta_stringdata_Helper.stringdata0))
  80. return static_cast<void*>(const_cast< Helper*>(this));
  81. return QObject::qt_metacast(_clname);
  82. }
  83. int Helper::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  84. {
  85. _id = QObject::qt_metacall(_c, _id, _a);
  86. if (_id < 0)
  87. return _id;
  88. if (_c == QMetaObject::InvokeMetaMethod) {
  89. if (_id < 1)
  90. qt_static_metacall(this, _c, _id, _a);
  91. _id -= 1;
  92. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  93. if (_id < 1)
  94. *reinterpret_cast<int*>(_a[0]) = -1;
  95. _id -= 1;
  96. }
  97. return _id;
  98. }
  99. QT_END_MOC_NAMESPACE