1/****************************************************************************
2** Meta object code from reading C++ file 'qsqltablemodel.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 "models/qsqltablemodel.h"
11#include <QtSql/qsqlrecord.h>
12#include <QtCore/qbytearray.h>
13#include <QtCore/qmetatype.h>
14#if !defined(Q_MOC_OUTPUT_REVISION)
15#error "The header file 'qsqltablemodel.h' doesn't include <QObject>."
16#elif Q_MOC_OUTPUT_REVISION != 68
17#error "This file was generated using the moc from 6.0.0. It"
18#error "cannot be used with the include files from this version of Qt."
19#error "(The moc has changed too much.)"
20#endif
21
22QT_BEGIN_MOC_NAMESPACE
23QT_WARNING_PUSH
24QT_WARNING_DISABLE_DEPRECATED
25struct qt_meta_stringdata_QSqlTableModel_t {
26 const uint offsetsAndSize[30];
27 char stringdata0[141];
28};
29#define QT_MOC_LITERAL(ofs, len) \
30 uint(offsetof(qt_meta_stringdata_QSqlTableModel_t, stringdata0) + ofs), len
31static const qt_meta_stringdata_QSqlTableModel_t qt_meta_stringdata_QSqlTableModel = {
32 {
33QT_MOC_LITERAL(0, 14), // "QSqlTableModel"
34QT_MOC_LITERAL(15, 11), // "primeInsert"
35QT_MOC_LITERAL(27, 0), // ""
36QT_MOC_LITERAL(28, 3), // "row"
37QT_MOC_LITERAL(32, 11), // "QSqlRecord&"
38QT_MOC_LITERAL(44, 6), // "record"
39QT_MOC_LITERAL(51, 12), // "beforeInsert"
40QT_MOC_LITERAL(64, 12), // "beforeUpdate"
41QT_MOC_LITERAL(77, 12), // "beforeDelete"
42QT_MOC_LITERAL(90, 6), // "select"
43QT_MOC_LITERAL(97, 9), // "selectRow"
44QT_MOC_LITERAL(107, 6), // "submit"
45QT_MOC_LITERAL(114, 6), // "revert"
46QT_MOC_LITERAL(121, 9), // "submitAll"
47QT_MOC_LITERAL(131, 9) // "revertAll"
48
49 },
50 "QSqlTableModel\0primeInsert\0\0row\0"
51 "QSqlRecord&\0record\0beforeInsert\0"
52 "beforeUpdate\0beforeDelete\0select\0"
53 "selectRow\0submit\0revert\0submitAll\0"
54 "revertAll"
55};
56#undef QT_MOC_LITERAL
57
58static const uint qt_meta_data_QSqlTableModel[] = {
59
60 // content:
61 9, // revision
62 0, // classname
63 0, 0, // classinfo
64 10, 14, // methods
65 0, 0, // properties
66 0, 0, // enums/sets
67 0, 0, // constructors
68 0, // flags
69 4, // signalCount
70
71 // signals: name, argc, parameters, tag, flags, initial metatype offsets
72 1, 2, 74, 2, 0x06, 0 /* Public */,
73 6, 1, 79, 2, 0x06, 3 /* Public */,
74 7, 2, 82, 2, 0x06, 5 /* Public */,
75 8, 1, 87, 2, 0x06, 8 /* Public */,
76
77 // slots: name, argc, parameters, tag, flags, initial metatype offsets
78 9, 0, 90, 2, 0x0a, 10 /* Public */,
79 10, 1, 91, 2, 0x0a, 11 /* Public */,
80 11, 0, 94, 2, 0x0a, 13 /* Public */,
81 12, 0, 95, 2, 0x0a, 14 /* Public */,
82 13, 0, 96, 2, 0x0a, 15 /* Public */,
83 14, 0, 97, 2, 0x0a, 16 /* Public */,
84
85 // signals: parameters
86 QMetaType::Void, QMetaType::Int, 0x80000000 | 4, 3, 5,
87 QMetaType::Void, 0x80000000 | 4, 5,
88 QMetaType::Void, QMetaType::Int, 0x80000000 | 4, 3, 5,
89 QMetaType::Void, QMetaType::Int, 3,
90
91 // slots: parameters
92 QMetaType::Bool,
93 QMetaType::Bool, QMetaType::Int, 3,
94 QMetaType::Bool,
95 QMetaType::Void,
96 QMetaType::Bool,
97 QMetaType::Void,
98
99 0 // eod
100};
101
102void QSqlTableModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
103{
104 if (_c == QMetaObject::InvokeMetaMethod) {
105 Q_ASSERT(staticMetaObject.cast(_o));
106 auto *_t = static_cast<QSqlTableModel *>(_o);
107 Q_UNUSED(_t)
108 switch (_id) {
109 case 0: _t->primeInsert((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QSqlRecord(*)>(_a[2]))); break;
110 case 1: _t->beforeInsert((*reinterpret_cast< QSqlRecord(*)>(_a[1]))); break;
111 case 2: _t->beforeUpdate((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QSqlRecord(*)>(_a[2]))); break;
112 case 3: _t->beforeDelete((*reinterpret_cast< int(*)>(_a[1]))); break;
113 case 4: { bool _r = _t->select();
114 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
115 case 5: { bool _r = _t->selectRow((*reinterpret_cast< int(*)>(_a[1])));
116 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
117 case 6: { bool _r = _t->submit();
118 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
119 case 7: _t->revert(); break;
120 case 8: { bool _r = _t->submitAll();
121 if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
122 case 9: _t->revertAll(); break;
123 default: ;
124 }
125 } else if (_c == QMetaObject::IndexOfMethod) {
126 int *result = reinterpret_cast<int *>(_a[0]);
127 {
128 using _t = void (QSqlTableModel::*)(int , QSqlRecord & );
129 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSqlTableModel::primeInsert)) {
130 *result = 0;
131 return;
132 }
133 }
134 {
135 using _t = void (QSqlTableModel::*)(QSqlRecord & );
136 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSqlTableModel::beforeInsert)) {
137 *result = 1;
138 return;
139 }
140 }
141 {
142 using _t = void (QSqlTableModel::*)(int , QSqlRecord & );
143 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSqlTableModel::beforeUpdate)) {
144 *result = 2;
145 return;
146 }
147 }
148 {
149 using _t = void (QSqlTableModel::*)(int );
150 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QSqlTableModel::beforeDelete)) {
151 *result = 3;
152 return;
153 }
154 }
155 }
156}
157
158const QMetaObject QSqlTableModel::staticMetaObject = { {
159 QMetaObject::SuperData::link<QSqlQueryModel::staticMetaObject>(),
160 qt_meta_stringdata_QSqlTableModel.offsetsAndSize,
161 qt_meta_data_QSqlTableModel,
162 qt_static_metacall,
163 nullptr,
164qt_incomplete_metaTypeArray<qt_meta_stringdata_QSqlTableModel_t
165, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<QSqlRecord &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QSqlRecord &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<QSqlRecord &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>
166, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<int, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<bool, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
167
168
169>,
170 nullptr
171} };
172
173
174const QMetaObject *QSqlTableModel::metaObject() const
175{
176 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
177}
178
179void *QSqlTableModel::qt_metacast(const char *_clname)
180{
181 if (!_clname) return nullptr;
182 if (!strcmp(_clname, qt_meta_stringdata_QSqlTableModel.stringdata0))
183 return static_cast<void*>(this);
184 return QSqlQueryModel::qt_metacast(_clname);
185}
186
187int QSqlTableModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
188{
189 _id = QSqlQueryModel::qt_metacall(_c, _id, _a);
190 if (_id < 0)
191 return _id;
192 if (_c == QMetaObject::InvokeMetaMethod) {
193 if (_id < 10)
194 qt_static_metacall(this, _c, _id, _a);
195 _id -= 10;
196 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
197 if (_id < 10)
198 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
199 _id -= 10;
200 }
201 return _id;
202}
203
204// SIGNAL 0
205void QSqlTableModel::primeInsert(int _t1, QSqlRecord & _t2)
206{
207 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
208 QMetaObject::activate(this, &staticMetaObject, 0, _a);
209}
210
211// SIGNAL 1
212void QSqlTableModel::beforeInsert(QSqlRecord & _t1)
213{
214 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
215 QMetaObject::activate(this, &staticMetaObject, 1, _a);
216}
217
218// SIGNAL 2
219void QSqlTableModel::beforeUpdate(int _t1, QSqlRecord & _t2)
220{
221 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))) };
222 QMetaObject::activate(this, &staticMetaObject, 2, _a);
223}
224
225// SIGNAL 3
226void QSqlTableModel::beforeDelete(int _t1)
227{
228 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
229 QMetaObject::activate(this, &staticMetaObject, 3, _a);
230}
231QT_WARNING_POP
232QT_END_MOC_NAMESPACE
233