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_kbmanager.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'kbmanager.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 "../kbmanager.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'kbmanager.h' doesn't include <QObject>."
14 #elif Q_MOC_OUTPUT_REVISION != 67
15 #error "This file was generated using the moc from 5.7.1. 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 
20 QT_BEGIN_MOC_NAMESPACE
22  QByteArrayData data[8];
23  char stringdata0[78];
24 };
25 #define QT_MOC_LITERAL(idx, ofs, len) \
26  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
27  qptrdiff(offsetof(qt_meta_stringdata_KbManager_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 9), // "KbManager"
33 QT_MOC_LITERAL(1, 10, 11), // "kbConnected"
34 QT_MOC_LITERAL(2, 22, 0), // ""
35 QT_MOC_LITERAL(3, 23, 3), // "Kb*"
36 QT_MOC_LITERAL(4, 27, 6), // "device"
37 QT_MOC_LITERAL(5, 34, 14), // "kbDisconnected"
38 QT_MOC_LITERAL(6, 49, 14), // "versionUpdated"
39 QT_MOC_LITERAL(7, 64, 13) // "scanKeyboards"
40 
41  },
42  "KbManager\0kbConnected\0\0Kb*\0device\0"
43  "kbDisconnected\0versionUpdated\0"
44  "scanKeyboards"
45 };
46 #undef QT_MOC_LITERAL
47 
48 static const uint qt_meta_data_KbManager[] = {
49 
50  // content:
51  7, // revision
52  0, // classname
53  0, 0, // classinfo
54  4, 14, // methods
55  0, 0, // properties
56  0, 0, // enums/sets
57  0, 0, // constructors
58  0, // flags
59  3, // signalCount
60 
61  // signals: name, argc, parameters, tag, flags
62  1, 1, 34, 2, 0x06 /* Public */,
63  5, 1, 37, 2, 0x06 /* Public */,
64  6, 0, 40, 2, 0x06 /* Public */,
65 
66  // slots: name, argc, parameters, tag, flags
67  7, 0, 41, 2, 0x08 /* Private */,
68 
69  // signals: parameters
70  QMetaType::Void, 0x80000000 | 3, 4,
71  QMetaType::Void, 0x80000000 | 3, 4,
72  QMetaType::Void,
73 
74  // slots: parameters
75  QMetaType::Void,
76 
77  0 // eod
78 };
79 
80 void KbManager::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
81 {
82  if (_c == QMetaObject::InvokeMetaMethod) {
83  KbManager *_t = static_cast<KbManager *>(_o);
84  Q_UNUSED(_t)
85  switch (_id) {
86  case 0: _t->kbConnected((*reinterpret_cast< Kb*(*)>(_a[1]))); break;
87  case 1: _t->kbDisconnected((*reinterpret_cast< Kb*(*)>(_a[1]))); break;
88  case 2: _t->versionUpdated(); break;
89  case 3: _t->scanKeyboards(); break;
90  default: ;
91  }
92  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
93  switch (_id) {
94  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
95  case 0:
96  switch (*reinterpret_cast<int*>(_a[1])) {
97  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
98  case 0:
99  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Kb* >(); break;
100  }
101  break;
102  case 1:
103  switch (*reinterpret_cast<int*>(_a[1])) {
104  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
105  case 0:
106  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Kb* >(); break;
107  }
108  break;
109  }
110  } else if (_c == QMetaObject::IndexOfMethod) {
111  int *result = reinterpret_cast<int *>(_a[0]);
112  void **func = reinterpret_cast<void **>(_a[1]);
113  {
114  typedef void (KbManager::*_t)(Kb * );
115  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KbManager::kbConnected)) {
116  *result = 0;
117  return;
118  }
119  }
120  {
121  typedef void (KbManager::*_t)(Kb * );
122  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KbManager::kbDisconnected)) {
123  *result = 1;
124  return;
125  }
126  }
127  {
128  typedef void (KbManager::*_t)();
129  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KbManager::versionUpdated)) {
130  *result = 2;
131  return;
132  }
133  }
134  }
135 }
136 
137 const QMetaObject KbManager::staticMetaObject = {
138  { &QObject::staticMetaObject, qt_meta_stringdata_KbManager.data,
139  qt_meta_data_KbManager, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
140 };
141 
142 
143 const QMetaObject *KbManager::metaObject() const
144 {
145  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
146 }
147 
148 void *KbManager::qt_metacast(const char *_clname)
149 {
150  if (!_clname) return Q_NULLPTR;
151  if (!strcmp(_clname, qt_meta_stringdata_KbManager.stringdata0))
152  return static_cast<void*>(const_cast< KbManager*>(this));
153  return QObject::qt_metacast(_clname);
154 }
155 
156 int KbManager::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
157 {
158  _id = QObject::qt_metacall(_c, _id, _a);
159  if (_id < 0)
160  return _id;
161  if (_c == QMetaObject::InvokeMetaMethod) {
162  if (_id < 4)
163  qt_static_metacall(this, _c, _id, _a);
164  _id -= 4;
165  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
166  if (_id < 4)
167  qt_static_metacall(this, _c, _id, _a);
168  _id -= 4;
169  }
170  return _id;
171 }
172 
173 // SIGNAL 0
175 {
176  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
177  QMetaObject::activate(this, &staticMetaObject, 0, _a);
178 }
179 
180 // SIGNAL 1
182 {
183  void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
184  QMetaObject::activate(this, &staticMetaObject, 1, _a);
185 }
186 
187 // SIGNAL 2
189 {
190  QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
191 }
192 QT_END_MOC_NAMESPACE
void versionUpdated()
void kbDisconnected(Kb *device)
void kbConnected(Kb *device)
Definition: kb.h:11
#define QT_MOC_LITERAL(idx, ofs, len)
static const qt_meta_stringdata_KbManager_t qt_meta_stringdata_KbManager
static const uint qt_meta_data_KbManager[]
void scanKeyboards()
Definition: kbmanager.cpp:62