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