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