moc_fan.cpp 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'fan.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/fan.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION)
  12. #error "The header file 'fan.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__Fan_t {
  20. QByteArrayData data[5];
  21. char stringdata0[39];
  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__Fan_t, stringdata0) + ofs \
  26. - idx * sizeof(QByteArrayData)) \
  27. )
  28. static const qt_meta_stringdata_Fancontrol__Fan_t qt_meta_stringdata_Fancontrol__Fan = {
  29. {
  30. QT_MOC_LITERAL(0, 0, 15), // "Fancontrol::Fan"
  31. QT_MOC_LITERAL(1, 16, 10), // "rpmChanged"
  32. QT_MOC_LITERAL(2, 27, 0), // ""
  33. QT_MOC_LITERAL(3, 28, 6), // "update"
  34. QT_MOC_LITERAL(4, 35, 3) // "rpm"
  35. },
  36. "Fancontrol::Fan\0rpmChanged\0\0update\0"
  37. "rpm"
  38. };
  39. #undef QT_MOC_LITERAL
  40. static const uint qt_meta_data_Fancontrol__Fan[] = {
  41. // content:
  42. 7, // revision
  43. 0, // classname
  44. 0, 0, // classinfo
  45. 2, 14, // methods
  46. 1, 26, // properties
  47. 0, 0, // enums/sets
  48. 0, 0, // constructors
  49. 0, // flags
  50. 1, // signalCount
  51. // signals: name, argc, parameters, tag, flags
  52. 1, 0, 24, 2, 0x06 /* Public */,
  53. // slots: name, argc, parameters, tag, flags
  54. 3, 0, 25, 2, 0x0a /* Public */,
  55. // signals: parameters
  56. QMetaType::Void,
  57. // slots: parameters
  58. QMetaType::Void,
  59. // properties: name, type, flags
  60. 4, QMetaType::Int, 0x00495001,
  61. // properties: notify_signal_id
  62. 0,
  63. 0 // eod
  64. };
  65. void Fancontrol::Fan::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  66. {
  67. if (_c == QMetaObject::InvokeMetaMethod) {
  68. Fan *_t = static_cast<Fan *>(_o);
  69. Q_UNUSED(_t)
  70. switch (_id) {
  71. case 0: _t->rpmChanged(); break;
  72. case 1: _t->update(); break;
  73. default: ;
  74. }
  75. } else if (_c == QMetaObject::IndexOfMethod) {
  76. int *result = reinterpret_cast<int *>(_a[0]);
  77. void **func = reinterpret_cast<void **>(_a[1]);
  78. {
  79. typedef void (Fan::*_t)();
  80. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Fan::rpmChanged)) {
  81. *result = 0;
  82. }
  83. }
  84. }
  85. #ifndef QT_NO_PROPERTIES
  86. else if (_c == QMetaObject::ReadProperty) {
  87. Fan *_t = static_cast<Fan *>(_o);
  88. Q_UNUSED(_t)
  89. void *_v = _a[0];
  90. switch (_id) {
  91. case 0: *reinterpret_cast< int*>(_v) = _t->rpm(); break;
  92. default: break;
  93. }
  94. } else if (_c == QMetaObject::WriteProperty) {
  95. } else if (_c == QMetaObject::ResetProperty) {
  96. }
  97. #endif // QT_NO_PROPERTIES
  98. Q_UNUSED(_a);
  99. }
  100. const QMetaObject Fancontrol::Fan::staticMetaObject = {
  101. { &Sensor::staticMetaObject, qt_meta_stringdata_Fancontrol__Fan.data,
  102. qt_meta_data_Fancontrol__Fan, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
  103. };
  104. const QMetaObject *Fancontrol::Fan::metaObject() const
  105. {
  106. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  107. }
  108. void *Fancontrol::Fan::qt_metacast(const char *_clname)
  109. {
  110. if (!_clname) return Q_NULLPTR;
  111. if (!strcmp(_clname, qt_meta_stringdata_Fancontrol__Fan.stringdata0))
  112. return static_cast<void*>(const_cast< Fan*>(this));
  113. return Sensor::qt_metacast(_clname);
  114. }
  115. int Fancontrol::Fan::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  116. {
  117. _id = Sensor::qt_metacall(_c, _id, _a);
  118. if (_id < 0)
  119. return _id;
  120. if (_c == QMetaObject::InvokeMetaMethod) {
  121. if (_id < 2)
  122. qt_static_metacall(this, _c, _id, _a);
  123. _id -= 2;
  124. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  125. if (_id < 2)
  126. *reinterpret_cast<int*>(_a[0]) = -1;
  127. _id -= 2;
  128. }
  129. #ifndef QT_NO_PROPERTIES
  130. else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
  131. || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
  132. qt_static_metacall(this, _c, _id, _a);
  133. _id -= 1;
  134. } else if (_c == QMetaObject::QueryPropertyDesignable) {
  135. _id -= 1;
  136. } else if (_c == QMetaObject::QueryPropertyScriptable) {
  137. _id -= 1;
  138. } else if (_c == QMetaObject::QueryPropertyStored) {
  139. _id -= 1;
  140. } else if (_c == QMetaObject::QueryPropertyEditable) {
  141. _id -= 1;
  142. } else if (_c == QMetaObject::QueryPropertyUser) {
  143. _id -= 1;
  144. }
  145. #endif // QT_NO_PROPERTIES
  146. return _id;
  147. }
  148. // SIGNAL 0
  149. void Fancontrol::Fan::rpmChanged()
  150. {
  151. QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
  152. }
  153. QT_END_MOC_NAMESPACE