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