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