1/****************************************************************************
2** Meta object code from reading C++ file 'qfilesystemmodel.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.0.0)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include <memory>
10#include "itemmodels/qfilesystemmodel.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#include <QtCore/QList>
14#if !defined(Q_MOC_OUTPUT_REVISION)
15#error "The header file 'qfilesystemmodel.h' doesn't include <QObject>."
16#elif Q_MOC_OUTPUT_REVISION != 68
17#error "This file was generated using the moc from 6.0.0. It"
18#error "cannot be used with the include files from this version of Qt."
19#error "(The moc has changed too much.)"
20#endif
21
22QT_BEGIN_MOC_NAMESPACE
23QT_WARNING_PUSH
24QT_WARNING_DISABLE_DEPRECATED
25struct qt_meta_stringdata_QFileSystemModel_t {
26 const uint offsetsAndSize[54];
27 char stringdata0[378];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QFileSystemModel_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QFileSystemModel_t qt_meta_stringdata_QFileSystemModel = {
32 {
33QT_MOC_LITERAL(0, 16), // "QFileSystemModel"
34QT_MOC_LITERAL(17, 15), // "rootPathChanged"
35QT_MOC_LITERAL(33, 0), // ""
36QT_MOC_LITERAL(34, 7), // "newPath"
37QT_MOC_LITERAL(42, 11), // "fileRenamed"
38QT_MOC_LITERAL(54, 4), // "path"
39QT_MOC_LITERAL(59, 7), // "oldName"
40QT_MOC_LITERAL(67, 7), // "newName"
41QT_MOC_LITERAL(75, 15), // "directoryLoaded"
42QT_MOC_LITERAL(91, 19), // "_q_directoryChanged"
43QT_MOC_LITERAL(111, 9), // "directory"
44QT_MOC_LITERAL(121, 4), // "list"
45QT_MOC_LITERAL(126, 21), // "_q_performDelayedSort"
46QT_MOC_LITERAL(148, 20), // "_q_fileSystemChanged"
47QT_MOC_LITERAL(169, 35), // "QList<std::pair<QString,QFile..."
48QT_MOC_LITERAL(205, 15), // "_q_resolvedName"
49QT_MOC_LITERAL(221, 8), // "fileName"
50QT_MOC_LITERAL(230, 12), // "resolvedName"
51QT_MOC_LITERAL(243, 15), // "resolveSymlinks"
52QT_MOC_LITERAL(259, 8), // "readOnly"
53QT_MOC_LITERAL(268, 18), // "nameFilterDisables"
54QT_MOC_LITERAL(287, 7), // "options"
55QT_MOC_LITERAL(295, 7), // "Options"
56QT_MOC_LITERAL(303, 6), // "Option"
57QT_MOC_LITERAL(310, 19), // "DontWatchForChanges"
58QT_MOC_LITERAL(330, 19), // "DontResolveSymlinks"
59QT_MOC_LITERAL(350, 27) // "DontUseCustomDirectoryIcons"
60
61 },
62 "QFileSystemModel\0rootPathChanged\0\0"
63 "newPath\0fileRenamed\0path\0oldName\0"
64 "newName\0directoryLoaded\0_q_directoryChanged\0"
65 "directory\0list\0_q_performDelayedSort\0"
66 "_q_fileSystemChanged\0"
67 "QList<std::pair<QString,QFileInfo>>\0"
68 "_q_resolvedName\0fileName\0resolvedName\0"
69 "resolveSymlinks\0readOnly\0nameFilterDisables\0"
70 "options\0Options\0Option\0DontWatchForChanges\0"
71 "DontResolveSymlinks\0DontUseCustomDirectoryIcons"
72};
73#undef QT_MOC_LITERAL
74
75static const uint qt_meta_data_QFileSystemModel[] = {
76
77 // content:
78 9, // revision
79 0, // classname
80 0, 0, // classinfo
81 7, 14, // methods
82 4, 85, // properties
83 1, 105, // enums/sets
84 0, 0, // constructors
85 0, // flags
86 3, // signalCount
87
88 // signals: name, argc, parameters, tag, flags, initial metatype offsets
89 1, 1, 56, 2, 0x06, 4 /* Public */,
90 4, 3, 59, 2, 0x06, 6 /* Public */,
91 8, 1, 66, 2, 0x06, 10 /* Public */,
92
93 // slots: name, argc, parameters, tag, flags, initial metatype offsets
94 9, 2, 69, 2, 0x08, 12 /* Private */,
95 12, 0, 74, 2, 0x08, 15 /* Private */,
96 13, 2, 75, 2, 0x08, 16 /* Private */,
97 15, 2, 80, 2, 0x08, 19 /* Private */,
98
99 // signals: parameters
100 QMetaType::Void, QMetaType::QString, 3,
101 QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, 5, 6, 7,
102 QMetaType::Void, QMetaType::QString, 5,
103
104 // slots: parameters
105 QMetaType::Void, QMetaType::QString, QMetaType::QStringList, 10, 11,
106 QMetaType::Void,
107 QMetaType::Void, QMetaType::QString, 0x80000000 | 14, 5, 2,
108 QMetaType::Void, QMetaType::QString, QMetaType::QString, 16, 17,
109
110 // properties: name, type, flags
111 18, QMetaType::Bool, 0x00015103, uint(-1), 0,
112 19, QMetaType::Bool, 0x00015103, uint(-1), 0,
113 20, QMetaType::Bool, 0x00015103, uint(-1), 0,
114 21, 0x80000000 | 22, 0x0001510b, uint(-1), 0,
115
116 // enums: name, alias, flags, count, data
117 23, 23, 0x0, 3, 110,
118
119 // enum data: key, value
120 24, uint(QFileSystemModel::DontWatchForChanges),
121 25, uint(QFileSystemModel::DontResolveSymlinks),
122 26, uint(QFileSystemModel::DontUseCustomDirectoryIcons),
123
124 0 // eod
125};
126
127void QFileSystemModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
128{
129 if (_c == QMetaObject::InvokeMetaMethod) {
130 Q_ASSERT(staticMetaObject.cast(_o));
131 auto *_t = static_cast<QFileSystemModel *>(_o);
132 Q_UNUSED(_t)
133 switch (_id) {
134 case 0: _t->rootPathChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
135 case 1: _t->fileRenamed((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
136 case 2: _t->directoryLoaded((*reinterpret_cast< const QString(*)>(_a[1]))); break;
137 case 3: _t->d_func()->_q_directoryChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QStringList(*)>(_a[2]))); break;
138 case 4: _t->d_func()->_q_performDelayedSort(); break;
139 case 5: _t->d_func()->_q_fileSystemChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QList<std::pair<QString,QFileInfo>>(*)>(_a[2]))); break;
140 case 6: _t->d_func()->_q_resolvedName((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
141 default: ;
142 }
143 } else if (_c == QMetaObject::IndexOfMethod) {
144 int *result = reinterpret_cast<int *>(_a[0]);
145 {
146 using _t = void (QFileSystemModel::*)(const QString & );
147 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QFileSystemModel::rootPathChanged)) {
148 *result = 0;
149 return;
150 }
151 }
152 {
153 using _t = void (QFileSystemModel::*)(const QString & , const QString & , const QString & );
154 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QFileSystemModel::fileRenamed)) {
155 *result = 1;
156 return;
157 }
158 }
159 {
160 using _t = void (QFileSystemModel::*)(const QString & );
161 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QFileSystemModel::directoryLoaded)) {
162 *result = 2;
163 return;
164 }
165 }
166 }
167#ifndef QT_NO_PROPERTIES
168 else if (_c == QMetaObject::ReadProperty) {
169 Q_ASSERT(staticMetaObject.cast(_o));
170 auto *_t = static_cast<QFileSystemModel *>(_o);
171 Q_UNUSED(_t)
172 void *_v = _a[0];
173 switch (_id) {
174 case 0: *reinterpret_cast< bool*>(_v) = _t->resolveSymlinks(); break;
175 case 1: *reinterpret_cast< bool*>(_v) = _t->isReadOnly(); break;
176 case 2: *reinterpret_cast< bool*>(_v) = _t->nameFilterDisables(); break;
177 case 3: *reinterpret_cast< Options*>(_v) = _t->options(); break;
178 default: break;
179 }
180 } else if (_c == QMetaObject::WriteProperty) {
181 Q_ASSERT(staticMetaObject.cast(_o));
182 auto *_t = static_cast<QFileSystemModel *>(_o);
183 Q_UNUSED(_t)
184 void *_v = _a[0];
185 switch (_id) {
186 case 0: _t->setResolveSymlinks(*reinterpret_cast< bool*>(_v)); break;
187 case 1: _t->setReadOnly(*reinterpret_cast< bool*>(_v)); break;
188 case 2: _t->setNameFilterDisables(*reinterpret_cast< bool*>(_v)); break;
189 case 3: _t->setOptions(*reinterpret_cast< Options*>(_v)); break;
190 default: break;
191 }
192 } else if (_c == QMetaObject::ResetProperty) {
193 } else if (_c == QMetaObject::BindableProperty) {
194 }
195#endif // QT_NO_PROPERTIES
196}
197
198const QMetaObject QFileSystemModel::staticMetaObject = { {
199 QMetaObject::SuperData::link<QAbstractItemModel::staticMetaObject>(),
200 qt_meta_stringdata_QFileSystemModel.offsetsAndSize,
201 qt_meta_data_QFileSystemModel,
202 qt_static_metacall,
203 nullptr,
204qt_incomplete_metaTypeArray<qt_meta_stringdata_QFileSystemModel_t
205, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<bool, std::true_type>, QtPrivate::TypeAndForceComplete<Options, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>
206, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QStringList &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QList<QPair<QString,QFileInfo>> &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>
207
208
209>,
210 nullptr
211} };
212
213
214const QMetaObject *QFileSystemModel::metaObject() const
215{
216 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
217}
218
219void *QFileSystemModel::qt_metacast(const char *_clname)
220{
221 if (!_clname) return nullptr;
222 if (!strcmp(_clname, qt_meta_stringdata_QFileSystemModel.stringdata0))
223 return static_cast<void*>(this);
224 return QAbstractItemModel::qt_metacast(_clname);
225}
226
227int QFileSystemModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
228{
229 _id = QAbstractItemModel::qt_metacall(_c, _id, _a);
230 if (_id < 0)
231 return _id;
232 if (_c == QMetaObject::InvokeMetaMethod) {
233 if (_id < 7)
234 qt_static_metacall(this, _c, _id, _a);
235 _id -= 7;
236 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
237 if (_id < 7)
238 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
239 _id -= 7;
240 }
241#ifndef QT_NO_PROPERTIES
242 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
243 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
244 || _c == QMetaObject::RegisterPropertyMetaType) {
245 qt_static_metacall(this, _c, _id, _a);
246 _id -= 4;
247 }
248#endif // QT_NO_PROPERTIES
249 return _id;
250}
251
252// SIGNAL 0
253void QFileSystemModel::rootPathChanged(const QString & _t1)
254{
255 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
256 QMetaObject::activate(this, &staticMetaObject, 0, _a);
257}
258
259// SIGNAL 1
260void QFileSystemModel::fileRenamed(const QString & _t1, const QString & _t2, const QString & _t3)
261{
262 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
263 QMetaObject::activate(this, &staticMetaObject, 1, _a);
264}
265
266// SIGNAL 2
267void QFileSystemModel::directoryLoaded(const QString & _t1)
268{
269 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
270 QMetaObject::activate(this, &staticMetaObject, 2, _a);
271}
272QT_WARNING_POP
273QT_END_MOC_NAMESPACE
274