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.7.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#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 'qmlfile.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 68
21#error "This file was generated using the moc from 6.7.2. 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 {
34
35#ifdef QT_MOC_HAS_STRINGDATA
36struct qt_meta_stringdata_CLASSQmlFileENDCLASS_t {};
37constexpr auto qt_meta_stringdata_CLASSQmlFileENDCLASS = QtMocHelpers::stringData(
38 "QmlFile",
39 "urlChanged",
40 "",
41 "url",
42 "fileChanged",
43 "path",
44 "watch",
45 "copyFromFile",
46 "source",
47 "exists",
48 "suffix",
49 "fileName",
50 "filePath"
51);
52#else // !QT_MOC_HAS_STRINGDATA
53#error "qtmochelpers.h not found or too old."
54#endif // !QT_MOC_HAS_STRINGDATA
55} // unnamed namespace
56
57Q_CONSTINIT static const uint qt_meta_data_CLASSQmlFileENDCLASS[] = {
58
59 // content:
60 12, // revision
61 0, // classname
62 0, 0, // classinfo
63 6, 14, // methods
64 4, 62, // properties
65 0, 0, // enums/sets
66 0, 0, // constructors
67 0, // flags
68 2, // signalCount
69
70 // signals: name, argc, parameters, tag, flags, initial metatype offsets
71 1, 1, 50, 2, 0x06, 5 /* Public */,
72 4, 1, 53, 2, 0x06, 7 /* Public */,
73
74 // slots: name, argc, parameters, tag, flags, initial metatype offsets
75 6, 0, 56, 2, 0x0a, 9 /* Public */,
76
77 // methods: name, argc, parameters, tag, flags, initial metatype offsets
78 7, 1, 57, 2, 0x02, 10 /* Public */,
79 9, 0, 60, 2, 0x02, 12 /* Public */,
80 10, 0, 61, 2, 0x02, 13 /* Public */,
81
82 // signals: parameters
83 QMetaType::Void, QMetaType::QUrl, 3,
84 QMetaType::Void, QMetaType::QString, 5,
85
86 // slots: parameters
87 QMetaType::Void,
88
89 // methods: parameters
90 QMetaType::Void, QMetaType::QString, 8,
91 QMetaType::Bool,
92 QMetaType::QString,
93
94 // properties: name, type, flags
95 3, QMetaType::QString, 0x00015103, uint(0), 0,
96 11, QMetaType::QString, 0x00015001, uint(-1), 0,
97 5, QMetaType::QString, 0x00015001, uint(-1), 0,
98 12, QMetaType::QString, 0x00015001, uint(-1), 0,
99
100 0 // eod
101};
102
103Q_CONSTINIT const QMetaObject QmlFile::staticMetaObject = { {
104 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
105 qt_meta_stringdata_CLASSQmlFileENDCLASS.offsetsAndSizes,
106 qt_meta_data_CLASSQmlFileENDCLASS,
107 qt_static_metacall,
108 nullptr,
109 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSQmlFileENDCLASS_t,
110 // property 'url'
111 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
112 // property 'fileName'
113 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
114 // property 'path'
115 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
116 // property 'filePath'
117 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
118 // Q_OBJECT / Q_GADGET
119 QtPrivate::TypeAndForceComplete<QmlFile, std::true_type>,
120 // method 'urlChanged'
121 QtPrivate::TypeAndForceComplete<void, std::false_type>,
122 QtPrivate::TypeAndForceComplete<const QUrl &, std::false_type>,
123 // method 'fileChanged'
124 QtPrivate::TypeAndForceComplete<void, std::false_type>,
125 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
126 // method 'watch'
127 QtPrivate::TypeAndForceComplete<void, std::false_type>,
128 // method 'copyFromFile'
129 QtPrivate::TypeAndForceComplete<void, std::false_type>,
130 QtPrivate::TypeAndForceComplete<QString, std::false_type>,
131 // method 'exists'
132 QtPrivate::TypeAndForceComplete<bool, std::false_type>,
133 // method 'suffix'
134 QtPrivate::TypeAndForceComplete<QString, std::false_type>
135 >,
136 nullptr
137} };
138
139void QmlFile::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
140{
141 if (_c == QMetaObject::InvokeMetaMethod) {
142 auto *_t = static_cast<QmlFile *>(_o);
143 (void)_t;
144 switch (_id) {
145 case 0: _t->urlChanged((*reinterpret_cast< std::add_pointer_t<QUrl>>(_a[1]))); break;
146 case 1: _t->fileChanged((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
147 case 2: _t->watch(); break;
148 case 3: _t->copyFromFile((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
149 case 4: { bool _r = _t->exists();
150 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
151 case 5: { QString _r = _t->suffix();
152 if (_a[0]) *reinterpret_cast< QString*>(_a[0]) = std::move(_r); } break;
153 default: ;
154 }
155 } else if (_c == QMetaObject::IndexOfMethod) {
156 int *result = reinterpret_cast<int *>(_a[0]);
157 {
158 using _t = void (QmlFile::*)(const QUrl & );
159 if (_t _q_method = &QmlFile::urlChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
160 *result = 0;
161 return;
162 }
163 }
164 {
165 using _t = void (QmlFile::*)(const QString & );
166 if (_t _q_method = &QmlFile::fileChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
167 *result = 1;
168 return;
169 }
170 }
171 } else if (_c == QMetaObject::ReadProperty) {
172 auto *_t = static_cast<QmlFile *>(_o);
173 (void)_t;
174 void *_v = _a[0];
175 switch (_id) {
176 case 0: *reinterpret_cast< QString*>(_v) = _t->getUrl(); break;
177 case 1: *reinterpret_cast< QString*>(_v) = _t->getFileName(); break;
178 case 2: *reinterpret_cast< QString*>(_v) = _t->getPath(); break;
179 case 3: *reinterpret_cast< QString*>(_v) = _t->getFilePath(); break;
180 default: break;
181 }
182 } else if (_c == QMetaObject::WriteProperty) {
183 auto *_t = static_cast<QmlFile *>(_o);
184 (void)_t;
185 void *_v = _a[0];
186 switch (_id) {
187 case 0: _t->setUrl(*reinterpret_cast< QString*>(_v)); break;
188 default: break;
189 }
190 } else if (_c == QMetaObject::ResetProperty) {
191 } else if (_c == QMetaObject::BindableProperty) {
192 }
193}
194
195const QMetaObject *QmlFile::metaObject() const
196{
197 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
198}
199
200void *QmlFile::qt_metacast(const char *_clname)
201{
202 if (!_clname) return nullptr;
203 if (!strcmp(_clname, qt_meta_stringdata_CLASSQmlFileENDCLASS.stringdata0))
204 return static_cast<void*>(this);
205 return QObject::qt_metacast(_clname);
206}
207
208int QmlFile::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
209{
210 _id = QObject::qt_metacall(_c, _id, _a);
211 if (_id < 0)
212 return _id;
213 if (_c == QMetaObject::InvokeMetaMethod) {
214 if (_id < 6)
215 qt_static_metacall(this, _c, _id, _a);
216 _id -= 6;
217 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
218 if (_id < 6)
219 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
220 _id -= 6;
221 }else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
222 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
223 || _c == QMetaObject::RegisterPropertyMetaType) {
224 qt_static_metacall(this, _c, _id, _a);
225 _id -= 4;
226 }
227 return _id;
228}
229
230// SIGNAL 0
231void QmlFile::urlChanged(const QUrl & _t1)
232{
233 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
234 QMetaObject::activate(this, &staticMetaObject, 0, _a);
235}
236
237// SIGNAL 1
238void QmlFile::fileChanged(const QString & _t1)
239{
240 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
241 QMetaObject::activate(this, &staticMetaObject, 1, _a);
242}
243QT_WARNING_POP