moc_get_uart.cpp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'get_uart.h'
  3. **
  4. ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.3.2)
  5. **
  6. ** WARNING! All changes made in this file will be lost!
  7. *****************************************************************************/
  8. #include "../RM_CPanel/get_uart.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION)
  12. #error "The header file 'get_uart.h' doesn't include <QObject>."
  13. #elif Q_MOC_OUTPUT_REVISION != 67
  14. #error "This file was generated using the moc from 5.3.2. 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_Get_Uart_t {
  20. QByteArrayData data[9];
  21. char stringdata[91];
  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_Get_Uart_t, stringdata) + ofs \
  26. - idx * sizeof(QByteArrayData)) \
  27. )
  28. static const qt_meta_stringdata_Get_Uart_t qt_meta_stringdata_Get_Uart = {
  29. {
  30. QT_MOC_LITERAL(0, 0, 8),
  31. QT_MOC_LITERAL(1, 9, 8),
  32. QT_MOC_LITERAL(2, 18, 0),
  33. QT_MOC_LITERAL(3, 19, 18),
  34. QT_MOC_LITERAL(4, 38, 10),
  35. QT_MOC_LITERAL(5, 49, 6),
  36. QT_MOC_LITERAL(6, 56, 12),
  37. QT_MOC_LITERAL(7, 69, 10),
  38. QT_MOC_LITERAL(8, 80, 10)
  39. },
  40. "Get_Uart\0send_err\0\0send_graph_pointer\0"
  41. "GraphData*\0doWork\0recv_command\0"
  42. "OpenSerial\0ReadSerial"
  43. };
  44. #undef QT_MOC_LITERAL
  45. static const uint qt_meta_data_Get_Uart[] = {
  46. // content:
  47. 7, // revision
  48. 0, // classname
  49. 0, 0, // classinfo
  50. 6, 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
  57. 1, 1, 44, 2, 0x06 /* Public */,
  58. 3, 1, 47, 2, 0x06 /* Public */,
  59. // slots: name, argc, parameters, tag, flags
  60. 5, 0, 50, 2, 0x0a /* Public */,
  61. 6, 1, 51, 2, 0x0a /* Public */,
  62. 7, 1, 54, 2, 0x0a /* Public */,
  63. 8, 0, 57, 2, 0x08 /* Private */,
  64. // signals: parameters
  65. QMetaType::Void, QMetaType::QString, 2,
  66. QMetaType::Void, 0x80000000 | 4, 2,
  67. // slots: parameters
  68. QMetaType::Void,
  69. QMetaType::Void, QMetaType::QString, 2,
  70. QMetaType::Void, QMetaType::QString, 2,
  71. QMetaType::Void,
  72. 0 // eod
  73. };
  74. void Get_Uart::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  75. {
  76. if (_c == QMetaObject::InvokeMetaMethod) {
  77. Get_Uart *_t = static_cast<Get_Uart *>(_o);
  78. switch (_id) {
  79. case 0: _t->send_err((*reinterpret_cast< QString(*)>(_a[1]))); break;
  80. case 1: _t->send_graph_pointer((*reinterpret_cast< GraphData*(*)>(_a[1]))); break;
  81. case 2: _t->doWork(); break;
  82. case 3: _t->recv_command((*reinterpret_cast< QString(*)>(_a[1]))); break;
  83. case 4: _t->OpenSerial((*reinterpret_cast< QString(*)>(_a[1]))); break;
  84. case 5: _t->ReadSerial(); break;
  85. default: ;
  86. }
  87. } else if (_c == QMetaObject::IndexOfMethod) {
  88. int *result = reinterpret_cast<int *>(_a[0]);
  89. void **func = reinterpret_cast<void **>(_a[1]);
  90. {
  91. typedef void (Get_Uart::*_t)(QString );
  92. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Get_Uart::send_err)) {
  93. *result = 0;
  94. }
  95. }
  96. {
  97. typedef void (Get_Uart::*_t)(GraphData * );
  98. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Get_Uart::send_graph_pointer)) {
  99. *result = 1;
  100. }
  101. }
  102. }
  103. }
  104. const QMetaObject Get_Uart::staticMetaObject = {
  105. { &QObject::staticMetaObject, qt_meta_stringdata_Get_Uart.data,
  106. qt_meta_data_Get_Uart, qt_static_metacall, 0, 0}
  107. };
  108. const QMetaObject *Get_Uart::metaObject() const
  109. {
  110. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  111. }
  112. void *Get_Uart::qt_metacast(const char *_clname)
  113. {
  114. if (!_clname) return 0;
  115. if (!strcmp(_clname, qt_meta_stringdata_Get_Uart.stringdata))
  116. return static_cast<void*>(const_cast< Get_Uart*>(this));
  117. return QObject::qt_metacast(_clname);
  118. }
  119. int Get_Uart::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  120. {
  121. _id = QObject::qt_metacall(_c, _id, _a);
  122. if (_id < 0)
  123. return _id;
  124. if (_c == QMetaObject::InvokeMetaMethod) {
  125. if (_id < 6)
  126. qt_static_metacall(this, _c, _id, _a);
  127. _id -= 6;
  128. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  129. if (_id < 6)
  130. *reinterpret_cast<int*>(_a[0]) = -1;
  131. _id -= 6;
  132. }
  133. return _id;
  134. }
  135. // SIGNAL 0
  136. void Get_Uart::send_err(QString _t1)
  137. {
  138. void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
  139. QMetaObject::activate(this, &staticMetaObject, 0, _a);
  140. }
  141. // SIGNAL 1
  142. void Get_Uart::send_graph_pointer(GraphData * _t1)
  143. {
  144. void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
  145. QMetaObject::activate(this, &staticMetaObject, 1, _a);
  146. }
  147. QT_END_MOC_NAMESPACE