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_macroreader.cpp
Go to the documentation of this file.
1 /****************************************************************************
2 ** Meta object code from reading C++ file 'macroreader.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 "../macroreader.h"
10 #include <QtCore/qbytearray.h>
11 #include <QtCore/qmetatype.h>
12 #if !defined(Q_MOC_OUTPUT_REVISION)
13 #error "The header file 'macroreader.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[4];
23  char stringdata0[34];
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_MacroReaderThread_t, stringdata0) + ofs \
28  - idx * sizeof(QByteArrayData)) \
29  )
31  {
32 QT_MOC_LITERAL(0, 0, 17), // "MacroReaderThread"
33 QT_MOC_LITERAL(1, 18, 9), // "readMacro"
34 QT_MOC_LITERAL(2, 28, 0), // ""
35 QT_MOC_LITERAL(3, 29, 4) // "line"
36 
37  },
38  "MacroReaderThread\0readMacro\0\0line"
39 };
40 #undef QT_MOC_LITERAL
41 
42 static const uint qt_meta_data_MacroReaderThread[] = {
43 
44  // content:
45  7, // revision
46  0, // classname
47  0, 0, // classinfo
48  1, 14, // methods
49  0, 0, // properties
50  0, 0, // enums/sets
51  0, 0, // constructors
52  0, // flags
53  0, // signalCount
54 
55  // slots: name, argc, parameters, tag, flags
56  1, 1, 19, 2, 0x08 /* Private */,
57 
58  // slots: parameters
59  QMetaType::Void, QMetaType::QString, 3,
60 
61  0 // eod
62 };
63 
64 void MacroReaderThread::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
65 {
66  if (_c == QMetaObject::InvokeMetaMethod) {
67  MacroReaderThread *_t = static_cast<MacroReaderThread *>(_o);
68  Q_UNUSED(_t)
69  switch (_id) {
70  case 0: _t->readMacro((*reinterpret_cast< QString(*)>(_a[1]))); break;
71  default: ;
72  }
73  }
74 }
75 
76 const QMetaObject MacroReaderThread::staticMetaObject = {
77  { &QThread::staticMetaObject, qt_meta_stringdata_MacroReaderThread.data,
78  qt_meta_data_MacroReaderThread, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
79 };
80 
81 
82 const QMetaObject *MacroReaderThread::metaObject() const
83 {
84  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
85 }
86 
87 void *MacroReaderThread::qt_metacast(const char *_clname)
88 {
89  if (!_clname) return Q_NULLPTR;
90  if (!strcmp(_clname, qt_meta_stringdata_MacroReaderThread.stringdata0))
91  return static_cast<void*>(const_cast< MacroReaderThread*>(this));
92  return QThread::qt_metacast(_clname);
93 }
94 
95 int MacroReaderThread::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
96 {
97  _id = QThread::qt_metacall(_c, _id, _a);
98  if (_id < 0)
99  return _id;
100  if (_c == QMetaObject::InvokeMetaMethod) {
101  if (_id < 1)
102  qt_static_metacall(this, _c, _id, _a);
103  _id -= 1;
104  } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
105  if (_id < 1)
106  *reinterpret_cast<int*>(_a[0]) = -1;
107  _id -= 1;
108  }
109  return _id;
110 }
112  QByteArrayData data[1];
113  char stringdata0[12];
114 };
115 #define QT_MOC_LITERAL(idx, ofs, len) \
116  Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
117  qptrdiff(offsetof(qt_meta_stringdata_MacroReader_t, stringdata0) + ofs \
118  - idx * sizeof(QByteArrayData)) \
119  )
121  {
122 QT_MOC_LITERAL(0, 0, 11) // "MacroReader"
123 
124  },
125  "MacroReader"
126 };
127 #undef QT_MOC_LITERAL
128 
129 static const uint qt_meta_data_MacroReader[] = {
130 
131  // content:
132  7, // revision
133  0, // classname
134  0, 0, // classinfo
135  0, 0, // methods
136  0, 0, // properties
137  0, 0, // enums/sets
138  0, 0, // constructors
139  0, // flags
140  0, // signalCount
141 
142  0 // eod
143 };
144 
145 void MacroReader::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
146 {
147  Q_UNUSED(_o);
148  Q_UNUSED(_id);
149  Q_UNUSED(_c);
150  Q_UNUSED(_a);
151 }
152 
153 const QMetaObject MacroReader::staticMetaObject = {
154  { &QThread::staticMetaObject, qt_meta_stringdata_MacroReader.data,
155  qt_meta_data_MacroReader, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
156 };
157 
158 
159 const QMetaObject *MacroReader::metaObject() const
160 {
161  return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
162 }
163 
164 void *MacroReader::qt_metacast(const char *_clname)
165 {
166  if (!_clname) return Q_NULLPTR;
167  if (!strcmp(_clname, qt_meta_stringdata_MacroReader.stringdata0))
168  return static_cast<void*>(const_cast< MacroReader*>(this));
169  return QThread::qt_metacast(_clname);
170 }
171 
172 int MacroReader::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
173 {
174  _id = QThread::qt_metacall(_c, _id, _a);
175  if (_id < 0)
176  return _id;
177  return _id;
178 }
179 QT_END_MOC_NAMESPACE
The MacroReader class creates a worker thread object. It does a connect do delayed deletion of thread...
Definition: macroreader.h:87
#define QT_MOC_LITERAL(idx, ofs, len)
static const qt_meta_stringdata_MacroReader_t qt_meta_stringdata_MacroReader
The MacroReaderThread class is responsible for reading Macro Key Values. It is created as a separate ...
Definition: macroreader.h:22
static const qt_meta_stringdata_MacroReaderThread_t qt_meta_stringdata_MacroReaderThread
static const uint qt_meta_data_MacroReader[]
static const uint qt_meta_data_MacroReaderThread[]
void readMacro(QString line)
readMacro is called for each line received by the worker thread. The method ist called via signal (me...
Definition: macroreader.cpp:27