CuteLogger
Fast and simple logging solution for Qt based applications
moc_qmlfile.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'qmlfile.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.6.2)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/qmltypes/qmlfile.h"
10#include <QtCore/qmetatype.h>
11
12#if __has_include(<QtCore/qtmochelpers.h>)
13#include <QtCore/qtmochelpers.h>
14#else
15QT_BEGIN_MOC_NAMESPACE
16#endif
17
18
19#include <memory>
20
21#if !defined(Q_MOC_OUTPUT_REVISION)
22#error "The header file 'qmlfile.h' doesn't include <QObject>."
23#elif Q_MOC_OUTPUT_REVISION != 68
24#error "This file was generated using the moc from 6.6.2. It"
25#error "cannot be used with the include files from this version of Qt."
26#error "(The moc has changed too much.)"
27#endif
28
29#ifndef Q_CONSTINIT
30#define Q_CONSTINIT
31#endif
32
33QT_WARNING_PUSH
34QT_WARNING_DISABLE_DEPRECATED
35QT_WARNING_DISABLE_GCC("-Wuseless-cast")
36namespace {
37
38#ifdef QT_MOC_HAS_STRINGDATA
39struct qt_meta_stringdata_CLASSQmlFileENDCLASS_t {};
40constexpr auto qt_meta_stringdata_CLASSQmlFileENDCLASS = QtMocHelpers::stringData(
41 "QmlFile",
42 "urlChanged",
43 "",
44 "url",
45 "fileChanged",
46 "path",
47 "watch",
48 "copyFromFile",
49 "source",
50 "exists",
51 "suffix",
52 "fileName",
53 "filePath"
54);
55#else // !QT_MOC_HAS_STRING_DATA
56struct qt_meta_stringdata_CLASSQmlFileENDCLASS_t {
57 uint offsetsAndSizes[26];
58 char stringdata0[8];
59 char stringdata1[11];
60 char stringdata2[1];
61 char stringdata3[4];
62 char stringdata4[12];
63 char stringdata5[5];
64 char stringdata6[6];
65 char stringdata7[13];
66 char stringdata8[7];
67 char stringdata9[7];
68 char stringdata10[7];
69 char stringdata11[9];
70 char stringdata12[9];
71};
72#define QT_MOC_LITERAL(ofs, len) \
73 uint(sizeof(qt_meta_stringdata_CLASSQmlFileENDCLASS_t::offsetsAndSizes) + ofs), len
74Q_CONSTINIT static const qt_meta_stringdata_CLASSQmlFileENDCLASS_t qt_meta_stringdata_CLASSQmlFileENDCLASS = {
75 {
76 QT_MOC_LITERAL(0, 7), // "QmlFile"
77 QT_MOC_LITERAL(8, 10), // "urlChanged"
78 QT_MOC_LITERAL(19, 0), // ""
79 QT_MOC_LITERAL(20, 3), // "url"
80 QT_MOC_LITERAL(24, 11), // "fileChanged"
81 QT_MOC_LITERAL(36, 4), // "path"
82 QT_MOC_LITERAL(41, 5), // "watch"
83 QT_MOC_LITERAL(47, 12), // "copyFromFile"
84 QT_MOC_LITERAL(60, 6), // "source"
85 QT_MOC_LITERAL(67, 6), // "exists"
86 QT_MOC_LITERAL(74, 6), // "suffix"
87 QT_MOC_LITERAL(81, 8), // "fileName"
88 QT_MOC_LITERAL(90, 8) // "filePath"
89 },
90 "QmlFile",
91 "urlChanged",
92 "",
93 "url",
94 "fileChanged",
95 "path",
96 "watch",
97 "copyFromFile",
98 "source",
99 "exists",
100 "suffix",
101 "fileName",
102 "filePath"
103};
104#undef QT_MOC_LITERAL
105#endif // !QT_MOC_HAS_STRING_DATA
106} // unnamed namespace
107
108Q_CONSTINIT static const uint qt_meta_data_CLASSQmlFileENDCLASS[] = {
109
110 // content:
111 12, // revision
112 0, // classname
113 0, 0, // classinfo
114 6, 14, // methods
115 4, 62, // properties
116 0, 0, // enums/sets
117 0, 0, // constructors
118 0, // flags
119 2, // signalCount
120
121 // signals: name, argc, parameters, tag, flags, initial metatype offsets
122 1, 1, 50, 2, 0x06, 5 /* Public */,
123 4, 1, 53, 2, 0x06, 7 /* Public */,
124
125 // slots: name, argc, parameters, tag, flags, initial metatype offsets
126 6, 0, 56, 2, 0x0a, 9 /* Public */,
127
128 // methods: name, argc, parameters, tag, flags, initial metatype offsets
129 7, 1, 57, 2, 0x02, 10 /* Public */,
130 9, 0, 60, 2, 0x02, 12 /* Public */,
131 10, 0, 61, 2, 0x02, 13 /* Public */,
132
133 // signals: parameters
134 QMetaType::Void, QMetaType::QUrl, 3,
135 QMetaType::Void, QMetaType::QString, 5,
136
137 // slots: parameters
138 QMetaType::Void,
139
140 // methods: parameters
141 QMetaType::Void, QMetaType::QString, 8,
142 QMetaType::Bool,
143 QMetaType::QString,
144
145 // properties: name, type, flags
146 3, QMetaType::QString, 0x00015103, uint(0), 0,
147 11, QMetaType::QString, 0x00015001, uint(-1), 0,
148 5, QMetaType::QString, 0x00015001, uint(-1), 0,
149 12, QMetaType::QString, 0x00015001, uint(-1), 0,
150
151 0 // eod
152};
153
154Q_CONSTINIT const QMetaObject QmlFile::staticMetaObject = { {
155 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
156 qt_meta_stringdata_CLASSQmlFileENDCLASS.offsetsAndSizes,
157 qt_meta_data_CLASSQmlFileENDCLASS,
158 qt_static_metacall,
159 nullptr,
160 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSQmlFileENDCLASS_t,
161 // property 'url'
162 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
163 // property 'fileName'
164 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
165 // property 'path'
166 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
167 // property 'filePath'
168 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
169 // Q_OBJECT / Q_GADGET
170 QtPrivate::TypeAndForceComplete<QmlFile, std::true_type>,
171 // method 'urlChanged'
172 QtPrivate::TypeAndForceComplete<void, std::false_type>,
173 QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>,
174 // method 'fileChanged'
175 QtPrivate::TypeAndForceComplete<void, std::false_type>,
176 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
177 // method 'watch'
178 QtPrivate::TypeAndForceComplete<void, std::false_type>,
179 // method 'copyFromFile'
180 QtPrivate::TypeAndForceComplete<void, std::false_type>,
181 QtPrivate::TypeAndForceComplete<QString, std::false_type>,
182 // method 'exists'
183 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
184 // method 'suffix'
185 QtPrivate::TypeAndForceComplete<QString, std::false_type>
186 >,
187 nullptr
188} };
189
190void QmlFile::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
191{
192 if (_c == QMetaObject::InvokeMetaMethod) {
193 auto *_t = static_cast<QmlFile *>(_o);
194 (void)_t;
195 switch (_id) {
196 case 0: _t->urlChanged((*reinterpret_cast< std::add_pointer_t<QUrl>>(_a[1]))); break;
197 case 1: _t->fileChanged((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
198 case 2: _t->watch(); break;
199 case 3: _t->copyFromFile((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
200 case 4: { bool _r = _t->exists();
201 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
202 case 5: { QString _r = _t->suffix();
203 if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); } break;
204 default: ;
205 }
206 } else if (_c == QMetaObject::IndexOfMethod) {
207 int *result = reinterpret_cast<int *>(_a[0]);
208 {
209 using _t = void (QmlFile::*)(const QUrl & );
210 if (_t _q_method = &QmlFile::urlChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
211 *result = 0;
212 return;
213 }
214 }
215 {
216 using _t = void (QmlFile::*)(const QString & );
217 if (_t _q_method = &QmlFile::fileChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
218 *result = 1;
219 return;
220 }
221 }
222 } else if (_c == QMetaObject::ReadProperty) {
223 auto *_t = static_cast<QmlFile *>(_o);
224 (void)_t;
225 void *_v = _a[0];
226 switch (_id) {
227 case 0: *reinterpret_cast< QString*>(_v) = _t->getUrl(); break;
228 case 1: *reinterpret_cast< QString*>(_v) = _t->getFileName(); break;
229 case 2: *reinterpret_cast< QString*>(_v) = _t->getPath(); break;
230 case 3: *reinterpret_cast< QString*>(_v) = _t->getFilePath(); break;
231 default: break;
232 }
233 } else if (_c == QMetaObject::WriteProperty) {
234 auto *_t = static_cast<QmlFile *>(_o);
235 (void)_t;
236 void *_v = _a[0];
237 switch (_id) {
238 case 0: _t->setUrl(*reinterpret_cast< QString*>(_v)); break;
239 default: break;
240 }
241 } else if (_c == QMetaObject::ResetProperty) {
242 } else if (_c == QMetaObject::BindableProperty) {
243 }
244}
245
246const QMetaObject *QmlFile::metaObject() const
247{
248 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
249}
250
251void *QmlFile::qt_metacast(const char *_clname)
252{
253 if (!_clname) return nullptr;
254 if (!strcmp(_clname, qt_meta_stringdata_CLASSQmlFileENDCLASS.stringdata0))
255 return static_cast<void*>(this);
256 return QObject::qt_metacast(_clname);
257}
258
259int QmlFile::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
260{
261 _id = QObject::qt_metacall(_c, _id, _a);
262 if (_id < 0)
263 return _id;
264 if (_c == QMetaObject::InvokeMetaMethod) {
265 if (_id < 6)
266 qt_static_metacall(this, _c, _id, _a);
267 _id -= 6;
268 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
269 if (_id < 6)
270 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
271 _id -= 6;
272 }else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
273 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
274 || _c == QMetaObject::RegisterPropertyMetaType) {
275 qt_static_metacall(this, _c, _id, _a);
276 _id -= 4;
277 }
278 return _id;
279}
280
281// SIGNAL 0
282void QmlFile::urlChanged(const QUrl & _t1)
283{
284 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
285 QMetaObject::activate(this, &staticMetaObject, 0, _a);
286}
287
288// SIGNAL 1
289void QmlFile::fileChanged(const QString & _t1)
290{
291 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
292 QMetaObject::activate(this, &staticMetaObject, 1, _a);
293}
294QT_WARNING_POP