ckb-next  v0.2.8 at branch master
ckb-next driver for corsair devices
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
moc_kblight.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'kblight.h'
3 **
4 ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.7.1)
5 **
6 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
8 
9 #include "../kblight.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #include <QtCore/QSet>
13 #if !defined(Q_MOC_OUTPUT_REVISION)
14 #error "The header file 'kblight.h' doesn't include <QObject>."
15 #elif Q_MOC_OUTPUT_REVISION != 67
16 #error "This file was generated using the moc from 5.7.1. It"
17 #error "cannot be used with the include files from this version of Qt."
18 #error "(The moc has changed too much.)"
19 #endif
20 
21 QT_BEGIN_MOC_NAMESPACE
23  QByteArrayData data[9];
24  char stringdata0[92];
25 };
26 #define QT_MOC_LITERAL(idx, ofs, len) \
27  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
28  qptrdiff(offsetof(qt_meta_stringdata_KbLight_t, stringdata0) + ofs \
29  - idx * sizeof(QByteArrayData)) \
30  )
32  {
33 QT_MOC_LITERAL(0, 0, 7), // "KbLight"
34 QT_MOC_LITERAL(1, 8, 7), // "didLoad"
35 QT_MOC_LITERAL(2, 16, 0), // ""
36 QT_MOC_LITERAL(3, 17, 7), // "updated"
37 QT_MOC_LITERAL(4, 25, 14), // "frameDisplayed"
38 QT_MOC_LITERAL(5, 40, 8), // "ColorMap"
39 QT_MOC_LITERAL(6, 49, 14), // "animatedColors"
40 QT_MOC_LITERAL(7, 64, 13), // "QSet<QString>"
41 QT_MOC_LITERAL(8, 78, 13) // "indicatorList"
42 
43  },
44  "KbLight\0didLoad\0\0updated\0frameDisplayed\0"
45  "ColorMap\0animatedColors\0QSet<QString>\0"
46  "indicatorList"
47 };
48 #undef QT_MOC_LITERAL
49 
50 static const uint qt_meta_data_KbLight[] = {
51 
52  // content:
53  7, // revision
54  0, // classname
55  0, 0, // classinfo
56  3, 14, // methods
57  0, 0, // properties
58  0, 0, // enums/sets
59  0, 0, // constructors
60  0, // flags
61  3, // signalCount
62 
63  // signals: name, argc, parameters, tag, flags
64  1, 0, 29, 2, 0x06 /* Public */,
65  3, 0, 30, 2, 0x06 /* Public */,
66  4, 2, 31, 2, 0x06 /* Public */,
67 
68  // signals: parameters
69  QMetaType::Void,
70  QMetaType::Void,
71  QMetaType::Void, 0x80000000 | 5, 0x80000000 | 7, 6, 8,
72 
73  0 // eod
74 };
75 
76 void KbLight::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
77 {
78  if (_c == QMetaObject::InvokeMetaMethod) {
79  KbLight *_t = static_cast<KbLight *>(_o);
80  Q_UNUSED(_t)
81  switch (_id) {
82  case 0: _t->didLoad(); break;
83  case 1: _t->updated(); break;
84  case 2: _t->frameDisplayed((*reinterpret_cast< const ColorMap(*)>(_a[1])),(*reinterpret_cast< const QSet<QString>(*)>(_a[2]))); break;
85  default: ;
86  }
87  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
88  switch (_id) {
89  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
90  case 2:
91  switch (*reinterpret_cast<int*>(_a[1])) {
92  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
93  case 1:
94  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QSet<QString> >(); break;
95  }
96  break;
97  }
98  } else if (_c == QMetaObject::IndexOfMethod) {
99  int *result = reinterpret_cast<int *>(_a[0]);
100  void **func = reinterpret_cast<void **>(_a[1]);
101  {
102  typedef void (KbLight::*_t)();
103  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KbLight::didLoad)) {
104  *result = 0;
105  return;
106  }
107  }
108  {
109  typedef void (KbLight::*_t)();
110  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KbLight::updated)) {
111  *result = 1;
112  return;
113  }
114  }
115  {
116  typedef void (KbLight::*_t)(const ColorMap & , const QSet<QString> & );
117  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KbLight::frameDisplayed)) {
118  *result = 2;
119  return;
120  }
121  }
122  }
123 }
124 
125 const QMetaObject KbLight::staticMetaObject = {
126  { &QObject::staticMetaObject, qt_meta_stringdata_KbLight.data,
127  qt_meta_data_KbLight, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
128 };
129 
130 
131 const QMetaObject *KbLight::metaObject() const
132 {
133  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
134 }
135 
136 void *KbLight::qt_metacast(const char *_clname)
137 {
138  if (!_clname) return Q_NULLPTR;
139  if (!strcmp(_clname, qt_meta_stringdata_KbLight.stringdata0))
140  return static_cast<void*>(const_cast< KbLight*>(this));
141  return QObject::qt_metacast(_clname);
142 }
143 
144 int KbLight::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
145 {
146  _id = QObject::qt_metacall(_c, _id, _a);
147  if (_id < 0)
148  return _id;
149  if (_c == QMetaObject::InvokeMetaMethod) {
150  if (_id < 3)
151  qt_static_metacall(this, _c, _id, _a);
152  _id -= 3;
153  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
154  if (_id < 3)
155  qt_static_metacall(this, _c, _id, _a);
156  _id -= 3;
157  }
158  return _id;
159 }
160 
161 // SIGNAL 0
163 {
164  QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
165 }
166 
167 // SIGNAL 1
169 {
170  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
171 }
172 
173 // SIGNAL 2
174 void KbLight::frameDisplayed(const ColorMap & _t1, const QSet<QString> & _t2)
175 {
176  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
177  QMetaObject::activate(this, &staticMetaObject, 2, _a);
178 }
179 QT_END_MOC_NAMESPACE
void frameDisplayed(const ColorMap &animatedColors, const QSet< QString > &indicatorList)
void didLoad()
void updated()
#define QT_MOC_LITERAL(idx, ofs, len)
Definition: moc_kblight.cpp:26
static const qt_meta_stringdata_KbLight_t qt_meta_stringdata_KbLight
Definition: moc_kblight.cpp:31
static const uint qt_meta_data_KbLight[]
Definition: moc_kblight.cpp:50