1 | /**************************************************************************** |
2 | ** Meta object code from reading C++ file 'qthread.h' |
3 | ** |
4 | ** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0) |
5 | ** |
6 | ** WARNING! All changes made in this file will be lost! |
7 | *****************************************************************************/ |
8 | |
9 | #include <memory> |
10 | #include "thread/qthread.h" |
11 | #include <QtCore/qbytearray.h> |
12 | #include <QtCore/qmetatype.h> |
13 | #if !defined(Q_MOC_OUTPUT_REVISION) |
14 | #error "The header file 'qthread.h' doesn't include <QObject>." |
15 | #elif Q_MOC_OUTPUT_REVISION != 68 |
16 | #error "This file was generated using the moc from 6.0.0. It" |
17 | #error "cannot be used with the include files from this version of Qt." |
18 | #error "(The moc has changed too much.)" |
19 | #endif |
20 | |
21 | QT_BEGIN_MOC_NAMESPACE |
22 | QT_WARNING_PUSH |
23 | QT_WARNING_DISABLE_DEPRECATED |
24 | struct qt_meta_stringdata_QThread_t { |
25 | const uint offsetsAndSize[16]; |
26 | char stringdata0[56]; |
27 | }; |
28 | #define QT_MOC_LITERAL(ofs, len) \ |
29 | uint(offsetof(qt_meta_stringdata_QThread_t, stringdata0) + ofs), len |
30 | static const qt_meta_stringdata_QThread_t qt_meta_stringdata_QThread = { |
31 | { |
32 | QT_MOC_LITERAL(0, 7), // "QThread" |
33 | QT_MOC_LITERAL(8, 7), // "started" |
34 | QT_MOC_LITERAL(16, 0), // "" |
35 | QT_MOC_LITERAL(17, 8), // "finished" |
36 | QT_MOC_LITERAL(26, 5), // "start" |
37 | QT_MOC_LITERAL(32, 8), // "Priority" |
38 | QT_MOC_LITERAL(41, 9), // "terminate" |
39 | QT_MOC_LITERAL(51, 4) // "quit" |
40 | |
41 | }, |
42 | "QThread\0started\0\0finished\0start\0" |
43 | "Priority\0terminate\0quit" |
44 | }; |
45 | #undef QT_MOC_LITERAL |
46 | |
47 | static const uint qt_meta_data_QThread[] = { |
48 | |
49 | // content: |
50 | 9, // revision |
51 | 0, // classname |
52 | 0, 0, // classinfo |
53 | 6, 14, // methods |
54 | 0, 0, // properties |
55 | 0, 0, // enums/sets |
56 | 0, 0, // constructors |
57 | 0, // flags |
58 | 2, // signalCount |
59 | |
60 | // signals: name, argc, parameters, tag, flags, initial metatype offsets |
61 | 1, 0, 50, 2, 0x06, 0 /* Public */, |
62 | 3, 0, 51, 2, 0x06, 1 /* Public */, |
63 | |
64 | // slots: name, argc, parameters, tag, flags, initial metatype offsets |
65 | 4, 1, 52, 2, 0x0a, 2 /* Public */, |
66 | 4, 0, 55, 2, 0x2a, 4 /* Public | MethodCloned */, |
67 | 6, 0, 56, 2, 0x0a, 5 /* Public */, |
68 | 7, 0, 57, 2, 0x0a, 6 /* Public */, |
69 | |
70 | // signals: parameters |
71 | QMetaType::Void, |
72 | QMetaType::Void, |
73 | |
74 | // slots: parameters |
75 | QMetaType::Void, 0x80000000 | 5, 2, |
76 | QMetaType::Void, |
77 | QMetaType::Void, |
78 | QMetaType::Void, |
79 | |
80 | 0 // eod |
81 | }; |
82 | |
83 | void QThread::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) |
84 | { |
85 | if (_c == QMetaObject::InvokeMetaMethod) { |
86 | Q_ASSERT(staticMetaObject.cast(_o)); |
87 | auto *_t = static_cast<QThread *>(_o); |
88 | Q_UNUSED(_t) |
89 | switch (_id) { |
90 | case 0: _t->started(QPrivateSignal()); break; |
91 | case 1: _t->finished(QPrivateSignal()); break; |
92 | case 2: _t->start((*reinterpret_cast< Priority(*)>(_a[1]))); break; |
93 | case 3: _t->start(); break; |
94 | case 4: _t->terminate(); break; |
95 | case 5: _t->quit(); break; |
96 | default: ; |
97 | } |
98 | } else if (_c == QMetaObject::IndexOfMethod) { |
99 | int *result = reinterpret_cast<int *>(_a[0]); |
100 | { |
101 | using _t = void (QThread::*)(QPrivateSignal); |
102 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QThread::started)) { |
103 | *result = 0; |
104 | return; |
105 | } |
106 | } |
107 | { |
108 | using _t = void (QThread::*)(QPrivateSignal); |
109 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QThread::finished)) { |
110 | *result = 1; |
111 | return; |
112 | } |
113 | } |
114 | } |
115 | } |
116 | |
117 | const QMetaObject QThread::staticMetaObject = { { |
118 | QMetaObject::SuperData::link<QObject::staticMetaObject>(), |
119 | qt_meta_stringdata_QThread.offsetsAndSize, |
120 | qt_meta_data_QThread, |
121 | qt_static_metacall, |
122 | nullptr, |
123 | qt_incomplete_metaTypeArray<qt_meta_stringdata_QThread_t |
124 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
125 | , QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<Priority, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type> |
126 | |
127 | |
128 | >, |
129 | nullptr |
130 | } }; |
131 | |
132 | |
133 | const QMetaObject *QThread::metaObject() const |
134 | { |
135 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; |
136 | } |
137 | |
138 | void *QThread::qt_metacast(const char *_clname) |
139 | { |
140 | if (!_clname) return nullptr; |
141 | if (!strcmp(_clname, qt_meta_stringdata_QThread.stringdata0)) |
142 | return static_cast<void*>(this); |
143 | return QObject::qt_metacast(_clname); |
144 | } |
145 | |
146 | int QThread::qt_metacall(QMetaObject::Call _c, int _id, void **_a) |
147 | { |
148 | _id = QObject::qt_metacall(_c, _id, _a); |
149 | if (_id < 0) |
150 | return _id; |
151 | if (_c == QMetaObject::InvokeMetaMethod) { |
152 | if (_id < 6) |
153 | qt_static_metacall(this, _c, _id, _a); |
154 | _id -= 6; |
155 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { |
156 | if (_id < 6) |
157 | *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); |
158 | _id -= 6; |
159 | } |
160 | return _id; |
161 | } |
162 | |
163 | // SIGNAL 0 |
164 | void QThread::started(QPrivateSignal _t1) |
165 | { |
166 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
167 | QMetaObject::activate(this, &staticMetaObject, 0, _a); |
168 | } |
169 | |
170 | // SIGNAL 1 |
171 | void QThread::finished(QPrivateSignal _t1) |
172 | { |
173 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) }; |
174 | QMetaObject::activate(this, &staticMetaObject, 1, _a); |
175 | } |
176 | QT_WARNING_POP |
177 | QT_END_MOC_NAMESPACE |
178 | |