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