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