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