moc_pwmfan.cpp 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'pwmfan.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/pwmfan.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION)
  12. #error "The header file 'pwmfan.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__PwmFan_t {
  20. QByteArrayData data[31];
  21. char stringdata0[319];
  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__PwmFan_t, stringdata0) + ofs \
  26. - idx * sizeof(QByteArrayData)) \
  27. )
  28. static const qt_meta_stringdata_Fancontrol__PwmFan_t qt_meta_stringdata_Fancontrol__PwmFan = {
  29. {
  30. QT_MOC_LITERAL(0, 0, 18), // "Fancontrol::PwmFan"
  31. QT_MOC_LITERAL(1, 19, 10), // "pwmChanged"
  32. QT_MOC_LITERAL(2, 30, 0), // ""
  33. QT_MOC_LITERAL(3, 31, 11), // "tempChanged"
  34. QT_MOC_LITERAL(4, 43, 14), // "hasTempChanged"
  35. QT_MOC_LITERAL(5, 58, 14), // "minTempChanged"
  36. QT_MOC_LITERAL(6, 73, 14), // "maxTempChanged"
  37. QT_MOC_LITERAL(7, 88, 13), // "minPwmChanged"
  38. QT_MOC_LITERAL(8, 102, 13), // "maxPwmChanged"
  39. QT_MOC_LITERAL(9, 116, 15), // "minStartChanged"
  40. QT_MOC_LITERAL(10, 132, 14), // "minStopChanged"
  41. QT_MOC_LITERAL(11, 147, 13), // "activeChanged"
  42. QT_MOC_LITERAL(12, 161, 14), // "testingChanged"
  43. QT_MOC_LITERAL(13, 176, 14), // "pwmModeChanged"
  44. QT_MOC_LITERAL(14, 191, 6), // "update"
  45. QT_MOC_LITERAL(15, 198, 12), // "continueTest"
  46. QT_MOC_LITERAL(16, 211, 4), // "test"
  47. QT_MOC_LITERAL(17, 216, 9), // "abortTest"
  48. QT_MOC_LITERAL(18, 226, 3), // "pwm"
  49. QT_MOC_LITERAL(19, 230, 4), // "temp"
  50. QT_MOC_LITERAL(20, 235, 5), // "Temp*"
  51. QT_MOC_LITERAL(21, 241, 7), // "hasTemp"
  52. QT_MOC_LITERAL(22, 249, 7), // "minTemp"
  53. QT_MOC_LITERAL(23, 257, 7), // "maxTemp"
  54. QT_MOC_LITERAL(24, 265, 6), // "minPwm"
  55. QT_MOC_LITERAL(25, 272, 6), // "maxPwm"
  56. QT_MOC_LITERAL(26, 279, 8), // "minStart"
  57. QT_MOC_LITERAL(27, 288, 7), // "minStop"
  58. QT_MOC_LITERAL(28, 296, 6), // "active"
  59. QT_MOC_LITERAL(29, 303, 7), // "testing"
  60. QT_MOC_LITERAL(30, 311, 7) // "pwmMode"
  61. },
  62. "Fancontrol::PwmFan\0pwmChanged\0\0"
  63. "tempChanged\0hasTempChanged\0minTempChanged\0"
  64. "maxTempChanged\0minPwmChanged\0maxPwmChanged\0"
  65. "minStartChanged\0minStopChanged\0"
  66. "activeChanged\0testingChanged\0"
  67. "pwmModeChanged\0update\0continueTest\0"
  68. "test\0abortTest\0pwm\0temp\0Temp*\0hasTemp\0"
  69. "minTemp\0maxTemp\0minPwm\0maxPwm\0minStart\0"
  70. "minStop\0active\0testing\0pwmMode"
  71. };
  72. #undef QT_MOC_LITERAL
  73. static const uint qt_meta_data_Fancontrol__PwmFan[] = {
  74. // content:
  75. 7, // revision
  76. 0, // classname
  77. 0, 0, // classinfo
  78. 16, 14, // methods
  79. 12, 110, // properties
  80. 0, 0, // enums/sets
  81. 0, 0, // constructors
  82. 0, // flags
  83. 12, // signalCount
  84. // signals: name, argc, parameters, tag, flags
  85. 1, 0, 94, 2, 0x06 /* Public */,
  86. 3, 0, 95, 2, 0x06 /* Public */,
  87. 4, 0, 96, 2, 0x06 /* Public */,
  88. 5, 0, 97, 2, 0x06 /* Public */,
  89. 6, 0, 98, 2, 0x06 /* Public */,
  90. 7, 0, 99, 2, 0x06 /* Public */,
  91. 8, 0, 100, 2, 0x06 /* Public */,
  92. 9, 0, 101, 2, 0x06 /* Public */,
  93. 10, 0, 102, 2, 0x06 /* Public */,
  94. 11, 0, 103, 2, 0x06 /* Public */,
  95. 12, 0, 104, 2, 0x06 /* Public */,
  96. 13, 0, 105, 2, 0x06 /* Public */,
  97. // slots: name, argc, parameters, tag, flags
  98. 14, 0, 106, 2, 0x09 /* Protected */,
  99. 15, 0, 107, 2, 0x09 /* Protected */,
  100. // methods: name, argc, parameters, tag, flags
  101. 16, 0, 108, 2, 0x02 /* Public */,
  102. 17, 0, 109, 2, 0x02 /* Public */,
  103. // signals: parameters
  104. QMetaType::Void,
  105. QMetaType::Void,
  106. QMetaType::Void,
  107. QMetaType::Void,
  108. QMetaType::Void,
  109. QMetaType::Void,
  110. QMetaType::Void,
  111. QMetaType::Void,
  112. QMetaType::Void,
  113. QMetaType::Void,
  114. QMetaType::Void,
  115. QMetaType::Void,
  116. // slots: parameters
  117. QMetaType::Void,
  118. QMetaType::Void,
  119. // methods: parameters
  120. QMetaType::Bool,
  121. QMetaType::Void,
  122. // properties: name, type, flags
  123. 18, QMetaType::Int, 0x00495103,
  124. 19, 0x80000000 | 20, 0x0049510b,
  125. 21, QMetaType::Bool, 0x00495103,
  126. 22, QMetaType::Int, 0x00495103,
  127. 23, QMetaType::Int, 0x00495103,
  128. 24, QMetaType::Int, 0x00495103,
  129. 25, QMetaType::Int, 0x00495103,
  130. 26, QMetaType::Int, 0x00495103,
  131. 27, QMetaType::Int, 0x00495103,
  132. 28, QMetaType::Bool, 0x00495103,
  133. 29, QMetaType::Bool, 0x00495001,
  134. 30, QMetaType::Int, 0x00495103,
  135. // properties: notify_signal_id
  136. 0,
  137. 1,
  138. 2,
  139. 3,
  140. 4,
  141. 5,
  142. 6,
  143. 7,
  144. 8,
  145. 9,
  146. 10,
  147. 11,
  148. 0 // eod
  149. };
  150. void Fancontrol::PwmFan::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  151. {
  152. if (_c == QMetaObject::InvokeMetaMethod) {
  153. PwmFan *_t = static_cast<PwmFan *>(_o);
  154. Q_UNUSED(_t)
  155. switch (_id) {
  156. case 0: _t->pwmChanged(); break;
  157. case 1: _t->tempChanged(); break;
  158. case 2: _t->hasTempChanged(); break;
  159. case 3: _t->minTempChanged(); break;
  160. case 4: _t->maxTempChanged(); break;
  161. case 5: _t->minPwmChanged(); break;
  162. case 6: _t->maxPwmChanged(); break;
  163. case 7: _t->minStartChanged(); break;
  164. case 8: _t->minStopChanged(); break;
  165. case 9: _t->activeChanged(); break;
  166. case 10: _t->testingChanged(); break;
  167. case 11: _t->pwmModeChanged(); break;
  168. case 12: _t->update(); break;
  169. case 13: _t->continueTest(); break;
  170. case 14: { bool _r = _t->test();
  171. if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
  172. case 15: _t->abortTest(); break;
  173. default: ;
  174. }
  175. } else if (_c == QMetaObject::IndexOfMethod) {
  176. int *result = reinterpret_cast<int *>(_a[0]);
  177. void **func = reinterpret_cast<void **>(_a[1]);
  178. {
  179. typedef void (PwmFan::*_t)();
  180. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::pwmChanged)) {
  181. *result = 0;
  182. }
  183. }
  184. {
  185. typedef void (PwmFan::*_t)();
  186. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::tempChanged)) {
  187. *result = 1;
  188. }
  189. }
  190. {
  191. typedef void (PwmFan::*_t)();
  192. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::hasTempChanged)) {
  193. *result = 2;
  194. }
  195. }
  196. {
  197. typedef void (PwmFan::*_t)();
  198. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::minTempChanged)) {
  199. *result = 3;
  200. }
  201. }
  202. {
  203. typedef void (PwmFan::*_t)();
  204. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::maxTempChanged)) {
  205. *result = 4;
  206. }
  207. }
  208. {
  209. typedef void (PwmFan::*_t)();
  210. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::minPwmChanged)) {
  211. *result = 5;
  212. }
  213. }
  214. {
  215. typedef void (PwmFan::*_t)();
  216. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::maxPwmChanged)) {
  217. *result = 6;
  218. }
  219. }
  220. {
  221. typedef void (PwmFan::*_t)();
  222. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::minStartChanged)) {
  223. *result = 7;
  224. }
  225. }
  226. {
  227. typedef void (PwmFan::*_t)();
  228. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::minStopChanged)) {
  229. *result = 8;
  230. }
  231. }
  232. {
  233. typedef void (PwmFan::*_t)();
  234. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::activeChanged)) {
  235. *result = 9;
  236. }
  237. }
  238. {
  239. typedef void (PwmFan::*_t)();
  240. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::testingChanged)) {
  241. *result = 10;
  242. }
  243. }
  244. {
  245. typedef void (PwmFan::*_t)();
  246. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&PwmFan::pwmModeChanged)) {
  247. *result = 11;
  248. }
  249. }
  250. } else if (_c == QMetaObject::RegisterPropertyMetaType) {
  251. switch (_id) {
  252. default: *reinterpret_cast<int*>(_a[0]) = -1; break;
  253. case 1:
  254. *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Temp* >(); break;
  255. }
  256. }
  257. #ifndef QT_NO_PROPERTIES
  258. else if (_c == QMetaObject::ReadProperty) {
  259. PwmFan *_t = static_cast<PwmFan *>(_o);
  260. Q_UNUSED(_t)
  261. void *_v = _a[0];
  262. switch (_id) {
  263. case 0: *reinterpret_cast< int*>(_v) = _t->pwm(); break;
  264. case 1: *reinterpret_cast< Temp**>(_v) = _t->temp(); break;
  265. case 2: *reinterpret_cast< bool*>(_v) = _t->hasTemp(); break;
  266. case 3: *reinterpret_cast< int*>(_v) = _t->minTemp(); break;
  267. case 4: *reinterpret_cast< int*>(_v) = _t->maxTemp(); break;
  268. case 5: *reinterpret_cast< int*>(_v) = _t->minPwm(); break;
  269. case 6: *reinterpret_cast< int*>(_v) = _t->maxPwm(); break;
  270. case 7: *reinterpret_cast< int*>(_v) = _t->minStart(); break;
  271. case 8: *reinterpret_cast< int*>(_v) = _t->minStop(); break;
  272. case 9: *reinterpret_cast< bool*>(_v) = _t->active(); break;
  273. case 10: *reinterpret_cast< bool*>(_v) = _t->testing(); break;
  274. case 11: *reinterpret_cast< int*>(_v) = _t->pwmMode(); break;
  275. default: break;
  276. }
  277. } else if (_c == QMetaObject::WriteProperty) {
  278. PwmFan *_t = static_cast<PwmFan *>(_o);
  279. Q_UNUSED(_t)
  280. void *_v = _a[0];
  281. switch (_id) {
  282. case 0: _t->setPwm(*reinterpret_cast< int*>(_v)); break;
  283. case 1: _t->setTemp(*reinterpret_cast< Temp**>(_v)); break;
  284. case 2: _t->setHasTemp(*reinterpret_cast< bool*>(_v)); break;
  285. case 3: _t->setMinTemp(*reinterpret_cast< int*>(_v)); break;
  286. case 4: _t->setMaxTemp(*reinterpret_cast< int*>(_v)); break;
  287. case 5: _t->setMinPwm(*reinterpret_cast< int*>(_v)); break;
  288. case 6: _t->setMaxPwm(*reinterpret_cast< int*>(_v)); break;
  289. case 7: _t->setMinStart(*reinterpret_cast< int*>(_v)); break;
  290. case 8: _t->setMinStop(*reinterpret_cast< int*>(_v)); break;
  291. case 9: _t->setActive(*reinterpret_cast< bool*>(_v)); break;
  292. case 11: _t->setPwmMode(*reinterpret_cast< int*>(_v)); break;
  293. default: break;
  294. }
  295. } else if (_c == QMetaObject::ResetProperty) {
  296. }
  297. #endif // QT_NO_PROPERTIES
  298. }
  299. const QMetaObject Fancontrol::PwmFan::staticMetaObject = {
  300. { &Fan::staticMetaObject, qt_meta_stringdata_Fancontrol__PwmFan.data,
  301. qt_meta_data_Fancontrol__PwmFan, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
  302. };
  303. const QMetaObject *Fancontrol::PwmFan::metaObject() const
  304. {
  305. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  306. }
  307. void *Fancontrol::PwmFan::qt_metacast(const char *_clname)
  308. {
  309. if (!_clname) return Q_NULLPTR;
  310. if (!strcmp(_clname, qt_meta_stringdata_Fancontrol__PwmFan.stringdata0))
  311. return static_cast<void*>(const_cast< PwmFan*>(this));
  312. return Fan::qt_metacast(_clname);
  313. }
  314. int Fancontrol::PwmFan::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  315. {
  316. _id = Fan::qt_metacall(_c, _id, _a);
  317. if (_id < 0)
  318. return _id;
  319. if (_c == QMetaObject::InvokeMetaMethod) {
  320. if (_id < 16)
  321. qt_static_metacall(this, _c, _id, _a);
  322. _id -= 16;
  323. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  324. if (_id < 16)
  325. *reinterpret_cast<int*>(_a[0]) = -1;
  326. _id -= 16;
  327. }
  328. #ifndef QT_NO_PROPERTIES
  329. else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
  330. || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
  331. qt_static_metacall(this, _c, _id, _a);
  332. _id -= 12;
  333. } else if (_c == QMetaObject::QueryPropertyDesignable) {
  334. _id -= 12;
  335. } else if (_c == QMetaObject::QueryPropertyScriptable) {
  336. _id -= 12;
  337. } else if (_c == QMetaObject::QueryPropertyStored) {
  338. _id -= 12;
  339. } else if (_c == QMetaObject::QueryPropertyEditable) {
  340. _id -= 12;
  341. } else if (_c == QMetaObject::QueryPropertyUser) {
  342. _id -= 12;
  343. }
  344. #endif // QT_NO_PROPERTIES
  345. return _id;
  346. }
  347. // SIGNAL 0
  348. void Fancontrol::PwmFan::pwmChanged()
  349. {
  350. QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
  351. }
  352. // SIGNAL 1
  353. void Fancontrol::PwmFan::tempChanged()
  354. {
  355. QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
  356. }
  357. // SIGNAL 2
  358. void Fancontrol::PwmFan::hasTempChanged()
  359. {
  360. QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
  361. }
  362. // SIGNAL 3
  363. void Fancontrol::PwmFan::minTempChanged()
  364. {
  365. QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
  366. }
  367. // SIGNAL 4
  368. void Fancontrol::PwmFan::maxTempChanged()
  369. {
  370. QMetaObject::activate(this, &staticMetaObject, 4, Q_NULLPTR);
  371. }
  372. // SIGNAL 5
  373. void Fancontrol::PwmFan::minPwmChanged()
  374. {
  375. QMetaObject::activate(this, &staticMetaObject, 5, Q_NULLPTR);
  376. }
  377. // SIGNAL 6
  378. void Fancontrol::PwmFan::maxPwmChanged()
  379. {
  380. QMetaObject::activate(this, &staticMetaObject, 6, Q_NULLPTR);
  381. }
  382. // SIGNAL 7
  383. void Fancontrol::PwmFan::minStartChanged()
  384. {
  385. QMetaObject::activate(this, &staticMetaObject, 7, Q_NULLPTR);
  386. }
  387. // SIGNAL 8
  388. void Fancontrol::PwmFan::minStopChanged()
  389. {
  390. QMetaObject::activate(this, &staticMetaObject, 8, Q_NULLPTR);
  391. }
  392. // SIGNAL 9
  393. void Fancontrol::PwmFan::activeChanged()
  394. {
  395. QMetaObject::activate(this, &staticMetaObject, 9, Q_NULLPTR);
  396. }
  397. // SIGNAL 10
  398. void Fancontrol::PwmFan::testingChanged()
  399. {
  400. QMetaObject::activate(this, &staticMetaObject, 10, Q_NULLPTR);
  401. }
  402. // SIGNAL 11
  403. void Fancontrol::PwmFan::pwmModeChanged()
  404. {
  405. QMetaObject::activate(this, &staticMetaObject, 11, Q_NULLPTR);
  406. }
  407. QT_END_MOC_NAMESPACE