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