1/****************************************************************************
2** Meta object code from reading C++ file 'qnetworkfile_p.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 "access/qnetworkfile_p.h"
11#include <QtNetwork/QSslError>
12#include <QtCore/qbytearray.h>
13#include <QtCore/qmetatype.h>
14#if !defined(Q_MOC_OUTPUT_REVISION)
15#error "The header file 'qnetworkfile_p.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_QNetworkFile_t {
26 const uint offsetsAndSize[26];
27 char stringdata0[133];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QNetworkFile_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QNetworkFile_t qt_meta_stringdata_QNetworkFile = {
32 {
33QT_MOC_LITERAL(0, 12), // "QNetworkFile"
34QT_MOC_LITERAL(13, 8), // "finished"
35QT_MOC_LITERAL(22, 0), // ""
36QT_MOC_LITERAL(23, 2), // "ok"
37QT_MOC_LITERAL(26, 10), // "headerRead"
38QT_MOC_LITERAL(37, 29), // "QNetworkRequest::KnownHeaders"
39QT_MOC_LITERAL(67, 6), // "header"
40QT_MOC_LITERAL(74, 5), // "value"
41QT_MOC_LITERAL(80, 5), // "error"
42QT_MOC_LITERAL(86, 27), // "QNetworkReply::NetworkError"
43QT_MOC_LITERAL(114, 7), // "message"
44QT_MOC_LITERAL(122, 4), // "open"
45QT_MOC_LITERAL(127, 5) // "close"
46
47 },
48 "QNetworkFile\0finished\0\0ok\0headerRead\0"
49 "QNetworkRequest::KnownHeaders\0header\0"
50 "value\0error\0QNetworkReply::NetworkError\0"
51 "message\0open\0close"
52};
53#undef QT_MOC_LITERAL
54
55static const uint qt_meta_data_QNetworkFile[] = {
56
57 // content:
58 9, // revision
59 0, // classname
60 0, 0, // classinfo
61 5, 14, // methods
62 0, 0, // properties
63 0, 0, // enums/sets
64 0, 0, // constructors
65 0, // flags
66 3, // signalCount
67
68 // signals: name, argc, parameters, tag, flags, initial metatype offsets
69 1, 1, 44, 2, 0x06, 0 /* Public */,
70 4, 2, 47, 2, 0x06, 2 /* Public */,
71 8, 2, 52, 2, 0x06, 5 /* Public */,
72
73 // slots: name, argc, parameters, tag, flags, initial metatype offsets
74 11, 0, 57, 2, 0x0a, 8 /* Public */,
75 12, 0, 58, 2, 0x0a, 9 /* Public */,
76
77 // signals: parameters
78 QMetaType::Void, QMetaType::Bool, 3,
79 QMetaType::Void, 0x80000000 | 5, QMetaType::QVariant, 6, 7,
80 QMetaType::Void, 0x80000000 | 9, QMetaType::QString, 8, 10,
81
82 // slots: parameters
83 QMetaType::Void,
84 QMetaType::Void,
85
86 0 // eod
87};
88
89void QNetworkFile::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
90{
91 if (_c == QMetaObject::InvokeMetaMethod) {
92 Q_ASSERT(staticMetaObject.cast(_o));
93 auto *_t = static_cast<QNetworkFile *>(_o);
94 Q_UNUSED(_t)
95 switch (_id) {
96 case 0: _t->finished((*reinterpret_cast< bool(*)>(_a[1]))); break;
97 case 1: _t->headerRead((*reinterpret_cast< QNetworkRequest::KnownHeaders(*)>(_a[1])),(*reinterpret_cast< const QVariant(*)>(_a[2]))); break;
98 case 2: _t->error((*reinterpret_cast< QNetworkReply::NetworkError(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2]))); break;
99 case 3: _t->open(); break;
100 case 4: _t->close(); break;
101 default: ;
102 }
103 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
104 switch (_id) {
105 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
106 case 2:
107 switch (*reinterpret_cast<int*>(_a[1])) {
108 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
109 case 0:
110 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QNetworkReply::NetworkError >(); break;
111 }
112 break;
113 }
114 } else if (_c == QMetaObject::IndexOfMethod) {
115 int *result = reinterpret_cast<int *>(_a[0]);
116 {
117 using _t = void (QNetworkFile::*)(bool );
118 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QNetworkFile::finished)) {
119 *result = 0;
120 return;
121 }
122 }
123 {
124 using _t = void (QNetworkFile::*)(QNetworkRequest::KnownHeaders , const QVariant & );
125 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QNetworkFile::headerRead)) {
126 *result = 1;
127 return;
128 }
129 }
130 {
131 using _t = void (QNetworkFile::*)(QNetworkReply::NetworkError , const QString & );
132 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QNetworkFile::error)) {
133 *result = 2;
134 return;
135 }
136 }
137 }
138}
139
140const QMetaObject QNetworkFile::staticMetaObject = { {
141 QMetaObject::SuperData::link<QFile::staticMetaObject>(),
142 qt_meta_stringdata_QNetworkFile.offsetsAndSize,
143 qt_meta_data_QNetworkFile,
144 qt_static_metacall,
145 nullptr,
146qt_incomplete_metaTypeArray<qt_meta_stringdata_QNetworkFile_t
147, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QNetworkRequest::KnownHeaders, std::false_type>, QtPrivate::TypeAndForceComplete<const QVariant &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QNetworkReply::NetworkError, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>
148, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
149
150
151>,
152 nullptr
153} };
154
155
156const QMetaObject *QNetworkFile::metaObject() const
157{
158 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
159}
160
161void *QNetworkFile::qt_metacast(const char *_clname)
162{
163 if (!_clname) return nullptr;
164 if (!strcmp(_clname, qt_meta_stringdata_QNetworkFile.stringdata0))
165 return static_cast<void*>(this);
166 return QFile::qt_metacast(_clname);
167}
168
169int QNetworkFile::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
170{
171 _id = QFile::qt_metacall(_c, _id, _a);
172 if (_id < 0)
173 return _id;
174 if (_c == QMetaObject::InvokeMetaMethod) {
175 if (_id < 5)
176 qt_static_metacall(this, _c, _id, _a);
177 _id -= 5;
178 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
179 if (_id < 5)
180 qt_static_metacall(this, _c, _id, _a);
181 _id -= 5;
182 }
183 return _id;
184}
185
186// SIGNAL 0
187void QNetworkFile::finished(bool _t1)
188{
189 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
190 QMetaObject::activate(this, &staticMetaObject, 0, _a);
191}
192
193// SIGNAL 1
194void QNetworkFile::headerRead(QNetworkRequest::KnownHeaders _t1, const QVariant & _t2)
195{
196 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
197 QMetaObject::activate(this, &staticMetaObject, 1, _a);
198}
199
200// SIGNAL 2
201void QNetworkFile::error(QNetworkReply::NetworkError _t1, const QString & _t2)
202{
203 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
204 QMetaObject::activate(this, &staticMetaObject, 2, _a);
205}
206QT_WARNING_POP
207QT_END_MOC_NAMESPACE
208