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_kbbind.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'kbbind.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 "../kbbind.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'kbbind.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[56];
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_KbBind_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 6), // "KbBind"
33 QT_MOC_LITERAL(1, 7, 7), // "didLoad"
34 QT_MOC_LITERAL(2, 15, 0), // ""
35 QT_MOC_LITERAL(3, 16, 13), // "layoutChanged"
36 QT_MOC_LITERAL(4, 30, 7), // "updated"
37 QT_MOC_LITERAL(5, 38, 8), // "keyEvent"
38 QT_MOC_LITERAL(6, 47, 3), // "key"
39 QT_MOC_LITERAL(7, 51, 4) // "down"
40 
41  },
42  "KbBind\0didLoad\0\0layoutChanged\0updated\0"
43  "keyEvent\0key\0down"
44 };
45 #undef QT_MOC_LITERAL
46 
47 static const uint qt_meta_data_KbBind[] = {
48 
49  // content:
50  7, // revision
51  0, // classname
52  0, 0, // classinfo
53  4, 14, // methods
54  0, 0, // properties
55  0, 0, // enums/sets
56  0, 0, // constructors
57  0, // flags
58  3, // signalCount
59 
60  // signals: name, argc, parameters, tag, flags
61  1, 0, 34, 2, 0x06 /* Public */,
62  3, 0, 35, 2, 0x06 /* Public */,
63  4, 0, 36, 2, 0x06 /* Public */,
64 
65  // slots: name, argc, parameters, tag, flags
66  5, 2, 37, 2, 0x0a /* Public */,
67 
68  // signals: parameters
69  QMetaType::Void,
70  QMetaType::Void,
71  QMetaType::Void,
72 
73  // slots: parameters
74  QMetaType::Void, QMetaType::QString, QMetaType::Bool, 6, 7,
75 
76  0 // eod
77 };
78 
79 void KbBind::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
80 {
81  if (_c == QMetaObject::InvokeMetaMethod) {
82  KbBind *_t = static_cast<KbBind *>(_o);
83  Q_UNUSED(_t)
84  switch (_id) {
85  case 0: _t->didLoad(); break;
86  case 1: _t->layoutChanged(); break;
87  case 2: _t->updated(); break;
88  case 3: _t->keyEvent((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
89  default: ;
90  }
91  } else if (_c == QMetaObject::IndexOfMethod) {
92  int *result = reinterpret_cast<int *>(_a[0]);
93  void **func = reinterpret_cast<void **>(_a[1]);
94  {
95  typedef void (KbBind::*_t)();
96  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KbBind::didLoad)) {
97  *result = 0;
98  return;
99  }
100  }
101  {
102  typedef void (KbBind::*_t)();
103  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KbBind::layoutChanged)) {
104  *result = 1;
105  return;
106  }
107  }
108  {
109  typedef void (KbBind::*_t)();
110  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KbBind::updated)) {
111  *result = 2;
112  return;
113  }
114  }
115  }
116 }
117 
118 const QMetaObject KbBind::staticMetaObject = {
119  { &QObject::staticMetaObject, qt_meta_stringdata_KbBind.data,
120  qt_meta_data_KbBind, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
121 };
122 
123 
124 const QMetaObject *KbBind::metaObject() const
125 {
126  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
127 }
128 
129 void *KbBind::qt_metacast(const char *_clname)
130 {
131  if (!_clname) return Q_NULLPTR;
132  if (!strcmp(_clname, qt_meta_stringdata_KbBind.stringdata0))
133  return static_cast<void*>(const_cast< KbBind*>(this));
134  return QObject::qt_metacast(_clname);
135 }
136 
137 int KbBind::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
138 {
139  _id = QObject::qt_metacall(_c, _id, _a);
140  if (_id < 0)
141  return _id;
142  if (_c == QMetaObject::InvokeMetaMethod) {
143  if (_id < 4)
144  qt_static_metacall(this, _c, _id, _a);
145  _id -= 4;
146  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
147  if (_id < 4)
148  *reinterpret_cast<int*>(_a[0]) = -1;
149  _id -= 4;
150  }
151  return _id;
152 }
153 
154 // SIGNAL 0
156 {
157  QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
158 }
159 
160 // SIGNAL 1
162 {
163  QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
164 }
165 
166 // SIGNAL 2
168 {
169  QMetaObject::activate(this, &staticMetaObject, 2, Q_NULLPTR);
170 }
171 QT_END_MOC_NAMESPACE
static const uint qt_meta_data_KbBind[]
Definition: moc_kbbind.cpp:47
static const qt_meta_stringdata_KbBind_t qt_meta_stringdata_KbBind
Definition: moc_kbbind.cpp:30
void didLoad()
Definition: moc_kbbind.cpp:155
Definition: kbbind.h:20
void keyEvent(const QString &key, bool down)
Definition: kbbind.cpp:296
#define QT_MOC_LITERAL(idx, ofs, len)
Definition: moc_kbbind.cpp:25
QByteArrayData data[8]
Definition: moc_kbbind.cpp:22
void updated()
Definition: moc_kbbind.cpp:167
void layoutChanged()
Definition: moc_kbbind.cpp:161