2
0

moc_sensor.cpp 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'sensor.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 "../../lib/src/sensor.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION)
  12. #error "The header file 'sensor.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_Fancontrol__Sensor_t {
  20. QByteArrayData data[10];
  21. char stringdata0[82];
  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_Fancontrol__Sensor_t, stringdata0) + ofs \
  26. - idx * sizeof(QByteArrayData)) \
  27. )
  28. static const qt_meta_stringdata_Fancontrol__Sensor_t qt_meta_stringdata_Fancontrol__Sensor = {
  29. {
  30. QT_MOC_LITERAL(0, 0, 18), // "Fancontrol::Sensor"
  31. QT_MOC_LITERAL(1, 19, 11), // "nameChanged"
  32. QT_MOC_LITERAL(2, 31, 0), // ""
  33. QT_MOC_LITERAL(3, 32, 12), // "errorChanged"
  34. QT_MOC_LITERAL(4, 45, 6), // "update"
  35. QT_MOC_LITERAL(5, 52, 5), // "index"
  36. QT_MOC_LITERAL(6, 58, 4), // "name"
  37. QT_MOC_LITERAL(7, 63, 4), // "path"
  38. QT_MOC_LITERAL(8, 68, 6), // "parent"
  39. QT_MOC_LITERAL(9, 75, 6) // "Hwmon*"
  40. },
  41. "Fancontrol::Sensor\0nameChanged\0\0"
  42. "errorChanged\0update\0index\0name\0path\0"
  43. "parent\0Hwmon*"
  44. };
  45. #undef QT_MOC_LITERAL
  46. static const uint qt_meta_data_Fancontrol__Sensor[] = {
  47. // content:
  48. 7, // revision
  49. 0, // classname
  50. 0, 0, // classinfo
  51. 3, 14, // methods
  52. 4, 34, // properties
  53. 0, 0, // enums/sets
  54. 0, 0, // constructors
  55. 0, // flags
  56. 2, // signalCount
  57. // signals: name, argc, parameters, tag, flags
  58. 1, 0, 29, 2, 0x06 /* Public */,
  59. 3, 1, 30, 2, 0x06 /* Public */,
  60. // slots: name, argc, parameters, tag, flags
  61. 4, 0, 33, 2, 0x0a /* Public */,
  62. // signals: parameters
  63. QMetaType::Void,
  64. QMetaType::Void, QMetaType::QString, 2,
  65. // slots: parameters
  66. QMetaType::Void,
  67. // properties: name, type, flags
  68. 5, QMetaType::UInt, 0x00095401,
  69. 6, QMetaType::QString, 0x00495103,
  70. 7, QMetaType::QString, 0x00095401,
  71. 8, 0x80000000 | 9, 0x00095409,
  72. // properties: notify_signal_id
  73. 0,
  74. 0,
  75. 0,
  76. 0,
  77. 0 // eod
  78. };
  79. void Fancontrol::Sensor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  80. {
  81. if (_c == QMetaObject::InvokeMetaMethod) {
  82. Sensor *_t = static_cast<Sensor *>(_o);
  83. Q_UNUSED(_t)
  84. switch (_id) {
  85. case 0: _t->nameChanged(); break;
  86. case 1: _t->errorChanged((*reinterpret_cast< QString(*)>(_a[1]))); break;
  87. case 2: _t->update(); break;
  88. default: ;
  89. }
  90. } else if (_c == QMetaObject::IndexOfMethod) {
  91. int *result = reinterpret_cast<int *>(_a[0]);
  92. void **func = reinterpret_cast<void **>(_a[1]);
  93. {
  94. typedef void (Sensor::*_t)();
  95. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Sensor::nameChanged)) {
  96. *result = 0;
  97. }
  98. }
  99. {
  100. typedef void (Sensor::*_t)(QString );
  101. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Sensor::errorChanged)) {
  102. *result = 1;
  103. }
  104. }
  105. }
  106. #ifndef QT_NO_PROPERTIES
  107. else if (_c == QMetaObject::ReadProperty) {
  108. Sensor *_t = static_cast<Sensor *>(_o);
  109. Q_UNUSED(_t)
  110. void *_v = _a[0];
  111. switch (_id) {
  112. case 0: *reinterpret_cast< uint*>(_v) = _t->index(); break;
  113. case 1: *reinterpret_cast< QString*>(_v) = _t->name(); break;
  114. case 2: *reinterpret_cast< QString*>(_v) = _t->path(); break;
  115. case 3: *reinterpret_cast< Hwmon**>(_v) = _t->parent(); break;
  116. default: break;
  117. }
  118. } else if (_c == QMetaObject::WriteProperty) {
  119. Sensor *_t = static_cast<Sensor *>(_o);
  120. Q_UNUSED(_t)
  121. void *_v = _a[0];
  122. switch (_id) {
  123. case 1: _t->setName(*reinterpret_cast< QString*>(_v)); break;
  124. default: break;
  125. }
  126. } else if (_c == QMetaObject::ResetProperty) {
  127. }
  128. #endif // QT_NO_PROPERTIES
  129. }
  130. const QMetaObject Fancontrol::Sensor::staticMetaObject = {
  131. { &QObject::staticMetaObject, qt_meta_stringdata_Fancontrol__Sensor.data,
  132. qt_meta_data_Fancontrol__Sensor, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
  133. };
  134. const QMetaObject *Fancontrol::Sensor::metaObject() const
  135. {
  136. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  137. }
  138. void *Fancontrol::Sensor::qt_metacast(const char *_clname)
  139. {
  140. if (!_clname) return Q_NULLPTR;
  141. if (!strcmp(_clname, qt_meta_stringdata_Fancontrol__Sensor.stringdata0))
  142. return static_cast<void*>(const_cast< Sensor*>(this));
  143. return QObject::qt_metacast(_clname);
  144. }
  145. int Fancontrol::Sensor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  146. {
  147. _id = QObject::qt_metacall(_c, _id, _a);
  148. if (_id < 0)
  149. return _id;
  150. if (_c == QMetaObject::InvokeMetaMethod) {
  151. if (_id < 3)
  152. qt_static_metacall(this, _c, _id, _a);
  153. _id -= 3;
  154. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  155. if (_id < 3)
  156. *reinterpret_cast<int*>(_a[0]) = -1;
  157. _id -= 3;
  158. }
  159. #ifndef QT_NO_PROPERTIES
  160. else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
  161. || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
  162. qt_static_metacall(this, _c, _id, _a);
  163. _id -= 4;
  164. } else if (_c == QMetaObject::QueryPropertyDesignable) {
  165. _id -= 4;
  166. } else if (_c == QMetaObject::QueryPropertyScriptable) {
  167. _id -= 4;
  168. } else if (_c == QMetaObject::QueryPropertyStored) {
  169. _id -= 4;
  170. } else if (_c == QMetaObject::QueryPropertyEditable) {
  171. _id -= 4;
  172. } else if (_c == QMetaObject::QueryPropertyUser) {
  173. _id -= 4;
  174. }
  175. #endif // QT_NO_PROPERTIES
  176. return _id;
  177. }
  178. // SIGNAL 0
  179. void Fancontrol::Sensor::nameChanged()
  180. {
  181. QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
  182. }
  183. // SIGNAL 1
  184. void Fancontrol::Sensor::errorChanged(QString _t1)
  185. {
  186. void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
  187. QMetaObject::activate(this, &staticMetaObject, 1, _a);
  188. }
  189. QT_END_MOC_NAMESPACE