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 69 (Qt 6.11.0)
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 != 69
21#error "This file was generated using the moc from 6.11.0. 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
37template <> constexpr inline auto QmlFile::qt_create_metaobjectdata<qt_meta_tag_ZN7QmlFileE_t>()
38{
39 namespace QMC = QtMocConstants;
40 QtMocHelpers::StringRefStorage qt_stringData {
41 "QmlFile",
42 "urlChanged",
43 "",
44 "QUrl",
45 "url",
46 "fileChanged",
47 "path",
48 "watch",
49 "copyFromFile",
50 "source",
51 "exists",
52 "suffix",
53 "fileName",
54 "filePath"
55 };
56
57 QtMocHelpers::UintData qt_methods {
58 // Signal 'urlChanged'
59 QtMocHelpers::SignalData<void(const QUrl &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
60 { 0x80000000 | 3, 4 },
61 }}),
62 // Signal 'fileChanged'
63 QtMocHelpers::SignalData<void(const QString &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
64 { QMetaType::QString, 6 },
65 }}),
66 // Slot 'watch'
67 QtMocHelpers::SlotData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
68 // Method 'copyFromFile'
69 QtMocHelpers::MethodData<void(QString)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
70 { QMetaType::QString, 9 },
71 }}),
72 // Method 'exists'
73 QtMocHelpers::MethodData<bool()>(10, 2, QMC::AccessPublic, QMetaType::Bool),
74 // Method 'suffix'
75 QtMocHelpers::MethodData<QString()>(11, 2, QMC::AccessPublic, QMetaType::QString),
76 };
77 QtMocHelpers::UintData qt_properties {
78 // property 'url'
79 QtMocHelpers::PropertyData<QString>(4, QMetaType::QString, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
80 // property 'fileName'
81 QtMocHelpers::PropertyData<QString>(12, QMetaType::QString, QMC::DefaultPropertyFlags),
82 // property 'path'
83 QtMocHelpers::PropertyData<QString>(6, QMetaType::QString, QMC::DefaultPropertyFlags),
84 // property 'filePath'
85 QtMocHelpers::PropertyData<QString>(13, QMetaType::QString, QMC::DefaultPropertyFlags),
86 };
87 QtMocHelpers::UintData qt_enums {
88 };
89 return QtMocHelpers::metaObjectData<QmlFile, qt_meta_tag_ZN7QmlFileE_t>(QMC::MetaObjectFlag{}, qt_stringData,
90 qt_methods, qt_properties, qt_enums);
91}
92Q_CONSTINIT const QMetaObject QmlFile::staticMetaObject = { {
93 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
94 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7QmlFileE_t>.stringdata,
95 qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7QmlFileE_t>.data,
96 qt_static_metacall,
97 nullptr,
98 qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN7QmlFileE_t>.metaTypes,
99 nullptr
100} };
101
102void QmlFile::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
103{
104 auto *_t = static_cast<QmlFile *>(_o);
105 if (_c == QMetaObject::InvokeMetaMethod) {
106 switch (_id) {
107 case 0: _t->urlChanged((*reinterpret_cast<std::add_pointer_t<QUrl>>(_a[1]))); break;
108 case 1: _t->fileChanged((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
109 case 2: _t->watch(); break;
110 case 3: _t->copyFromFile((*reinterpret_cast<std::add_pointer_t<QString>>(_a[1]))); break;
111 case 4: { bool _r = _t->exists();
112 if (_a[0]) *reinterpret_cast<bool*>(_a[0]) = std::move(_r); } break;
113 case 5: { QString _r = _t->suffix();
114 if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); } break;
115 default: ;
116 }
117 }
118 if (_c == QMetaObject::IndexOfMethod) {
119 if (QtMocHelpers::indexOfMethod<void (QmlFile::*)(const QUrl & )>(_a, &QmlFile::urlChanged, 0))
120 return;
121 if (QtMocHelpers::indexOfMethod<void (QmlFile::*)(const QString & )>(_a, &QmlFile::fileChanged, 1))
122 return;
123 }
124 if (_c == QMetaObject::ReadProperty) {
125 void *_v = _a[0];
126 switch (_id) {
127 case 0: *reinterpret_cast<QString*>(_v) = _t->getUrl(); break;
128 case 1: *reinterpret_cast<QString*>(_v) = _t->getFileName(); break;
129 case 2: *reinterpret_cast<QString*>(_v) = _t->getPath(); break;
130 case 3: *reinterpret_cast<QString*>(_v) = _t->getFilePath(); break;
131 default: break;
132 }
133 }
134 if (_c == QMetaObject::WriteProperty) {
135 void *_v = _a[0];
136 switch (_id) {
137 case 0: _t->setUrl(*reinterpret_cast<QString*>(_v)); break;
138 default: break;
139 }
140 }
141}
142
143const QMetaObject *QmlFile::metaObject() const
144{
145 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
146}
147
148void *QmlFile::qt_metacast(const char *_clname)
149{
150 if (!_clname) return nullptr;
151 if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN7QmlFileE_t>.strings))
152 return static_cast<void*>(this);
153 return QObject::qt_metacast(_clname);
154}
155
156int QmlFile::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
157{
158 _id = QObject::qt_metacall(_c, _id, _a);
159 if (_id < 0)
160 return _id;
161 if (_c == QMetaObject::InvokeMetaMethod) {
162 if (_id < 6)
163 qt_static_metacall(this, _c, _id, _a);
164 _id -= 6;
165 }
166 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
167 if (_id < 6)
168 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
169 _id -= 6;
170 }
171 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
172 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
173 || _c == QMetaObject::RegisterPropertyMetaType) {
174 qt_static_metacall(this, _c, _id, _a);
175 _id -= 4;
176 }
177 return _id;
178}
179
180// SIGNAL 0
181void QmlFile::urlChanged(const QUrl & _t1)
182{
183 QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
184}
185
186// SIGNAL 1
187void QmlFile::fileChanged(const QString & _t1)
188{
189 QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
190}
191QT_WARNING_POP