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.)"
20 QT_BEGIN_MOC_NAMESPACE
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)) \
38 "MacroReaderThread\0readMacro\0\0line"
59 QMetaType::Void, QMetaType::QString, 3,
64 void MacroReaderThread::qt_static_metacall(
QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
66 if (_c == QMetaObject::InvokeMetaMethod) {
70 case 0: _t->
readMacro((*
reinterpret_cast< QString(*)
>(_a[1])));
break;
76 const QMetaObject MacroReaderThread::staticMetaObject = {
77 { &QThread::staticMetaObject, qt_meta_stringdata_MacroReaderThread.
data,
82 const QMetaObject *MacroReaderThread::metaObject()
const
84 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
87 void *MacroReaderThread::qt_metacast(
const char *_clname)
89 if (!_clname)
return Q_NULLPTR;
90 if (!strcmp(_clname, qt_meta_stringdata_MacroReaderThread.
stringdata0))
92 return QThread::qt_metacast(_clname);
95 int MacroReaderThread::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
97 _id = QThread::qt_metacall(_c, _id, _a);
100 if (_c == QMetaObject::InvokeMetaMethod) {
102 qt_static_metacall(
this, _c, _id, _a);
104 }
else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
106 *
reinterpret_cast<int*
>(_a[0]) = -1;
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)) \
127 #undef QT_MOC_LITERAL
145 void MacroReader::qt_static_metacall(
QObject *_o, QMetaObject::Call _c,
int _id,
void **_a)
153 const QMetaObject MacroReader::staticMetaObject = {
154 { &QThread::staticMetaObject, qt_meta_stringdata_MacroReader.
data,
159 const QMetaObject *MacroReader::metaObject()
const
161 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
164 void *MacroReader::qt_metacast(
const char *_clname)
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);
172 int MacroReader::qt_metacall(QMetaObject::Call _c,
int _id,
void **_a)
174 _id = QThread::qt_metacall(_c, _id, _a);
The MacroReader class creates a worker thread object. It does a connect do delayed deletion of thread...
#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 ...
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...