2
0

moc_hwmon.cpp 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'hwmon.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/hwmon.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #include <QtCore/QList>
  12. #if !defined(Q_MOC_OUTPUT_REVISION)
  13. #error "The header file 'hwmon.h' doesn't include <QObject>."
  14. #elif Q_MOC_OUTPUT_REVISION != 67
  15. #error "This file was generated using the moc from 5.5.0. It"
  16. #error "cannot be used with the include files from this version of Qt."
  17. #error "(The moc has changed too much.)"
  18. #endif
  19. QT_BEGIN_MOC_NAMESPACE
  20. struct qt_meta_stringdata_Fancontrol__Hwmon_t {
  21. QByteArrayData data[20];
  22. char stringdata0[213];
  23. };
  24. #define QT_MOC_LITERAL(idx, ofs, len) \
  25. Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
  26. qptrdiff(offsetof(qt_meta_stringdata_Fancontrol__Hwmon_t, stringdata0) + ofs \
  27. - idx * sizeof(QByteArrayData)) \
  28. )
  29. static const qt_meta_stringdata_Fancontrol__Hwmon_t qt_meta_stringdata_Fancontrol__Hwmon = {
  30. {
  31. QT_MOC_LITERAL(0, 0, 17), // "Fancontrol::Hwmon"
  32. QT_MOC_LITERAL(1, 18, 11), // "fansChanged"
  33. QT_MOC_LITERAL(2, 30, 0), // ""
  34. QT_MOC_LITERAL(3, 31, 14), // "pwmFansChanged"
  35. QT_MOC_LITERAL(4, 46, 12), // "tempsChanged"
  36. QT_MOC_LITERAL(5, 59, 18), // "configUpdateNeeded"
  37. QT_MOC_LITERAL(6, 78, 19), // "sensorsUpdateNeeded"
  38. QT_MOC_LITERAL(7, 98, 12), // "errorChanged"
  39. QT_MOC_LITERAL(8, 111, 12), // "updateConfig"
  40. QT_MOC_LITERAL(9, 124, 13), // "updateSensors"
  41. QT_MOC_LITERAL(10, 138, 8), // "setError"
  42. QT_MOC_LITERAL(11, 147, 5), // "error"
  43. QT_MOC_LITERAL(12, 153, 8), // "testFans"
  44. QT_MOC_LITERAL(13, 162, 4), // "name"
  45. QT_MOC_LITERAL(14, 167, 4), // "path"
  46. QT_MOC_LITERAL(15, 172, 5), // "index"
  47. QT_MOC_LITERAL(16, 178, 4), // "fans"
  48. QT_MOC_LITERAL(17, 183, 15), // "QList<QObject*>"
  49. QT_MOC_LITERAL(18, 199, 7), // "pwmFans"
  50. QT_MOC_LITERAL(19, 207, 5) // "temps"
  51. },
  52. "Fancontrol::Hwmon\0fansChanged\0\0"
  53. "pwmFansChanged\0tempsChanged\0"
  54. "configUpdateNeeded\0sensorsUpdateNeeded\0"
  55. "errorChanged\0updateConfig\0updateSensors\0"
  56. "setError\0error\0testFans\0name\0path\0"
  57. "index\0fans\0QList<QObject*>\0pwmFans\0"
  58. "temps"
  59. };
  60. #undef QT_MOC_LITERAL
  61. static const uint qt_meta_data_Fancontrol__Hwmon[] = {
  62. // content:
  63. 7, // revision
  64. 0, // classname
  65. 0, 0, // classinfo
  66. 10, 14, // methods
  67. 6, 78, // properties
  68. 0, 0, // enums/sets
  69. 0, 0, // constructors
  70. 0, // flags
  71. 6, // signalCount
  72. // signals: name, argc, parameters, tag, flags
  73. 1, 0, 64, 2, 0x06 /* Public */,
  74. 3, 0, 65, 2, 0x06 /* Public */,
  75. 4, 0, 66, 2, 0x06 /* Public */,
  76. 5, 0, 67, 2, 0x06 /* Public */,
  77. 6, 0, 68, 2, 0x06 /* Public */,
  78. 7, 1, 69, 2, 0x06 /* Public */,
  79. // slots: name, argc, parameters, tag, flags
  80. 8, 0, 72, 2, 0x0a /* Public */,
  81. 9, 0, 73, 2, 0x0a /* Public */,
  82. 10, 1, 74, 2, 0x09 /* Protected */,
  83. // methods: name, argc, parameters, tag, flags
  84. 12, 0, 77, 2, 0x02 /* Public */,
  85. // signals: parameters
  86. QMetaType::Void,
  87. QMetaType::Void,
  88. QMetaType::Void,
  89. QMetaType::Void,
  90. QMetaType::Void,
  91. QMetaType::Void, QMetaType::QString, 2,
  92. // slots: parameters
  93. QMetaType::Void,
  94. QMetaType::Void,
  95. QMetaType::Void, QMetaType::QString, 11,
  96. // methods: parameters
  97. QMetaType::Void,
  98. // properties: name, type, flags
  99. 13, QMetaType::QString, 0x00095401,
  100. 14, QMetaType::QString, 0x00095401,
  101. 15, QMetaType::Int, 0x00095401,
  102. 16, 0x80000000 | 17, 0x00495009,
  103. 18, 0x80000000 | 17, 0x00495009,
  104. 19, 0x80000000 | 17, 0x00495009,
  105. // properties: notify_signal_id
  106. 0,
  107. 0,
  108. 0,
  109. 0,
  110. 1,
  111. 2,
  112. 0 // eod
  113. };
  114. void Fancontrol::Hwmon::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  115. {
  116. if (_c == QMetaObject::InvokeMetaMethod) {
  117. Hwmon *_t = static_cast<Hwmon *>(_o);
  118. Q_UNUSED(_t)
  119. switch (_id) {
  120. case 0: _t->fansChanged(); break;
  121. case 1: _t->pwmFansChanged(); break;
  122. case 2: _t->tempsChanged(); break;
  123. case 3: _t->configUpdateNeeded(); break;
  124. case 4: _t->sensorsUpdateNeeded(); break;
  125. case 5: _t->errorChanged((*reinterpret_cast< QString(*)>(_a[1]))); break;
  126. case 6: _t->updateConfig(); break;
  127. case 7: _t->updateSensors(); break;
  128. case 8: _t->setError((*reinterpret_cast< const QString(*)>(_a[1]))); break;
  129. case 9: _t->testFans(); break;
  130. default: ;
  131. }
  132. } else if (_c == QMetaObject::IndexOfMethod) {
  133. int *result = reinterpret_cast<int *>(_a[0]);
  134. void **func = reinterpret_cast<void **>(_a[1]);
  135. {
  136. typedef void (Hwmon::*_t)();
  137. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Hwmon::fansChanged)) {
  138. *result = 0;
  139. }
  140. }
  141. {
  142. typedef void (Hwmon::*_t)();
  143. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Hwmon::pwmFansChanged)) {
  144. *result = 1;
  145. }
  146. }
  147. {
  148. typedef void (Hwmon::*_t)();
  149. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Hwmon::tempsChanged)) {
  150. *result = 2;
  151. }
  152. }
  153. {
  154. typedef void (Hwmon::*_t)();
  155. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Hwmon::configUpdateNeeded)) {
  156. *result = 3;
  157. }
  158. }
  159. {
  160. typedef void (Hwmon::*_t)();
  161. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Hwmon::sensorsUpdateNeeded)) {
  162. *result = 4;
  163. }
  164. }
  165. {
  166. typedef void (Hwmon::*_t)(QString );
  167. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Hwmon::errorChanged)) {
  168. *result = 5;
  169. }
  170. }
  171. } else if (_c == QMetaObject::RegisterPropertyMetaType) {
  172. switch (_id) {
  173. default: *reinterpret_cast<int*>(_a[0]) = -1; break;
  174. case 5:
  175. case 4:
  176. case 3:
  177. *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QList<QObject*> >(); break;
  178. }
  179. }
  180. #ifndef QT_NO_PROPERTIES
  181. else if (_c == QMetaObject::ReadProperty) {
  182. Hwmon *_t = static_cast<Hwmon *>(_o);
  183. Q_UNUSED(_t)
  184. void *_v = _a[0];
  185. switch (_id) {
  186. case 0: *reinterpret_cast< QString*>(_v) = _t->name(); break;
  187. case 1: *reinterpret_cast< QString*>(_v) = _t->path(); break;
  188. case 2: *reinterpret_cast< int*>(_v) = _t->index(); break;
  189. case 3: *reinterpret_cast< QList<QObject*>*>(_v) = _t->fans(); break;
  190. case 4: *reinterpret_cast< QList<QObject*>*>(_v) = _t->pwmFans(); break;
  191. case 5: *reinterpret_cast< QList<QObject*>*>(_v) = _t->temps(); break;
  192. default: break;
  193. }
  194. } else if (_c == QMetaObject::WriteProperty) {
  195. } else if (_c == QMetaObject::ResetProperty) {
  196. }
  197. #endif // QT_NO_PROPERTIES
  198. }
  199. const QMetaObject Fancontrol::Hwmon::staticMetaObject = {
  200. { &QObject::staticMetaObject, qt_meta_stringdata_Fancontrol__Hwmon.data,
  201. qt_meta_data_Fancontrol__Hwmon, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
  202. };
  203. const QMetaObject *Fancontrol::Hwmon::metaObject() const
  204. {
  205. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  206. }
  207. void *Fancontrol::Hwmon::qt_metacast(const char *_clname)
  208. {
  209. if (!_clname) return Q_NULLPTR;
  210. if (!strcmp(_clname, qt_meta_stringdata_Fancontrol__Hwmon.stringdata0))
  211. return static_cast<void*>(const_cast< Hwmon*>(this));
  212. return QObject::qt_metacast(_clname);
  213. }
  214. int Fancontrol::Hwmon::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  215. {
  216. _id = QObject::qt_metacall(_c, _id, _a);
  217. if (_id < 0)
  218. return _id;
  219. if (_c == QMetaObject::InvokeMetaMethod) {
  220. if (_id < 10)
  221. qt_static_metacall(this, _c, _id, _a);
  222. _id -= 10;
  223. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  224. if (_id < 10)
  225. *reinterpret_cast<int*>(_a[0]) = -1;
  226. _id -= 10;
  227. }
  228. #ifndef QT_NO_PROPERTIES
  229. else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
  230. || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
  231. qt_static_metacall(this, _c, _id, _a);
  232. _id -= 6;
  233. } else if (_c == QMetaObject::QueryPropertyDesignable) {
  234. _id -= 6;
  235. } else if (_c == QMetaObject::QueryPropertyScriptable) {
  236. _id -= 6;
  237. } else if (_c == QMetaObject::QueryPropertyStored) {
  238. _id -= 6;
  239. } else if (_c == QMetaObject::QueryPropertyEditable) {
  240. _id -= 6;
  241. } else if (_c == QMetaObject::QueryPropertyUser) {
  242. _id -= 6;
  243. }
  244. #endif // QT_NO_PROPERTIES
  245. return _id;
  246. }
  247. // SIGNAL 0
  248. void Fancontrol::Hwmon::fansChanged()
  249. {
  250. QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
  251. }
  252. // SIGNAL 1
  253. void Fancontrol::Hwmon::pwmFansChanged()
  254. {
  255. QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
  256. }
  257. // SIGNAL 2
  258. void Fancontrol::Hwmon::tempsChanged()
  259. {
  260. QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
  261. }
  262. // SIGNAL 3
  263. void Fancontrol::Hwmon::configUpdateNeeded()
  264. {
  265. QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
  266. }
  267. // SIGNAL 4
  268. void Fancontrol::Hwmon::sensorsUpdateNeeded()
  269. {
  270. QMetaObject::activate(this, &staticMetaObject, 4, Q_NULLPTR);
  271. }
  272. // SIGNAL 5
  273. void Fancontrol::Hwmon::errorChanged(QString _t1)
  274. {
  275. void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
  276. QMetaObject::activate(this, &staticMetaObject, 5, _a);
  277. }
  278. QT_END_MOC_NAMESPACE