1/****************************************************************************
2** Meta object code from reading C++ file 'qtcpserver.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/qtcpserver.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qtcpserver.h' doesn't include <QObject>."
15#elif Q_MOC_OUTPUT_REVISION != 68
16#error "This file was generated using the moc from 6.0.0. It"
17#error "cannot be used with the include files from this version of Qt."
18#error "(The moc has changed too much.)"
19#endif
20
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_QTcpServer_t {
25 const uint offsetsAndSize[12];
26 char stringdata0[79];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QTcpServer_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QTcpServer_t qt_meta_stringdata_QTcpServer = {
31 {
32QT_MOC_LITERAL(0, 10), // "QTcpServer"
33QT_MOC_LITERAL(11, 13), // "newConnection"
34QT_MOC_LITERAL(25, 0), // ""
35QT_MOC_LITERAL(26, 11), // "acceptError"
36QT_MOC_LITERAL(38, 28), // "QAbstractSocket::SocketError"
37QT_MOC_LITERAL(67, 11) // "socketError"
38
39 },
40 "QTcpServer\0newConnection\0\0acceptError\0"
41 "QAbstractSocket::SocketError\0socketError"
42};
43#undef QT_MOC_LITERAL
44
45static const uint qt_meta_data_QTcpServer[] = {
46
47 // content:
48 9, // revision
49 0, // classname
50 0, 0, // classinfo
51 2, 14, // methods
52 0, 0, // properties
53 0, 0, // enums/sets
54 0, 0, // constructors
55 0, // flags
56 2, // signalCount
57
58 // signals: name, argc, parameters, tag, flags, initial metatype offsets
59 1, 0, 26, 2, 0x06, 0 /* Public */,
60 3, 1, 27, 2, 0x06, 1 /* Public */,
61
62 // signals: parameters
63 QMetaType::Void,
64 QMetaType::Void, 0x80000000 | 4, 5,
65
66 0 // eod
67};
68
69void QTcpServer::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
70{
71 if (_c == QMetaObject::InvokeMetaMethod) {
72 Q_ASSERT(staticMetaObject.cast(_o));
73 auto *_t = static_cast<QTcpServer *>(_o);
74 Q_UNUSED(_t)
75 switch (_id) {
76 case 0: _t->newConnection(); break;
77 case 1: _t->acceptError((*reinterpret_cast< QAbstractSocket::SocketError(*)>(_a[1]))); break;
78 default: ;
79 }
80 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
81 switch (_id) {
82 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
83 case 1:
84 switch (*reinterpret_cast<int*>(_a[1])) {
85 default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
86 case 0:
87 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< QAbstractSocket::SocketError >(); break;
88 }
89 break;
90 }
91 } else if (_c == QMetaObject::IndexOfMethod) {
92 int *result = reinterpret_cast<int *>(_a[0]);
93 {
94 using _t = void (QTcpServer::*)();
95 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTcpServer::newConnection)) {
96 *result = 0;
97 return;
98 }
99 }
100 {
101 using _t = void (QTcpServer::*)(QAbstractSocket::SocketError );
102 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QTcpServer::acceptError)) {
103 *result = 1;
104 return;
105 }
106 }
107 }
108}
109
110const QMetaObject QTcpServer::staticMetaObject = { {
111 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
112 qt_meta_stringdata_QTcpServer.offsetsAndSize,
113 qt_meta_data_QTcpServer,
114 qt_static_metacall,
115 nullptr,
116qt_incomplete_metaTypeArray<qt_meta_stringdata_QTcpServer_t
117, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QAbstractSocket::SocketError, std::false_type>
118
119
120
121>,
122 nullptr
123} };
124
125
126const QMetaObject *QTcpServer::metaObject() const
127{
128 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
129}
130
131void *QTcpServer::qt_metacast(const char *_clname)
132{
133 if (!_clname) return nullptr;
134 if (!strcmp(_clname, qt_meta_stringdata_QTcpServer.stringdata0))
135 return static_cast<void*>(this);
136 return QObject::qt_metacast(_clname);
137}
138
139int QTcpServer::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
140{
141 _id = QObject::qt_metacall(_c, _id, _a);
142 if (_id < 0)
143 return _id;
144 if (_c == QMetaObject::InvokeMetaMethod) {
145 if (_id < 2)
146 qt_static_metacall(this, _c, _id, _a);
147 _id -= 2;
148 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
149 if (_id < 2)
150 qt_static_metacall(this, _c, _id, _a);
151 _id -= 2;
152 }
153 return _id;
154}
155
156// SIGNAL 0
157void QTcpServer::newConnection()
158{
159 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
160}
161
162// SIGNAL 1
163void QTcpServer::acceptError(QAbstractSocket::SocketError _t1)
164{
165 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
166 QMetaObject::activate(this, &staticMetaObject, 1, _a);
167}
168QT_WARNING_POP
169QT_END_MOC_NAMESPACE
170