2
0

moc_systemdcommunicator.cpp 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. /****************************************************************************
  2. ** Meta object code from reading C++ file 'systemdcommunicator.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/systemdcommunicator.h"
  9. #include <QtCore/qbytearray.h>
  10. #include <QtCore/qmetatype.h>
  11. #if !defined(Q_MOC_OUTPUT_REVISION)
  12. #error "The header file 'systemdcommunicator.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__SystemdCommunicator_t {
  20. QByteArrayData data[12];
  21. char stringdata0[196];
  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__SystemdCommunicator_t, stringdata0) + ofs \
  26. - idx * sizeof(QByteArrayData)) \
  27. )
  28. static const qt_meta_stringdata_Fancontrol__SystemdCommunicator_t qt_meta_stringdata_Fancontrol__SystemdCommunicator = {
  29. {
  30. QT_MOC_LITERAL(0, 0, 31), // "Fancontrol::SystemdCommunicator"
  31. QT_MOC_LITERAL(1, 32, 18), // "serviceNameChanged"
  32. QT_MOC_LITERAL(2, 51, 0), // ""
  33. QT_MOC_LITERAL(3, 52, 21), // "serviceEnabledChanged"
  34. QT_MOC_LITERAL(4, 74, 20), // "serviceActiveChanged"
  35. QT_MOC_LITERAL(5, 95, 12), // "errorChanged"
  36. QT_MOC_LITERAL(6, 108, 23), // "updateServiceProperties"
  37. QT_MOC_LITERAL(7, 132, 14), // "restartService"
  38. QT_MOC_LITERAL(8, 147, 5), // "error"
  39. QT_MOC_LITERAL(9, 153, 13), // "serviceExists"
  40. QT_MOC_LITERAL(10, 167, 14), // "serviceEnabled"
  41. QT_MOC_LITERAL(11, 182, 13) // "serviceActive"
  42. },
  43. "Fancontrol::SystemdCommunicator\0"
  44. "serviceNameChanged\0\0serviceEnabledChanged\0"
  45. "serviceActiveChanged\0errorChanged\0"
  46. "updateServiceProperties\0restartService\0"
  47. "error\0serviceExists\0serviceEnabled\0"
  48. "serviceActive"
  49. };
  50. #undef QT_MOC_LITERAL
  51. static const uint qt_meta_data_Fancontrol__SystemdCommunicator[] = {
  52. // content:
  53. 7, // revision
  54. 0, // classname
  55. 0, 0, // classinfo
  56. 6, 14, // methods
  57. 4, 56, // properties
  58. 0, 0, // enums/sets
  59. 0, 0, // constructors
  60. 0, // flags
  61. 4, // signalCount
  62. // signals: name, argc, parameters, tag, flags
  63. 1, 0, 44, 2, 0x06 /* Public */,
  64. 3, 0, 45, 2, 0x06 /* Public */,
  65. 4, 0, 46, 2, 0x06 /* Public */,
  66. 5, 0, 47, 2, 0x06 /* Public */,
  67. // slots: name, argc, parameters, tag, flags
  68. 6, 3, 48, 2, 0x09 /* Protected */,
  69. // methods: name, argc, parameters, tag, flags
  70. 7, 0, 55, 2, 0x02 /* Public */,
  71. // signals: parameters
  72. QMetaType::Void,
  73. QMetaType::Void,
  74. QMetaType::Void,
  75. QMetaType::Void,
  76. // slots: parameters
  77. QMetaType::Void, QMetaType::QString, QMetaType::QVariantMap, QMetaType::QStringList, 2, 2, 2,
  78. // methods: parameters
  79. QMetaType::Bool,
  80. // properties: name, type, flags
  81. 8, QMetaType::QString, 0x00495001,
  82. 9, QMetaType::Bool, 0x00495001,
  83. 10, QMetaType::Bool, 0x00495103,
  84. 11, QMetaType::Bool, 0x00495103,
  85. // properties: notify_signal_id
  86. 3,
  87. 0,
  88. 1,
  89. 2,
  90. 0 // eod
  91. };
  92. void Fancontrol::SystemdCommunicator::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
  93. {
  94. if (_c == QMetaObject::InvokeMetaMethod) {
  95. SystemdCommunicator *_t = static_cast<SystemdCommunicator *>(_o);
  96. Q_UNUSED(_t)
  97. switch (_id) {
  98. case 0: _t->serviceNameChanged(); break;
  99. case 1: _t->serviceEnabledChanged(); break;
  100. case 2: _t->serviceActiveChanged(); break;
  101. case 3: _t->errorChanged(); break;
  102. case 4: _t->updateServiceProperties((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QVariantMap(*)>(_a[2])),(*reinterpret_cast< QStringList(*)>(_a[3]))); break;
  103. case 5: { bool _r = _t->restartService();
  104. if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
  105. default: ;
  106. }
  107. } else if (_c == QMetaObject::IndexOfMethod) {
  108. int *result = reinterpret_cast<int *>(_a[0]);
  109. void **func = reinterpret_cast<void **>(_a[1]);
  110. {
  111. typedef void (SystemdCommunicator::*_t)();
  112. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SystemdCommunicator::serviceNameChanged)) {
  113. *result = 0;
  114. }
  115. }
  116. {
  117. typedef void (SystemdCommunicator::*_t)();
  118. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SystemdCommunicator::serviceEnabledChanged)) {
  119. *result = 1;
  120. }
  121. }
  122. {
  123. typedef void (SystemdCommunicator::*_t)();
  124. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SystemdCommunicator::serviceActiveChanged)) {
  125. *result = 2;
  126. }
  127. }
  128. {
  129. typedef void (SystemdCommunicator::*_t)();
  130. if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SystemdCommunicator::errorChanged)) {
  131. *result = 3;
  132. }
  133. }
  134. }
  135. #ifndef QT_NO_PROPERTIES
  136. else if (_c == QMetaObject::ReadProperty) {
  137. SystemdCommunicator *_t = static_cast<SystemdCommunicator *>(_o);
  138. Q_UNUSED(_t)
  139. void *_v = _a[0];
  140. switch (_id) {
  141. case 0: *reinterpret_cast< QString*>(_v) = _t->error(); break;
  142. case 1: *reinterpret_cast< bool*>(_v) = _t->serviceExists(); break;
  143. case 2: *reinterpret_cast< bool*>(_v) = _t->serviceEnabled(); break;
  144. case 3: *reinterpret_cast< bool*>(_v) = _t->serviceActive(); break;
  145. default: break;
  146. }
  147. } else if (_c == QMetaObject::WriteProperty) {
  148. SystemdCommunicator *_t = static_cast<SystemdCommunicator *>(_o);
  149. Q_UNUSED(_t)
  150. void *_v = _a[0];
  151. switch (_id) {
  152. case 2: _t->setServiceEnabled(*reinterpret_cast< bool*>(_v)); break;
  153. case 3: _t->setServiceActive(*reinterpret_cast< bool*>(_v)); break;
  154. default: break;
  155. }
  156. } else if (_c == QMetaObject::ResetProperty) {
  157. }
  158. #endif // QT_NO_PROPERTIES
  159. }
  160. const QMetaObject Fancontrol::SystemdCommunicator::staticMetaObject = {
  161. { &QObject::staticMetaObject, qt_meta_stringdata_Fancontrol__SystemdCommunicator.data,
  162. qt_meta_data_Fancontrol__SystemdCommunicator, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
  163. };
  164. const QMetaObject *Fancontrol::SystemdCommunicator::metaObject() const
  165. {
  166. return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
  167. }
  168. void *Fancontrol::SystemdCommunicator::qt_metacast(const char *_clname)
  169. {
  170. if (!_clname) return Q_NULLPTR;
  171. if (!strcmp(_clname, qt_meta_stringdata_Fancontrol__SystemdCommunicator.stringdata0))
  172. return static_cast<void*>(const_cast< SystemdCommunicator*>(this));
  173. return QObject::qt_metacast(_clname);
  174. }
  175. int Fancontrol::SystemdCommunicator::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
  176. {
  177. _id = QObject::qt_metacall(_c, _id, _a);
  178. if (_id < 0)
  179. return _id;
  180. if (_c == QMetaObject::InvokeMetaMethod) {
  181. if (_id < 6)
  182. qt_static_metacall(this, _c, _id, _a);
  183. _id -= 6;
  184. } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
  185. if (_id < 6)
  186. *reinterpret_cast<int*>(_a[0]) = -1;
  187. _id -= 6;
  188. }
  189. #ifndef QT_NO_PROPERTIES
  190. else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
  191. || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
  192. qt_static_metacall(this, _c, _id, _a);
  193. _id -= 4;
  194. } else if (_c == QMetaObject::QueryPropertyDesignable) {
  195. _id -= 4;
  196. } else if (_c == QMetaObject::QueryPropertyScriptable) {
  197. _id -= 4;
  198. } else if (_c == QMetaObject::QueryPropertyStored) {
  199. _id -= 4;
  200. } else if (_c == QMetaObject::QueryPropertyEditable) {
  201. _id -= 4;
  202. } else if (_c == QMetaObject::QueryPropertyUser) {
  203. _id -= 4;
  204. }
  205. #endif // QT_NO_PROPERTIES
  206. return _id;
  207. }
  208. // SIGNAL 0
  209. void Fancontrol::SystemdCommunicator::serviceNameChanged()
  210. {
  211. QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
  212. }
  213. // SIGNAL 1
  214. void Fancontrol::SystemdCommunicator::serviceEnabledChanged()
  215. {
  216. QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
  217. }
  218. // SIGNAL 2
  219. void Fancontrol::SystemdCommunicator::serviceActiveChanged()
  220. {
  221. QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
  222. }
  223. // SIGNAL 3
  224. void Fancontrol::SystemdCommunicator::errorChanged()
  225. {
  226. QMetaObject::activate(this, &staticMetaObject, 3, Q_NULLPTR);
  227. }
  228. QT_END_MOC_NAMESPACE