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