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_mainwindow.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'mainwindow.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 "../mainwindow.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'mainwindow.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[22];
23  char stringdata0[253];
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_MainWindow_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 10), // "MainWindow"
33 QT_MOC_LITERAL(1, 11, 10), // "showWindow"
34 QT_MOC_LITERAL(2, 22, 0), // ""
35 QT_MOC_LITERAL(3, 23, 11), // "stateChange"
36 QT_MOC_LITERAL(4, 35, 20), // "Qt::ApplicationState"
37 QT_MOC_LITERAL(5, 56, 5), // "state"
38 QT_MOC_LITERAL(6, 62, 7), // "quitApp"
39 QT_MOC_LITERAL(7, 70, 9), // "addDevice"
40 QT_MOC_LITERAL(8, 80, 3), // "Kb*"
41 QT_MOC_LITERAL(9, 84, 6), // "device"
42 QT_MOC_LITERAL(10, 91, 12), // "removeDevice"
43 QT_MOC_LITERAL(11, 104, 13), // "updateVersion"
44 QT_MOC_LITERAL(12, 118, 14), // "checkFwUpdates"
45 QT_MOC_LITERAL(13, 133, 9), // "timerTick"
46 QT_MOC_LITERAL(14, 143, 11), // "iconClicked"
47 QT_MOC_LITERAL(15, 155, 33), // "QSystemTrayIcon::ActivationRe..."
48 QT_MOC_LITERAL(16, 189, 6), // "reason"
49 QT_MOC_LITERAL(17, 196, 7), // "cleanup"
50 QT_MOC_LITERAL(18, 204, 24), // "showFwUpdateNotification"
51 QT_MOC_LITERAL(19, 229, 8), // "QWidget*"
52 QT_MOC_LITERAL(20, 238, 6), // "widget"
53 QT_MOC_LITERAL(21, 245, 7) // "version"
54 
55  },
56  "MainWindow\0showWindow\0\0stateChange\0"
57  "Qt::ApplicationState\0state\0quitApp\0"
58  "addDevice\0Kb*\0device\0removeDevice\0"
59  "updateVersion\0checkFwUpdates\0timerTick\0"
60  "iconClicked\0QSystemTrayIcon::ActivationReason\0"
61  "reason\0cleanup\0showFwUpdateNotification\0"
62  "QWidget*\0widget\0version"
63 };
64 #undef QT_MOC_LITERAL
65 
66 static const uint qt_meta_data_MainWindow[] = {
67 
68  // content:
69  7, // revision
70  0, // classname
71  0, 0, // classinfo
72  11, 14, // methods
73  0, 0, // properties
74  0, 0, // enums/sets
75  0, 0, // constructors
76  0, // flags
77  0, // signalCount
78 
79  // slots: name, argc, parameters, tag, flags
80  1, 0, 69, 2, 0x0a /* Public */,
81  3, 1, 70, 2, 0x0a /* Public */,
82  6, 0, 73, 2, 0x0a /* Public */,
83  7, 1, 74, 2, 0x08 /* Private */,
84  10, 1, 77, 2, 0x08 /* Private */,
85  11, 0, 80, 2, 0x08 /* Private */,
86  12, 0, 81, 2, 0x08 /* Private */,
87  13, 0, 82, 2, 0x08 /* Private */,
88  14, 1, 83, 2, 0x08 /* Private */,
89  17, 0, 86, 2, 0x08 /* Private */,
90  18, 2, 87, 2, 0x08 /* Private */,
91 
92  // slots: parameters
93  QMetaType::Void,
94  QMetaType::Void, 0x80000000 | 4, 5,
95  QMetaType::Void,
96  QMetaType::Void, 0x80000000 | 8, 9,
97  QMetaType::Void, 0x80000000 | 8, 9,
98  QMetaType::Void,
99  QMetaType::Void,
100  QMetaType::Void,
101  QMetaType::Void, 0x80000000 | 15, 16,
102  QMetaType::Void,
103  QMetaType::Void, 0x80000000 | 19, QMetaType::Float, 20, 21,
104 
105  0 // eod
106 };
107 
108 void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
109 {
110  if (_c == QMetaObject::InvokeMetaMethod) {
111  MainWindow *_t = static_cast<MainWindow *>(_o);
112  Q_UNUSED(_t)
113  switch (_id) {
114  case 0: _t->showWindow(); break;
115  case 1: _t->stateChange((*reinterpret_cast< Qt::ApplicationState(*)>(_a[1]))); break;
116  case 2: _t->quitApp(); break;
117  case 3: _t->addDevice((*reinterpret_cast< Kb*(*)>(_a[1]))); break;
118  case 4: _t->removeDevice((*reinterpret_cast< Kb*(*)>(_a[1]))); break;
119  case 5: _t->updateVersion(); break;
120  case 6: _t->checkFwUpdates(); break;
121  case 7: _t->timerTick(); break;
122  case 8: _t->iconClicked((*reinterpret_cast< QSystemTrayIcon::ActivationReason(*)>(_a[1]))); break;
123  case 9: _t->cleanup(); break;
124  case 10: _t->showFwUpdateNotification((*reinterpret_cast< QWidget*(*)>(_a[1])),(*reinterpret_cast< float(*)>(_a[2]))); break;
125  default: ;
126  }
127  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
128  switch (_id) {
129  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
130  case 3:
131  switch (*reinterpret_cast<int*>(_a[1])) {
132  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
133  case 0:
134  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Kb* >(); break;
135  }
136  break;
137  case 4:
138  switch (*reinterpret_cast<int*>(_a[1])) {
139  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
140  case 0:
141  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Kb* >(); break;
142  }
143  break;
144  case 10:
145  switch (*reinterpret_cast<int*>(_a[1])) {
146  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
147  case 0:
148  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QWidget* >(); break;
149  }
150  break;
151  }
152  }
153 }
154 
155 const QMetaObject MainWindow::staticMetaObject = {
156  { &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data,
157  qt_meta_data_MainWindow, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
158 };
159 
160 
161 const QMetaObject *MainWindow::metaObject() const
162 {
163  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
164 }
165 
166 void *MainWindow::qt_metacast(const char *_clname)
167 {
168  if (!_clname) return Q_NULLPTR;
169  if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
170  return static_cast<void*>(const_cast< MainWindow*>(this));
171  return QMainWindow::qt_metacast(_clname);
172 }
173 
174 int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
175 {
176  _id = QMainWindow::qt_metacall(_c, _id, _a);
177  if (_id < 0)
178  return _id;
179  if (_c == QMetaObject::InvokeMetaMethod) {
180  if (_id < 11)
181  qt_static_metacall(this, _c, _id, _a);
182  _id -= 11;
183  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
184  if (_id < 11)
185  qt_static_metacall(this, _c, _id, _a);
186  _id -= 11;
187  }
188  return _id;
189 }
190 QT_END_MOC_NAMESPACE
void stateChange(Qt::ApplicationState state)
Definition: mainwindow.cpp:314
void showFwUpdateNotification(QWidget *widget, float version)
Definition: mainwindow.cpp:230
static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow
void cleanup()
Definition: mainwindow.cpp:333
void checkFwUpdates()
Definition: mainwindow.cpp:210
void quitApp()
Definition: mainwindow.cpp:329
void showWindow()
Definition: mainwindow.cpp:308
void removeDevice(Kb *device)
Definition: mainwindow.cpp:177
#define QT_MOC_LITERAL(idx, ofs, len)
void updateVersion()
Definition: mainwindow.cpp:191
Definition: kb.h:11
void iconClicked(QSystemTrayIcon::ActivationReason reason)
Definition: mainwindow.cpp:295
void timerTick()
Definition: mainwindow.cpp:261
void addDevice(Kb *device)
Definition: mainwindow.cpp:159
static const uint qt_meta_data_MainWindow[]