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_kbfirmware.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'kbfirmware.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 "../kbfirmware.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'kbfirmware.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[7];
23  char stringdata0[77];
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_KbFirmware_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 10), // "KbFirmware"
33 QT_MOC_LITERAL(1, 11, 10), // "downloaded"
34 QT_MOC_LITERAL(2, 22, 0), // ""
35 QT_MOC_LITERAL(3, 23, 15), // "processDownload"
36 QT_MOC_LITERAL(4, 39, 14), // "QNetworkReply*"
37 QT_MOC_LITERAL(5, 54, 5), // "reply"
38 QT_MOC_LITERAL(6, 60, 16) // "downloadFinished"
39 
40  },
41  "KbFirmware\0downloaded\0\0processDownload\0"
42  "QNetworkReply*\0reply\0downloadFinished"
43 };
44 #undef QT_MOC_LITERAL
45 
46 static const uint qt_meta_data_KbFirmware[] = {
47 
48  // content:
49  7, // revision
50  0, // classname
51  0, 0, // classinfo
52  3, 14, // methods
53  0, 0, // properties
54  0, 0, // enums/sets
55  0, 0, // constructors
56  0, // flags
57  1, // signalCount
58 
59  // signals: name, argc, parameters, tag, flags
60  1, 0, 29, 2, 0x06 /* Public */,
61 
62  // slots: name, argc, parameters, tag, flags
63  3, 1, 30, 2, 0x08 /* Private */,
64  6, 0, 33, 2, 0x08 /* Private */,
65 
66  // signals: parameters
67  QMetaType::Void,
68 
69  // slots: parameters
70  QMetaType::Void, 0x80000000 | 4, 5,
71  QMetaType::Void,
72 
73  0 // eod
74 };
75 
76 void KbFirmware::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
77 {
78  if (_c == QMetaObject::InvokeMetaMethod) {
79  KbFirmware *_t = static_cast<KbFirmware *>(_o);
80  Q_UNUSED(_t)
81  switch (_id) {
82  case 0: _t->downloaded(); break;
83  case 1: _t->processDownload((*reinterpret_cast< QNetworkReply*(*)>(_a[1]))); break;
84  case 2: _t->downloadFinished(); break;
85  default: ;
86  }
87  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
88  switch (_id) {
89  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
90  case 1:
91  switch (*reinterpret_cast<int*>(_a[1])) {
92  default: *reinterpret_cast<int*>(_a[0]) = -1; break;
93  case 0:
94  *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QNetworkReply* >(); 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 (KbFirmware::*_t)();
103  if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&KbFirmware::downloaded)) {
104  *result = 0;
105  return;
106  }
107  }
108  }
109 }
110 
111 const QMetaObject KbFirmware::staticMetaObject = {
112  { &QObject::staticMetaObject, qt_meta_stringdata_KbFirmware.data,
113  qt_meta_data_KbFirmware, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
114 };
115 
116 
117 const QMetaObject *KbFirmware::metaObject() const
118 {
119  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
120 }
121 
122 void *KbFirmware::qt_metacast(const char *_clname)
123 {
124  if (!_clname) return Q_NULLPTR;
125  if (!strcmp(_clname, qt_meta_stringdata_KbFirmware.stringdata0))
126  return static_cast<void*>(const_cast< KbFirmware*>(this));
127  return QObject::qt_metacast(_clname);
128 }
129 
130 int KbFirmware::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
131 {
132  _id = QObject::qt_metacall(_c, _id, _a);
133  if (_id < 0)
134  return _id;
135  if (_c == QMetaObject::InvokeMetaMethod) {
136  if (_id < 3)
137  qt_static_metacall(this, _c, _id, _a);
138  _id -= 3;
139  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
140  if (_id < 3)
141  qt_static_metacall(this, _c, _id, _a);
142  _id -= 3;
143  }
144  return _id;
145 }
146 
147 // SIGNAL 0
149 {
150  QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
151 }
152 QT_END_MOC_NAMESPACE
static const qt_meta_stringdata_KbFirmware_t qt_meta_stringdata_KbFirmware
void processDownload(QNetworkReply *reply)
Definition: kbfirmware.cpp:41
#define QT_MOC_LITERAL(idx, ofs, len)
void downloadFinished()
Definition: kbfirmware.cpp:141
static const uint qt_meta_data_KbFirmware[]