CuteLogger
Fast and simple logging solution for Qt based applications
moc_qmlextension.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'qmlextension.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.8.3)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/qmltypes/qmlextension.h"
10#include <QtCore/qmetatype.h>
11
12#include <QtCore/qtmochelpers.h>
13
14#include <memory>
15
16
17#include <QtCore/qxptype_traits.h>
18#if !defined(Q_MOC_OUTPUT_REVISION)
19#error "The header file 'qmlextension.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 68
21#error "This file was generated using the moc from 6.8.3. It"
22#error "cannot be used with the include files from this version of Qt."
23#error "(The moc has changed too much.)"
24#endif
25
26#ifndef Q_CONSTINIT
27#define Q_CONSTINIT
28#endif
29
30QT_WARNING_PUSH
31QT_WARNING_DISABLE_DEPRECATED
32QT_WARNING_DISABLE_GCC("-Wuseless-cast")
33namespace {
34struct qt_meta_tag_ZN16QmlExtensionFileE_t {};
35} // unnamed namespace
36
37
38#ifdef QT_MOC_HAS_STRINGDATA
39static constexpr auto qt_meta_stringdata_ZN16QmlExtensionFileE = QtMocHelpers::stringData(
40 "QmlExtensionFile",
41 "changed",
42 "",
43 "name",
44 "description",
45 "file",
46 "url",
47 "size",
48 "standard"
49);
50#else // !QT_MOC_HAS_STRINGDATA
51#error "qtmochelpers.h not found or too old."
52#endif // !QT_MOC_HAS_STRINGDATA
53
54Q_CONSTINIT static const uint qt_meta_data_ZN16QmlExtensionFileE[] = {
55
56 // content:
57 12, // revision
58 0, // classname
59 0, 0, // classinfo
60 1, 14, // methods
61 6, 21, // properties
62 0, 0, // enums/sets
63 0, 0, // constructors
64 0, // flags
65 1, // signalCount
66
67 // signals: name, argc, parameters, tag, flags, initial metatype offsets
68 1, 0, 20, 2, 0x06, 7 /* Public */,
69
70 // signals: parameters
71 QMetaType::Void,
72
73 // properties: name, type, flags, notifyId, revision
74 3, QMetaType::QString, 0x00015003, uint(0), 0,
75 4, QMetaType::QString, 0x00015003, uint(0), 0,
76 5, QMetaType::QString, 0x00015003, uint(0), 0,
77 6, QMetaType::QString, 0x00015003, uint(0), 0,
78 7, QMetaType::QString, 0x00015003, uint(0), 0,
79 8, QMetaType::Bool, 0x00015003, uint(0), 0,
80
81 0 // eod
82};
83
84Q_CONSTINIT const QMetaObject QmlExtensionFile::staticMetaObject = { {
85 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
86 qt_meta_stringdata_ZN16QmlExtensionFileE.offsetsAndSizes,
87 qt_meta_data_ZN16QmlExtensionFileE,
88 qt_static_metacall,
89 nullptr,
90 qt_incomplete_metaTypeArray<qt_meta_tag_ZN16QmlExtensionFileE_t,
91 // property 'name'
92 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
93 // property 'description'
94 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
95 // property 'file'
96 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
97 // property 'url'
98 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
99 // property 'size'
100 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
101 // property 'standard'
102 QtPrivate::TypeAndForceComplete<bool, std::true_type>,
103 // Q_OBJECT / Q_GADGET
104 QtPrivate::TypeAndForceComplete<QmlExtensionFile, std::true_type>,
105 // method 'changed'
106 QtPrivate::TypeAndForceComplete<void, std::false_type>
107 >,
108 nullptr
109} };
110
111void QmlExtensionFile::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
112{
113 auto *_t = static_cast<QmlExtensionFile *>(_o);
114 if (_c == QMetaObject::InvokeMetaMethod) {
115 switch (_id) {
116 case 0: _t->changed(); break;
117 default: ;
118 }
119 }
120 if (_c == QMetaObject::IndexOfMethod) {
121 int *result = reinterpret_cast<int *>(_a[0]);
122 {
123 using _q_method_type = void (QmlExtensionFile::*)();
124 if (_q_method_type _q_method = &QmlExtensionFile::changed; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
125 *result = 0;
126 return;
127 }
128 }
129 }
130 if (_c == QMetaObject::ReadProperty) {
131 void *_v = _a[0];
132 switch (_id) {
133 case 0: *reinterpret_cast< QString*>(_v) = _t->m_name; break;
134 case 1: *reinterpret_cast< QString*>(_v) = _t->m_description; break;
135 case 2: *reinterpret_cast< QString*>(_v) = _t->m_file; break;
136 case 3: *reinterpret_cast< QString*>(_v) = _t->m_url; break;
137 case 4: *reinterpret_cast< QString*>(_v) = _t->m_size; break;
138 case 5: *reinterpret_cast< bool*>(_v) = _t->m_standard; break;
139 default: break;
140 }
141 }
142 if (_c == QMetaObject::WriteProperty) {
143 void *_v = _a[0];
144 switch (_id) {
145 case 0:
146 if (_t->m_name != *reinterpret_cast< QString*>(_v)) {
147 _t->m_name = *reinterpret_cast< QString*>(_v);
148 Q_EMIT _t->changed();
149 }
150 break;
151 case 1:
152 if (_t->m_description != *reinterpret_cast< QString*>(_v)) {
153 _t->m_description = *reinterpret_cast< QString*>(_v);
154 Q_EMIT _t->changed();
155 }
156 break;
157 case 2:
158 if (_t->m_file != *reinterpret_cast< QString*>(_v)) {
159 _t->m_file = *reinterpret_cast< QString*>(_v);
160 Q_EMIT _t->changed();
161 }
162 break;
163 case 3:
164 if (_t->m_url != *reinterpret_cast< QString*>(_v)) {
165 _t->m_url = *reinterpret_cast< QString*>(_v);
166 Q_EMIT _t->changed();
167 }
168 break;
169 case 4:
170 if (_t->m_size != *reinterpret_cast< QString*>(_v)) {
171 _t->m_size = *reinterpret_cast< QString*>(_v);
172 Q_EMIT _t->changed();
173 }
174 break;
175 case 5:
176 if (_t->m_standard != *reinterpret_cast< bool*>(_v)) {
177 _t->m_standard = *reinterpret_cast< bool*>(_v);
178 Q_EMIT _t->changed();
179 }
180 break;
181 default: break;
182 }
183 }
184}
185
186const QMetaObject *QmlExtensionFile::metaObject() const
187{
188 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
189}
190
191void *QmlExtensionFile::qt_metacast(const char *_clname)
192{
193 if (!_clname) return nullptr;
194 if (!strcmp(_clname, qt_meta_stringdata_ZN16QmlExtensionFileE.stringdata0))
195 return static_cast<void*>(this);
196 return QObject::qt_metacast(_clname);
197}
198
199int QmlExtensionFile::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
200{
201 _id = QObject::qt_metacall(_c, _id, _a);
202 if (_id < 0)
203 return _id;
204 if (_c == QMetaObject::InvokeMetaMethod) {
205 if (_id < 1)
206 qt_static_metacall(this, _c, _id, _a);
207 _id -= 1;
208 }
209 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
210 if (_id < 1)
211 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
212 _id -= 1;
213 }
214 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
215 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
216 || _c == QMetaObject::RegisterPropertyMetaType) {
217 qt_static_metacall(this, _c, _id, _a);
218 _id -= 6;
219 }
220 return _id;
221}
222
223// SIGNAL 0
224void QmlExtensionFile::changed()
225{
226 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
227}
228namespace {
229struct qt_meta_tag_ZN12QmlExtensionE_t {};
230} // unnamed namespace
231
232
233#ifdef QT_MOC_HAS_STRINGDATA
234static constexpr auto qt_meta_stringdata_ZN12QmlExtensionE = QtMocHelpers::stringData(
235 "QmlExtension",
236 "changed",
237 "",
238 "id",
239 "name",
240 "version",
241 "files",
242 "QQmlListProperty<QmlExtensionFile>"
243);
244#else // !QT_MOC_HAS_STRINGDATA
245#error "qtmochelpers.h not found or too old."
246#endif // !QT_MOC_HAS_STRINGDATA
247
248Q_CONSTINIT static const uint qt_meta_data_ZN12QmlExtensionE[] = {
249
250 // content:
251 12, // revision
252 0, // classname
253 0, 0, // classinfo
254 1, 14, // methods
255 4, 21, // properties
256 0, 0, // enums/sets
257 0, 0, // constructors
258 0, // flags
259 1, // signalCount
260
261 // signals: name, argc, parameters, tag, flags, initial metatype offsets
262 1, 0, 20, 2, 0x06, 5 /* Public */,
263
264 // signals: parameters
265 QMetaType::Void,
266
267 // properties: name, type, flags, notifyId, revision
268 3, QMetaType::QString, 0x00015103, uint(0), 0,
269 4, QMetaType::QString, 0x00015103, uint(0), 0,
270 5, QMetaType::QString, 0x00015103, uint(0), 0,
271 6, 0x80000000 | 7, 0x00015009, uint(0), 0,
272
273 0 // eod
274};
275
276Q_CONSTINIT const QMetaObject QmlExtension::staticMetaObject = { {
277 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
278 qt_meta_stringdata_ZN12QmlExtensionE.offsetsAndSizes,
279 qt_meta_data_ZN12QmlExtensionE,
280 qt_static_metacall,
281 nullptr,
282 qt_incomplete_metaTypeArray<qt_meta_tag_ZN12QmlExtensionE_t,
283 // property 'id'
284 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
285 // property 'name'
286 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
287 // property 'version'
288 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
289 // property 'files'
290 QtPrivate::TypeAndForceComplete<QQmlListProperty<QmlExtensionFile>, std::true_type>,
291 // Q_OBJECT / Q_GADGET
292 QtPrivate::TypeAndForceComplete<QmlExtension, std::true_type>,
293 // method 'changed'
294 QtPrivate::TypeAndForceComplete<void, std::false_type>
295 >,
296 nullptr
297} };
298
299void QmlExtension::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
300{
301 auto *_t = static_cast<QmlExtension *>(_o);
302 if (_c == QMetaObject::InvokeMetaMethod) {
303 switch (_id) {
304 case 0: _t->changed(); break;
305 default: ;
306 }
307 }
308 if (_c == QMetaObject::IndexOfMethod) {
309 int *result = reinterpret_cast<int *>(_a[0]);
310 {
311 using _q_method_type = void (QmlExtension::*)();
312 if (_q_method_type _q_method = &QmlExtension::changed; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
313 *result = 0;
314 return;
315 }
316 }
317 }
318 if (_c == QMetaObject::ReadProperty) {
319 void *_v = _a[0];
320 switch (_id) {
321 case 0: *reinterpret_cast< QString*>(_v) = _t->id(); break;
322 case 1: *reinterpret_cast< QString*>(_v) = _t->name(); break;
323 case 2: *reinterpret_cast< QString*>(_v) = _t->version(); break;
324 case 3: *reinterpret_cast< QQmlListProperty<QmlExtensionFile>*>(_v) = _t->files(); break;
325 default: break;
326 }
327 }
328 if (_c == QMetaObject::WriteProperty) {
329 void *_v = _a[0];
330 switch (_id) {
331 case 0: _t->setId(*reinterpret_cast< QString*>(_v)); break;
332 case 1: _t->setName(*reinterpret_cast< QString*>(_v)); break;
333 case 2: _t->setVersion(*reinterpret_cast< QString*>(_v)); break;
334 default: break;
335 }
336 }
337}
338
339const QMetaObject *QmlExtension::metaObject() const
340{
341 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
342}
343
344void *QmlExtension::qt_metacast(const char *_clname)
345{
346 if (!_clname) return nullptr;
347 if (!strcmp(_clname, qt_meta_stringdata_ZN12QmlExtensionE.stringdata0))
348 return static_cast<void*>(this);
349 return QObject::qt_metacast(_clname);
350}
351
352int QmlExtension::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
353{
354 _id = QObject::qt_metacall(_c, _id, _a);
355 if (_id < 0)
356 return _id;
357 if (_c == QMetaObject::InvokeMetaMethod) {
358 if (_id < 1)
359 qt_static_metacall(this, _c, _id, _a);
360 _id -= 1;
361 }
362 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
363 if (_id < 1)
364 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
365 _id -= 1;
366 }
367 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
368 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
369 || _c == QMetaObject::RegisterPropertyMetaType) {
370 qt_static_metacall(this, _c, _id, _a);
371 _id -= 4;
372 }
373 return _id;
374}
375
376// SIGNAL 0
377void QmlExtension::changed()
378{
379 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
380}
381QT_WARNING_POP