CuteLogger
Fast and simple logging solution for Qt based applications
moc_messagedialog.cpp
1/****************************************************************************
2** Meta object code from reading C++ file 'messagedialog.h'
3**
4** Created by: The Qt Meta Object Compiler version 68 (Qt 6.5.2)
5**
6** WARNING! All changes made in this file will be lost!
7*****************************************************************************/
8
9#include "../../../../src/qmltypes/messagedialog.h"
10#include <QtCore/qmetatype.h>
11
12#if __has_include(<QtCore/qtmochelpers.h>)
13#include <QtCore/qtmochelpers.h>
14#else
15QT_BEGIN_MOC_NAMESPACE
16#endif
17
18
19#include <memory>
20
21#if !defined(Q_MOC_OUTPUT_REVISION)
22#error "The header file 'messagedialog.h' doesn't include <QObject>."
23#elif Q_MOC_OUTPUT_REVISION != 68
24#error "This file was generated using the moc from 6.5.2. It"
25#error "cannot be used with the include files from this version of Qt."
26#error "(The moc has changed too much.)"
27#endif
28
29#ifndef Q_CONSTINIT
30#define Q_CONSTINIT
31#endif
32
33QT_WARNING_PUSH
34QT_WARNING_DISABLE_DEPRECATED
35QT_WARNING_DISABLE_GCC("-Wuseless-cast")
36namespace {
37
38#ifdef QT_MOC_HAS_STRINGDATA
39struct qt_meta_stringdata_CLASSMessageDialogENDCLASS_t {};
40static constexpr auto qt_meta_stringdata_CLASSMessageDialogENDCLASS = QtMocHelpers::stringData(
41 "MessageDialog",
42 "titleChanged",
43 "",
44 "title",
45 "textChanged",
46 "text",
47 "buttonsChanged",
48 "buttons",
49 "accepted",
50 "rejected",
51 "open",
52 "StandardButtons",
53 "Ok",
54 "Yes",
55 "No",
56 "Cancel"
57);
58#else // !QT_MOC_HAS_STRING_DATA
59struct qt_meta_stringdata_CLASSMessageDialogENDCLASS_t {
60 uint offsetsAndSizes[32];
61 char stringdata0[14];
62 char stringdata1[13];
63 char stringdata2[1];
64 char stringdata3[6];
65 char stringdata4[12];
66 char stringdata5[5];
67 char stringdata6[15];
68 char stringdata7[8];
69 char stringdata8[9];
70 char stringdata9[9];
71 char stringdata10[5];
72 char stringdata11[16];
73 char stringdata12[3];
74 char stringdata13[4];
75 char stringdata14[3];
76 char stringdata15[7];
77};
78#define QT_MOC_LITERAL(ofs, len) \
79 uint(sizeof(qt_meta_stringdata_CLASSMessageDialogENDCLASS_t::offsetsAndSizes) + ofs), len
80Q_CONSTINIT static const qt_meta_stringdata_CLASSMessageDialogENDCLASS_t qt_meta_stringdata_CLASSMessageDialogENDCLASS = {
81 {
82 QT_MOC_LITERAL(0, 13), // "MessageDialog"
83 QT_MOC_LITERAL(14, 12), // "titleChanged"
84 QT_MOC_LITERAL(27, 0), // ""
85 QT_MOC_LITERAL(28, 5), // "title"
86 QT_MOC_LITERAL(34, 11), // "textChanged"
87 QT_MOC_LITERAL(46, 4), // "text"
88 QT_MOC_LITERAL(51, 14), // "buttonsChanged"
89 QT_MOC_LITERAL(66, 7), // "buttons"
90 QT_MOC_LITERAL(74, 8), // "accepted"
91 QT_MOC_LITERAL(83, 8), // "rejected"
92 QT_MOC_LITERAL(92, 4), // "open"
93 QT_MOC_LITERAL(97, 15), // "StandardButtons"
94 QT_MOC_LITERAL(113, 2), // "Ok"
95 QT_MOC_LITERAL(116, 3), // "Yes"
96 QT_MOC_LITERAL(120, 2), // "No"
97 QT_MOC_LITERAL(123, 6) // "Cancel"
98 },
99 "MessageDialog",
100 "titleChanged",
101 "",
102 "title",
103 "textChanged",
104 "text",
105 "buttonsChanged",
106 "buttons",
107 "accepted",
108 "rejected",
109 "open",
110 "StandardButtons",
111 "Ok",
112 "Yes",
113 "No",
114 "Cancel"
115};
116#undef QT_MOC_LITERAL
117#endif // !QT_MOC_HAS_STRING_DATA
118} // unnamed namespace
119
120Q_CONSTINIT static const uint qt_meta_data_CLASSMessageDialogENDCLASS[] = {
121
122 // content:
123 11, // revision
124 0, // classname
125 0, 0, // classinfo
126 6, 14, // methods
127 3, 62, // properties
128 1, 77, // enums/sets
129 0, 0, // constructors
130 0, // flags
131 5, // signalCount
132
133 // signals: name, argc, parameters, tag, flags, initial metatype offsets
134 1, 1, 50, 2, 0x06, 4 /* Public */,
135 4, 1, 53, 2, 0x06, 6 /* Public */,
136 6, 1, 56, 2, 0x06, 8 /* Public */,
137 8, 0, 59, 2, 0x06, 10 /* Public */,
138 9, 0, 60, 2, 0x06, 11 /* Public */,
139
140 // methods: name, argc, parameters, tag, flags, initial metatype offsets
141 10, 0, 61, 2, 0x02, 12 /* Public */,
142
143 // signals: parameters
144 QMetaType::Void, QMetaType::QString, 3,
145 QMetaType::Void, QMetaType::QString, 5,
146 QMetaType::Void, QMetaType::Int, 7,
147 QMetaType::Void,
148 QMetaType::Void,
149
150 // methods: parameters
151 QMetaType::Void,
152
153 // properties: name, type, flags
154 3, QMetaType::QString, 0x00015103, uint(0), 0,
155 5, QMetaType::QString, 0x00015103, uint(1), 0,
156 7, QMetaType::Int, 0x00015103, uint(2), 0,
157
158 // enums: name, alias, flags, count, data
159 11, 11, 0x0, 4, 82,
160
161 // enum data: key, value
162 12, uint(MessageDialog::Ok),
163 13, uint(MessageDialog::Yes),
164 14, uint(MessageDialog::No),
165 15, uint(MessageDialog::Cancel),
166
167 0 // eod
168};
169
170Q_CONSTINIT const QMetaObject MessageDialog::staticMetaObject = { {
171 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
172 qt_meta_stringdata_CLASSMessageDialogENDCLASS.offsetsAndSizes,
173 qt_meta_data_CLASSMessageDialogENDCLASS,
174 qt_static_metacall,
175 nullptr,
176 qt_incomplete_metaTypeArray<qt_meta_stringdata_CLASSMessageDialogENDCLASS_t,
177 // property 'title'
178 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
179 // property 'text'
180 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
181 // property 'buttons'
182 QtPrivate::TypeAndForceComplete<int, std::true_type>,
183 // Q_OBJECT / Q_GADGET
184 QtPrivate::TypeAndForceComplete<MessageDialog, std::true_type>,
185 // method 'titleChanged'
186 QtPrivate::TypeAndForceComplete<void, std::false_type>,
187 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
188 // method 'textChanged'
189 QtPrivate::TypeAndForceComplete<void, std::false_type>,
190 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
191 // method 'buttonsChanged'
192 QtPrivate::TypeAndForceComplete<void, std::false_type>,
193 QtPrivate::TypeAndForceComplete<int, std::false_type>,
194 // method 'accepted'
195 QtPrivate::TypeAndForceComplete<void, std::false_type>,
196 // method 'rejected'
197 QtPrivate::TypeAndForceComplete<void, std::false_type>,
198 // method 'open'
199 QtPrivate::TypeAndForceComplete<void, std::false_type>
200 >,
201 nullptr
202} };
203
204void MessageDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
205{
206 if (_c == QMetaObject::InvokeMetaMethod) {
207 auto *_t = static_cast<MessageDialog *>(_o);
208 (void)_t;
209 switch (_id) {
210 case 0: _t->titleChanged((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
211 case 1: _t->textChanged((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
212 case 2: _t->buttonsChanged((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
213 case 3: _t->accepted(); break;
214 case 4: _t->rejected(); break;
215 case 5: _t->open(); break;
216 default: ;
217 }
218 } else if (_c == QMetaObject::IndexOfMethod) {
219 int *result = reinterpret_cast<int *>(_a[0]);
220 {
221 using _t = void (MessageDialog::*)(const QString & );
222 if (_t _q_method = &MessageDialog::titleChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
223 *result = 0;
224 return;
225 }
226 }
227 {
228 using _t = void (MessageDialog::*)(const QString & );
229 if (_t _q_method = &MessageDialog::textChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
230 *result = 1;
231 return;
232 }
233 }
234 {
235 using _t = void (MessageDialog::*)(int );
236 if (_t _q_method = &MessageDialog::buttonsChanged; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
237 *result = 2;
238 return;
239 }
240 }
241 {
242 using _t = void (MessageDialog::*)();
243 if (_t _q_method = &MessageDialog::accepted; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
244 *result = 3;
245 return;
246 }
247 }
248 {
249 using _t = void (MessageDialog::*)();
250 if (_t _q_method = &MessageDialog::rejected; *reinterpret_cast<_t *>(_a[1]) == _q_method) {
251 *result = 4;
252 return;
253 }
254 }
255 }else if (_c == QMetaObject::ReadProperty) {
256 auto *_t = static_cast<MessageDialog *>(_o);
257 (void)_t;
258 void *_v = _a[0];
259 switch (_id) {
260 case 0: *reinterpret_cast< QString*>(_v) = _t->title(); break;
261 case 1: *reinterpret_cast< QString*>(_v) = _t->text(); break;
262 case 2: *reinterpret_cast< int*>(_v) = _t->buttons(); break;
263 default: break;
264 }
265 } else if (_c == QMetaObject::WriteProperty) {
266 auto *_t = static_cast<MessageDialog *>(_o);
267 (void)_t;
268 void *_v = _a[0];
269 switch (_id) {
270 case 0: _t->setTitle(*reinterpret_cast< QString*>(_v)); break;
271 case 1: _t->setText(*reinterpret_cast< QString*>(_v)); break;
272 case 2: _t->setButtons(*reinterpret_cast< int*>(_v)); break;
273 default: break;
274 }
275 } else if (_c == QMetaObject::ResetProperty) {
276 } else if (_c == QMetaObject::BindableProperty) {
277 }
278}
279
280const QMetaObject *MessageDialog::metaObject() const
281{
282 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
283}
284
285void *MessageDialog::qt_metacast(const char *_clname)
286{
287 if (!_clname) return nullptr;
288 if (!strcmp(_clname, qt_meta_stringdata_CLASSMessageDialogENDCLASS.stringdata0))
289 return static_cast<void*>(this);
290 return QObject::qt_metacast(_clname);
291}
292
293int MessageDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
294{
295 _id = QObject::qt_metacall(_c, _id, _a);
296 if (_id < 0)
297 return _id;
298 if (_c == QMetaObject::InvokeMetaMethod) {
299 if (_id < 6)
300 qt_static_metacall(this, _c, _id, _a);
301 _id -= 6;
302 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
303 if (_id < 6)
304 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
305 _id -= 6;
306 }else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
307 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
308 || _c == QMetaObject::RegisterPropertyMetaType) {
309 qt_static_metacall(this, _c, _id, _a);
310 _id -= 3;
311 }
312 return _id;
313}
314
315// SIGNAL 0
316void MessageDialog::titleChanged(const QString & _t1)
317{
318 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
319 QMetaObject::activate(this, &staticMetaObject, 0, _a);
320}
321
322// SIGNAL 1
323void MessageDialog::textChanged(const QString & _t1)
324{
325 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
326 QMetaObject::activate(this, &staticMetaObject, 1, _a);
327}
328
329// SIGNAL 2
330void MessageDialog::buttonsChanged(int _t1)
331{
332 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
333 QMetaObject::activate(this, &staticMetaObject, 2, _a);
334}
335
336// SIGNAL 3
337void MessageDialog::accepted()
338{
339 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
340}
341
342// SIGNAL 4
343void MessageDialog::rejected()
344{
345 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
346}
347QT_WARNING_POP