moc_wsclient.cpp 4.2 KB

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