Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/.moc/moc_qquickworkerscript_p.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | #pragma GCC diagnostic push | - |
4 | - | |
5 | - | |
6 | #pragma GCC diagnostic ignored "-Wdeprecated-declarations" | - |
7 | - | |
8 | struct qt_meta_stringdata_QQuickWorkerScriptEngine_t { | - |
9 | QByteArrayData data[1]; | - |
10 | char stringdata0[25]; | - |
11 | }; | - |
12 | - | |
13 | - | |
14 | - | |
15 | - | |
16 | - | |
17 | static const qt_meta_stringdata_QQuickWorkerScriptEngine_t qt_meta_stringdata_QQuickWorkerScriptEngine = { | - |
18 | { | - |
19 | { { { -1 } }, 24, 0, 0, qptrdiff( | - |
20 | __builtin_offsetof ( | - |
21 | qt_meta_stringdata_QQuickWorkerScriptEngine_t | - |
22 | , | - |
23 | stringdata0 | - |
24 | ) | - |
25 | + 0 - 0 * sizeof(QByteArrayData)) } | - |
26 | - | |
27 | }, | - |
28 | "QQuickWorkerScriptEngine" | - |
29 | }; | - |
30 | - | |
31 | - | |
32 | static const uint qt_meta_data_QQuickWorkerScriptEngine[] = { | - |
33 | - | |
34 | - | |
35 | 7, | - |
36 | 0, | - |
37 | 0, 0, | - |
38 | 0, 0, | - |
39 | 0, 0, | - |
40 | 0, 0, | - |
41 | 0, 0, | - |
42 | 0, | - |
43 | 0, | - |
44 | - | |
45 | 0 | - |
46 | }; | - |
47 | - | |
48 | void QQuickWorkerScriptEngine::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
49 | { | - |
50 | (void)_o;; | - |
51 | (void)_id;; | - |
52 | (void)_c;; | - |
53 | (void)_a;; | - |
54 | } | - |
55 | - | |
56 | const QMetaObject QQuickWorkerScriptEngine::staticMetaObject = { | - |
57 | { &QThread::staticMetaObject, qt_meta_stringdata_QQuickWorkerScriptEngine.data, | - |
58 | qt_meta_data_QQuickWorkerScriptEngine, qt_static_metacall, nullptr, nullptr} | - |
59 | }; | - |
60 | - | |
61 | - | |
62 | const QMetaObject *QQuickWorkerScriptEngine::metaObject() const | - |
63 | { | - |
64 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
65 | } | - |
66 | - | |
67 | void *QQuickWorkerScriptEngine::qt_metacast(const char *_clname) | - |
68 | { | - |
69 | if (!_clname) return nullptr; | - |
70 | if (!strcmp(_clname, qt_meta_stringdata_QQuickWorkerScriptEngine.stringdata0)) | - |
71 | return static_cast<void*>(this); | - |
72 | return QThread::qt_metacast(_clname); | - |
73 | } | - |
74 | - | |
75 | int QQuickWorkerScriptEngine::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
76 | { | - |
77 | _id = QThread::qt_metacall(_c, _id, _a); | - |
78 | return _id; | - |
79 | } | - |
80 | struct qt_meta_stringdata_QQuickWorkerScript_t { | - |
81 | QByteArrayData data[9]; | - |
82 | char stringdata0[104]; | - |
83 | }; | - |
84 | - | |
85 | - | |
86 | - | |
87 | - | |
88 | - | |
89 | static const qt_meta_stringdata_QQuickWorkerScript_t qt_meta_stringdata_QQuickWorkerScript = { | - |
90 | { | - |
91 | { { { -1 } }, 18, 0, 0, qptrdiff( | - |
92 | __builtin_offsetof ( | - |
93 | qt_meta_stringdata_QQuickWorkerScript_t | - |
94 | , | - |
95 | stringdata0 | - |
96 | ) | - |
97 | + 0 - 0 * sizeof(QByteArrayData)) }, | - |
98 | { { { -1 } }, 13, 0, 0, qptrdiff( | - |
99 | __builtin_offsetof ( | - |
100 | qt_meta_stringdata_QQuickWorkerScript_t | - |
101 | , | - |
102 | stringdata0 | - |
103 | ) | - |
104 | + 19 - 1 * sizeof(QByteArrayData)) }, | - |
105 | { { { -1 } }, 0, 0, 0, qptrdiff( | - |
106 | __builtin_offsetof ( | - |
107 | qt_meta_stringdata_QQuickWorkerScript_t | - |
108 | , | - |
109 | stringdata0 | - |
110 | ) | - |
111 | + 33 - 2 * sizeof(QByteArrayData)) }, | - |
112 | { { { -1 } }, 7, 0, 0, qptrdiff( | - |
113 | __builtin_offsetof ( | - |
114 | qt_meta_stringdata_QQuickWorkerScript_t | - |
115 | , | - |
116 | stringdata0 | - |
117 | ) | - |
118 | + 34 - 3 * sizeof(QByteArrayData)) }, | - |
119 | { { { -1 } }, 12, 0, 0, qptrdiff( | - |
120 | __builtin_offsetof ( | - |
121 | qt_meta_stringdata_QQuickWorkerScript_t | - |
122 | , | - |
123 | stringdata0 | - |
124 | ) | - |
125 | + 42 - 4 * sizeof(QByteArrayData)) }, | - |
126 | { { { -1 } }, 13, 0, 0, qptrdiff( | - |
127 | __builtin_offsetof ( | - |
128 | qt_meta_stringdata_QQuickWorkerScript_t | - |
129 | , | - |
130 | stringdata0 | - |
131 | ) | - |
132 | + 55 - 5 * sizeof(QByteArrayData)) }, | - |
133 | { { { -1 } }, 11, 0, 0, qptrdiff( | - |
134 | __builtin_offsetof ( | - |
135 | qt_meta_stringdata_QQuickWorkerScript_t | - |
136 | , | - |
137 | stringdata0 | - |
138 | ) | - |
139 | + 69 - 6 * sizeof(QByteArrayData)) }, | - |
140 | { { { -1 } }, 15, 0, 0, qptrdiff( | - |
141 | __builtin_offsetof ( | - |
142 | qt_meta_stringdata_QQuickWorkerScript_t | - |
143 | , | - |
144 | stringdata0 | - |
145 | ) | - |
146 | + 81 - 7 * sizeof(QByteArrayData)) }, | - |
147 | { { { -1 } }, 6, 0, 0, qptrdiff( | - |
148 | __builtin_offsetof ( | - |
149 | qt_meta_stringdata_QQuickWorkerScript_t | - |
150 | , | - |
151 | stringdata0 | - |
152 | ) | - |
153 | + 97 - 8 * sizeof(QByteArrayData)) } | - |
154 | - | |
155 | }, | - |
156 | "QQuickWorkerScript\0sourceChanged\0\0" | - |
157 | "message\0QQmlV4Handle\0messageObject\0" | - |
158 | "sendMessage\0QQmlV4Function*\0source" | - |
159 | }; | - |
160 | - | |
161 | - | |
162 | static const uint qt_meta_data_QQuickWorkerScript[] = { | - |
163 | - | |
164 | - | |
165 | 7, | - |
166 | 0, | - |
167 | 0, 0, | - |
168 | 3, 14, | - |
169 | 1, 36, | - |
170 | 0, 0, | - |
171 | 0, 0, | - |
172 | 0, | - |
173 | 2, | - |
174 | - | |
175 | - | |
176 | 1, 0, 29, 2, 0x06 , | - |
177 | 3, 1, 30, 2, 0x06 , | - |
178 | - | |
179 | - | |
180 | 6, 1, 33, 2, 0x0a , | - |
181 | - | |
182 | - | |
183 | QMetaType::Void, | - |
184 | QMetaType::Void, 0x80000000 | 4, 5, | - |
185 | - | |
186 | - | |
187 | QMetaType::Void, 0x80000000 | 7, 2, | - |
188 | - | |
189 | - | |
190 | 8, QMetaType::QUrl, 0x00495103, | - |
191 | - | |
192 | - | |
193 | 0, | - |
194 | - | |
195 | 0 | - |
196 | }; | - |
197 | - | |
198 | void QQuickWorkerScript::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | - |
199 | { | - |
200 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
201 | QQuickWorkerScript *_t = static_cast<QQuickWorkerScript *>(_o); | - |
202 | (void)_t; | - |
203 | switch (_id) { | - |
204 | case 0: _t->sourceChanged(); break; | - |
205 | case 1: _t->message((*reinterpret_cast< const QQmlV4Handle(*)>(_a[1]))); break; | - |
206 | case 2: _t->sendMessage((*reinterpret_cast< QQmlV4Function*(*)>(_a[1]))); break; | - |
207 | default: ; | - |
208 | } | - |
209 | } else if (_c == QMetaObject::IndexOfMethod) { | - |
210 | int *result = reinterpret_cast<int *>(_a[0]); | - |
211 | { | - |
212 | using _t = void (QQuickWorkerScript::*)(); | - |
213 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickWorkerScript::sourceChanged)) { | - |
214 | *result = 0; | - |
215 | return; | - |
216 | } | - |
217 | } | - |
218 | { | - |
219 | using _t = void (QQuickWorkerScript::*)(const QQmlV4Handle & ); | - |
220 | if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuickWorkerScript::message)) { | - |
221 | *result = 1; | - |
222 | return; | - |
223 | } | - |
224 | } | - |
225 | } | - |
226 | - | |
227 | else if (_c == QMetaObject::ReadProperty) { | - |
228 | QQuickWorkerScript *_t = static_cast<QQuickWorkerScript *>(_o); | - |
229 | (void)_t; | - |
230 | void *_v = _a[0]; | - |
231 | switch (_id) { | - |
232 | case 0: *reinterpret_cast< QUrl*>(_v) = _t->source(); break; | - |
233 | default: break; | - |
234 | } | - |
235 | } else if (_c == QMetaObject::WriteProperty) { | - |
236 | QQuickWorkerScript *_t = static_cast<QQuickWorkerScript *>(_o); | - |
237 | (void)_t; | - |
238 | void *_v = _a[0]; | - |
239 | switch (_id) { | - |
240 | case 0: _t->setSource(*reinterpret_cast< QUrl*>(_v)); break; | - |
241 | default: break; | - |
242 | } | - |
243 | } else if (_c == QMetaObject::ResetProperty) { | - |
244 | } | - |
245 | - | |
246 | } | - |
247 | - | |
248 | const QMetaObject QQuickWorkerScript::staticMetaObject = { | - |
249 | { &QObject::staticMetaObject, qt_meta_stringdata_QQuickWorkerScript.data, | - |
250 | qt_meta_data_QQuickWorkerScript, qt_static_metacall, nullptr, nullptr} | - |
251 | }; | - |
252 | - | |
253 | - | |
254 | const QMetaObject *QQuickWorkerScript::metaObject() const | - |
255 | { | - |
256 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | - |
257 | } | - |
258 | - | |
259 | void *QQuickWorkerScript::qt_metacast(const char *_clname) | - |
260 | { | - |
261 | if (!_clname) return nullptr; | - |
262 | if (!strcmp(_clname, qt_meta_stringdata_QQuickWorkerScript.stringdata0)) | - |
263 | return static_cast<void*>(this); | - |
264 | if (!strcmp(_clname, "QQmlParserStatus")) | - |
265 | return static_cast< QQmlParserStatus*>(this); | - |
266 | if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus")) | - |
267 | return static_cast< QQmlParserStatus*>(this); | - |
268 | return QObject::qt_metacast(_clname); | - |
269 | } | - |
270 | - | |
271 | int QQuickWorkerScript::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | - |
272 | { | - |
273 | _id = QObject::qt_metacall(_c, _id, _a); | - |
274 | if (_id < 0) | - |
275 | return _id; | - |
276 | if (_c == QMetaObject::InvokeMetaMethod) { | - |
277 | if (_id < 3) | - |
278 | qt_static_metacall(this, _c, _id, _a); | - |
279 | _id -= 3; | - |
280 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | - |
281 | if (_id < 3) | - |
282 | *reinterpret_cast<int*>(_a[0]) = -1; | - |
283 | _id -= 3; | - |
284 | } | - |
285 | - | |
286 | else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty | - |
287 | || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) { | - |
288 | qt_static_metacall(this, _c, _id, _a); | - |
289 | _id -= 1; | - |
290 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | - |
291 | _id -= 1; | - |
292 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | - |
293 | _id -= 1; | - |
294 | } else if (_c == QMetaObject::QueryPropertyStored) { | - |
295 | _id -= 1; | - |
296 | } else if (_c == QMetaObject::QueryPropertyEditable) { | - |
297 | _id -= 1; | - |
298 | } else if (_c == QMetaObject::QueryPropertyUser) { | - |
299 | _id -= 1; | - |
300 | } | - |
301 | - | |
302 | return _id; | - |
303 | } | - |
304 | - | |
305 | - | |
306 | void QQuickWorkerScript::sourceChanged() | - |
307 | { | - |
308 | QMetaObject::activate(this, &staticMetaObject, 0, nullptr); | - |
309 | } executed 1154 times by 5 tests: end of block Executed by:
| 1154 |
310 | - | |
311 | - | |
312 | void QQuickWorkerScript::message(const QQmlV4Handle & _t1) | - |
313 | { | - |
314 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) }; | - |
315 | QMetaObject::activate(this, &staticMetaObject, 1, _a); | - |
316 | } executed 972 times by 4 tests: end of block Executed by:
| 972 |
317 | - | |
318 | #pragma GCC diagnostic pop | - |
319 | - | |
320 | - | |
Switch to Source code | Preprocessed file |