1/****************************************************************************
2** Meta object code from reading C++ file 'qabstractsocket.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 "socket/qabstractsocket.h"
11#include <QtNetwork/qauthenticator.h>
12#include <QtCore/qbytearray.h>
13#include <QtCore/qmetatype.h>
14#if !defined(Q_MOC_OUTPUT_REVISION)
15#error "The header file 'qabstractsocket.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_QAbstractSocket_t {
26 const uint offsetsAndSize[142];
27 char stringdata0[1305];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QAbstractSocket_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QAbstractSocket_t qt_meta_stringdata_QAbstractSocket = {
32 {
33QT_MOC_LITERAL(0, 15), // "QAbstractSocket"
34QT_MOC_LITERAL(16, 9), // "hostFound"
35QT_MOC_LITERAL(26, 0), // ""
36QT_MOC_LITERAL(27, 9), // "connected"
37QT_MOC_LITERAL(37, 12), // "disconnected"
38QT_MOC_LITERAL(50, 12), // "stateChanged"
39QT_MOC_LITERAL(63, 28), // "QAbstractSocket::SocketState"
40QT_MOC_LITERAL(92, 13), // "errorOccurred"
41QT_MOC_LITERAL(106, 28), // "QAbstractSocket::SocketError"
42QT_MOC_LITERAL(135, 27), // "proxyAuthenticationRequired"
43QT_MOC_LITERAL(163, 13), // "QNetworkProxy"
44QT_MOC_LITERAL(177, 5), // "proxy"
45QT_MOC_LITERAL(183, 15), // "QAuthenticator*"
46QT_MOC_LITERAL(199, 13), // "authenticator"
47QT_MOC_LITERAL(213, 23), // "_q_connectToNextAddress"
48QT_MOC_LITERAL(237, 18), // "_q_startConnecting"
49QT_MOC_LITERAL(256, 9), // "QHostInfo"
50QT_MOC_LITERAL(266, 25), // "_q_abortConnectionAttempt"
51QT_MOC_LITERAL(292, 17), // "_q_testConnection"
52QT_MOC_LITERAL(310, 10), // "SocketType"
53QT_MOC_LITERAL(321, 9), // "TcpSocket"
54QT_MOC_LITERAL(331, 9), // "UdpSocket"
55QT_MOC_LITERAL(341, 10), // "SctpSocket"
56QT_MOC_LITERAL(352, 17), // "UnknownSocketType"
57QT_MOC_LITERAL(370, 20), // "NetworkLayerProtocol"
58QT_MOC_LITERAL(391, 12), // "IPv4Protocol"
59QT_MOC_LITERAL(404, 12), // "IPv6Protocol"
60QT_MOC_LITERAL(417, 13), // "AnyIPProtocol"
61QT_MOC_LITERAL(431, 27), // "UnknownNetworkLayerProtocol"
62QT_MOC_LITERAL(459, 11), // "SocketError"
63QT_MOC_LITERAL(471, 22), // "ConnectionRefusedError"
64QT_MOC_LITERAL(494, 21), // "RemoteHostClosedError"
65QT_MOC_LITERAL(516, 17), // "HostNotFoundError"
66QT_MOC_LITERAL(534, 17), // "SocketAccessError"
67QT_MOC_LITERAL(552, 19), // "SocketResourceError"
68QT_MOC_LITERAL(572, 18), // "SocketTimeoutError"
69QT_MOC_LITERAL(591, 21), // "DatagramTooLargeError"
70QT_MOC_LITERAL(613, 12), // "NetworkError"
71QT_MOC_LITERAL(626, 17), // "AddressInUseError"
72QT_MOC_LITERAL(644, 30), // "SocketAddressNotAvailableError"
73QT_MOC_LITERAL(675, 31), // "UnsupportedSocketOperationError"
74QT_MOC_LITERAL(707, 30), // "UnfinishedSocketOperationError"
75QT_MOC_LITERAL(738, 32), // "ProxyAuthenticationRequiredError"
76QT_MOC_LITERAL(771, 23), // "SslHandshakeFailedError"
77QT_MOC_LITERAL(795, 27), // "ProxyConnectionRefusedError"
78QT_MOC_LITERAL(823, 26), // "ProxyConnectionClosedError"
79QT_MOC_LITERAL(850, 27), // "ProxyConnectionTimeoutError"
80QT_MOC_LITERAL(878, 18), // "ProxyNotFoundError"
81QT_MOC_LITERAL(897, 18), // "ProxyProtocolError"
82QT_MOC_LITERAL(916, 14), // "OperationError"
83QT_MOC_LITERAL(931, 16), // "SslInternalError"
84QT_MOC_LITERAL(948, 23), // "SslInvalidUserDataError"
85QT_MOC_LITERAL(972, 14), // "TemporaryError"
86QT_MOC_LITERAL(987, 18), // "UnknownSocketError"
87QT_MOC_LITERAL(1006, 11), // "SocketState"
88QT_MOC_LITERAL(1018, 16), // "UnconnectedState"
89QT_MOC_LITERAL(1035, 15), // "HostLookupState"
90QT_MOC_LITERAL(1051, 15), // "ConnectingState"
91QT_MOC_LITERAL(1067, 14), // "ConnectedState"
92QT_MOC_LITERAL(1082, 10), // "BoundState"
93QT_MOC_LITERAL(1093, 14), // "ListeningState"
94QT_MOC_LITERAL(1108, 12), // "ClosingState"
95QT_MOC_LITERAL(1121, 12), // "SocketOption"
96QT_MOC_LITERAL(1134, 14), // "LowDelayOption"
97QT_MOC_LITERAL(1149, 15), // "KeepAliveOption"
98QT_MOC_LITERAL(1165, 18), // "MulticastTtlOption"
99QT_MOC_LITERAL(1184, 23), // "MulticastLoopbackOption"
100QT_MOC_LITERAL(1208, 19), // "TypeOfServiceOption"
101QT_MOC_LITERAL(1228, 26), // "SendBufferSizeSocketOption"
102QT_MOC_LITERAL(1255, 29), // "ReceiveBufferSizeSocketOption"
103QT_MOC_LITERAL(1285, 19) // "PathMtuSocketOption"
104
105 },
106 "QAbstractSocket\0hostFound\0\0connected\0"
107 "disconnected\0stateChanged\0"
108 "QAbstractSocket::SocketState\0errorOccurred\0"
109 "QAbstractSocket::SocketError\0"
110 "proxyAuthenticationRequired\0QNetworkProxy\0"
111 "proxy\0QAuthenticator*\0authenticator\0"
112 "_q_connectToNextAddress\0_q_startConnecting\0"
113 "QHostInfo\0_q_abortConnectionAttempt\0"
114 "_q_testConnection\0SocketType\0TcpSocket\0"
115 "UdpSocket\0SctpSocket\0UnknownSocketType\0"
116 "NetworkLayerProtocol\0IPv4Protocol\0"
117 "IPv6Protocol\0AnyIPProtocol\0"
118 "UnknownNetworkLayerProtocol\0SocketError\0"
119 "ConnectionRefusedError\0RemoteHostClosedError\0"
120 "HostNotFoundError\0SocketAccessError\0"
121 "SocketResourceError\0SocketTimeoutError\0"
122 "DatagramTooLargeError\0NetworkError\0"
123 "AddressInUseError\0SocketAddressNotAvailableError\0"
124 "UnsupportedSocketOperationError\0"
125 "UnfinishedSocketOperationError\0"
126 "ProxyAuthenticationRequiredError\0"
127 "SslHandshakeFailedError\0"
128 "ProxyConnectionRefusedError\0"
129 "ProxyConnectionClosedError\0"
130 "ProxyConnectionTimeoutError\0"
131 "ProxyNotFoundError\0ProxyProtocolError\0"
132 "OperationError\0SslInternalError\0"
133 "SslInvalidUserDataError\0TemporaryError\0"
134 "UnknownSocketError\0SocketState\0"
135 "UnconnectedState\0HostLookupState\0"
136 "ConnectingState\0ConnectedState\0"
137 "BoundState\0ListeningState\0ClosingState\0"
138 "SocketOption\0LowDelayOption\0KeepAliveOption\0"
139 "MulticastTtlOption\0MulticastLoopbackOption\0"
140 "TypeOfServiceOption\0SendBufferSizeSocketOption\0"
141 "ReceiveBufferSizeSocketOption\0"
142 "PathMtuSocketOption"
143};
144#undef QT_MOC_LITERAL
145
146static const uint qt_meta_data_QAbstractSocket[] = {
147
148 // content:
149 9, // revision
150 0, // classname
151 0, 0, // classinfo
152 10, 14, // methods
153 0, 0, // properties
154 5, 94, // enums/sets
155 0, 0, // constructors
156 0, // flags
157 6, // signalCount
158
159 // signals: name, argc, parameters, tag, flags, initial metatype offsets
160 1, 0, 74, 2, 0x06, 0 /* Public */,
161 3, 0, 75, 2, 0x06, 1 /* Public */,
162 4, 0, 76, 2, 0x06, 2 /* Public */,
163 5, 1, 77, 2, 0x06, 3 /* Public */,
164 7, 1, 80, 2, 0x06, 5 /* Public */,
165 9, 2, 83, 2, 0x06, 7 /* Public */,
166
167 // slots: name, argc, parameters, tag, flags, initial metatype offsets
168 14, 0, 88, 2, 0x08, 10 /* Private */,
169 15, 1, 89, 2, 0x08, 11 /* Private */,
170 17, 0, 92, 2, 0x08, 13 /* Private */,
171 18, 0, 93, 2, 0x08, 14 /* Private */,
172
173 // signals: parameters
174 QMetaType::Void,
175 QMetaType::Void,
176 QMetaType::Void,
177 QMetaType::Void, 0x80000000 | 6, 2,
178 QMetaType::Void, 0x80000000 | 8, 2,
179 QMetaType::Void, 0x80000000 | 10, 0x80000000 | 12, 11, 13,
180
181 // slots: parameters
182 QMetaType::Void,
183 QMetaType::Void, 0x80000000 | 16, 2,
184 QMetaType::Void,
185 QMetaType::Void,
186
187 // enums: name, alias, flags, count, data
188 19, 19, 0x0, 4, 119,
189 24, 24, 0x0, 4, 127,
190 29, 29, 0x0, 24, 135,
191 54, 54, 0x0, 7, 183,
192 62, 62, 0x0, 8, 197,
193
194 // enum data: key, value
195 20, uint(QAbstractSocket::TcpSocket),
196 21, uint(QAbstractSocket::UdpSocket),
197 22, uint(QAbstractSocket::SctpSocket),
198 23, uint(QAbstractSocket::UnknownSocketType),
199 25, uint(QAbstractSocket::IPv4Protocol),
200 26, uint(QAbstractSocket::IPv6Protocol),
201 27, uint(QAbstractSocket::AnyIPProtocol),
202 28, uint(QAbstractSocket::UnknownNetworkLayerProtocol),
203 30, uint(QAbstractSocket::ConnectionRefusedError),
204 31, uint(QAbstractSocket::RemoteHostClosedError),
205 32, uint(QAbstractSocket::HostNotFoundError),
206 33, uint(QAbstractSocket::SocketAccessError),
207 34, uint(QAbstractSocket::SocketResourceError),
208 35, uint(QAbstractSocket::SocketTimeoutError),
209 36, uint(QAbstractSocket::DatagramTooLargeError),
210 37, uint(QAbstractSocket::NetworkError),
211 38, uint(QAbstractSocket::AddressInUseError),
212 39, uint(QAbstractSocket::SocketAddressNotAvailableError),
213 40, uint(QAbstractSocket::UnsupportedSocketOperationError),
214 41, uint(QAbstractSocket::UnfinishedSocketOperationError),
215 42, uint(QAbstractSocket::ProxyAuthenticationRequiredError),
216 43, uint(QAbstractSocket::SslHandshakeFailedError),
217 44, uint(QAbstractSocket::ProxyConnectionRefusedError),
218 45, uint(QAbstractSocket::ProxyConnectionClosedError),
219 46, uint(QAbstractSocket::ProxyConnectionTimeoutError),
220 47, uint(QAbstractSocket::ProxyNotFoundError),
221 48, uint(QAbstractSocket::ProxyProtocolError),
222 49, uint(QAbstractSocket::OperationError),
223 50, uint(QAbstractSocket::SslInternalError),
224 51, uint(QAbstractSocket::SslInvalidUserDataError),
225 52, uint(QAbstractSocket::TemporaryError),
226 53, uint(QAbstractSocket::UnknownSocketError),
227 55, uint(QAbstractSocket::UnconnectedState),
228 56, uint(QAbstractSocket::HostLookupState),
229 57, uint(QAbstractSocket::ConnectingState),
230 58, uint(QAbstractSocket::ConnectedState),
231 59, uint(QAbstractSocket::BoundState),
232 60, uint(QAbstractSocket::ListeningState),
233 61, uint(QAbstractSocket::ClosingState),
234 63, uint(QAbstractSocket::LowDelayOption),
235 64, uint(QAbstractSocket::KeepAliveOption),
236 65, uint(QAbstractSocket::MulticastTtlOption),
237 66, uint(QAbstractSocket::MulticastLoopbackOption),
238 67, uint(QAbstractSocket::TypeOfServiceOption),
239 68, uint(QAbstractSocket::SendBufferSizeSocketOption),
240 69, uint(QAbstractSocket::ReceiveBufferSizeSocketOption),
241 70, uint(QAbstractSocket::PathMtuSocketOption),
242
243 0 // eod
244};
245
246void QAbstractSocket::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
247{
248 if (_c == QMetaObject::InvokeMetaMethod) {
249 Q_ASSERT(staticMetaObject.cast(_o));
250 auto *_t = static_cast<QAbstractSocket *>(_o);
251 Q_UNUSED(_t)
252 switch (_id) {
253 case 0: _t->hostFound(); break;
254 case 1: _t->connected(); break;
255 case 2: _t->disconnected(); break;
256 case 3: _t->stateChanged((*reinterpret_cast< QAbstractSocket::SocketState(*)>(_a[1]))); break;
257 case 4: _t->errorOccurred((*reinterpret_cast< QAbstractSocket::SocketError(*)>(_a[1]))); break;
258 case 5: _t->proxyAuthenticationRequired((*reinterpret_cast< const QNetworkProxy(*)>(_a[1])),(*reinterpret_cast< QAuthenticator*(*)>(_a[2]))); break;
259 case 6: _t->d_func()->_q_connectToNextAddress(); break;
260 case 7: _t->d_func()->_q_startConnecting((*reinterpret_cast< const QHostInfo(*)>(_a[1]))); break;
261 case 8: _t->d_func()->_q_abortConnectionAttempt(); break;
262 case 9: _t->d_func()->_q_testConnection(); break;
263 default: ;
264 }
265 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
266 switch (_id) {
267 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
268 case 3:
269 switch (*reinterpret_cast<int*>(_a[1])) {
270 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
271 case 0:
272 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QAbstractSocket::SocketState >(); break;
273 }
274 break;
275 case 4:
276 switch (*reinterpret_cast<int*>(_a[1])) {
277 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
278 case 0:
279 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QAbstractSocket::SocketError >(); break;
280 }
281 break;
282 }
283 } else if (_c == QMetaObject::IndexOfMethod) {
284 int *result = reinterpret_cast<int *>(_a[0]);
285 {
286 using _t = void (QAbstractSocket::*)();
287 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractSocket::hostFound)) {
288 *result = 0;
289 return;
290 }
291 }
292 {
293 using _t = void (QAbstractSocket::*)();
294 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractSocket::connected)) {
295 *result = 1;
296 return;
297 }
298 }
299 {
300 using _t = void (QAbstractSocket::*)();
301 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractSocket::disconnected)) {
302 *result = 2;
303 return;
304 }
305 }
306 {
307 using _t = void (QAbstractSocket::*)(QAbstractSocket::SocketState );
308 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractSocket::stateChanged)) {
309 *result = 3;
310 return;
311 }
312 }
313 {
314 using _t = void (QAbstractSocket::*)(QAbstractSocket::SocketError );
315 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractSocket::errorOccurred)) {
316 *result = 4;
317 return;
318 }
319 }
320 {
321 using _t = void (QAbstractSocket::*)(const QNetworkProxy & , QAuthenticator * );
322 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QAbstractSocket::proxyAuthenticationRequired)) {
323 *result = 5;
324 return;
325 }
326 }
327 }
328}
329
330const QMetaObject QAbstractSocket::staticMetaObject = { {
331 QMetaObject::SuperData::link<QIODevice::staticMetaObject>(),
332 qt_meta_stringdata_QAbstractSocket.offsetsAndSize,
333 qt_meta_data_QAbstractSocket,
334 qt_static_metacall,
335 nullptr,
336qt_incomplete_metaTypeArray<qt_meta_stringdata_QAbstractSocket_t
337, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractSocket::SocketState, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractSocket::SocketError, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QNetworkProxy &, std::false_type>, QtPrivate::TypeAndForceComplete<QAuthenticator *, std::false_type>
338, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QHostInfo &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
339
340
341>,
342 nullptr
343} };
344
345
346const QMetaObject *QAbstractSocket::metaObject() const
347{
348 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
349}
350
351void *QAbstractSocket::qt_metacast(const char *_clname)
352{
353 if (!_clname) return nullptr;
354 if (!strcmp(_clname, qt_meta_stringdata_QAbstractSocket.stringdata0))
355 return static_cast<void*>(this);
356 return QIODevice::qt_metacast(_clname);
357}
358
359int QAbstractSocket::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
360{
361 _id = QIODevice::qt_metacall(_c, _id, _a);
362 if (_id < 0)
363 return _id;
364 if (_c == QMetaObject::InvokeMetaMethod) {
365 if (_id < 10)
366 qt_static_metacall(this, _c, _id, _a);
367 _id -= 10;
368 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
369 if (_id < 10)
370 qt_static_metacall(this, _c, _id, _a);
371 _id -= 10;
372 }
373 return _id;
374}
375
376// SIGNAL 0
377void QAbstractSocket::hostFound()
378{
379 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
380}
381
382// SIGNAL 1
383void QAbstractSocket::connected()
384{
385 QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
386}
387
388// SIGNAL 2
389void QAbstractSocket::disconnected()
390{
391 QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
392}
393
394// SIGNAL 3
395void QAbstractSocket::stateChanged(QAbstractSocket::SocketState _t1)
396{
397 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
398 QMetaObject::activate(this, &staticMetaObject, 3, _a);
399}
400
401// SIGNAL 4
402void QAbstractSocket::errorOccurred(QAbstractSocket::SocketError _t1)
403{
404 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
405 QMetaObject::activate(this, &staticMetaObject, 4, _a);
406}
407
408// SIGNAL 5
409void QAbstractSocket::proxyAuthenticationRequired(const QNetworkProxy & _t1, QAuthenticator * _t2)
410{
411 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
412 QMetaObject::activate(this, &staticMetaObject, 5, _a);
413}
414QT_WARNING_POP
415QT_END_MOC_NAMESPACE
416