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