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.8.1)
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#include <QtCore/qtmochelpers.h>
13
14#include <memory>
15
16
17#include <QtCore/qxptype_traits.h>
18#if !defined(Q_MOC_OUTPUT_REVISION)
19#error "The header file 'messagedialog.h' doesn't include <QObject>."
20#elif Q_MOC_OUTPUT_REVISION != 68
21#error "This file was generated using the moc from 6.8.1. It"
22#error "cannot be used with the include files from this version of Qt."
23#error "(The moc has changed too much.)"
24#endif
25
26#ifndef Q_CONSTINIT
27#define Q_CONSTINIT
28#endif
29
30QT_WARNING_PUSH
31QT_WARNING_DISABLE_DEPRECATED
32QT_WARNING_DISABLE_GCC("-Wuseless-cast")
33namespace {
34struct qt_meta_tag_ZN13MessageDialogE_t {};
35} // unnamed namespace
36
37
38#ifdef QT_MOC_HAS_STRINGDATA
39static constexpr auto qt_meta_stringdata_ZN13MessageDialogE = QtMocHelpers::stringData(
40 "MessageDialog",
41 "titleChanged",
42 "",
43 "title",
44 "textChanged",
45 "text",
46 "buttonsChanged",
47 "buttons",
48 "accepted",
49 "rejected",
50 "open",
51 "StandardButtons",
52 "Ok",
53 "Yes",
54 "No",
55 "Cancel"
56);
57#else // !QT_MOC_HAS_STRINGDATA
58#error "qtmochelpers.h not found or too old."
59#endif // !QT_MOC_HAS_STRINGDATA
60
61Q_CONSTINIT static const uint qt_meta_data_ZN13MessageDialogE[] = {
62
63 // content:
64 12, // revision
65 0, // classname
66 0, 0, // classinfo
67 6, 14, // methods
68 3, 62, // properties
69 1, 77, // enums/sets
70 0, 0, // constructors
71 0, // flags
72 5, // signalCount
73
74 // signals: name, argc, parameters, tag, flags, initial metatype offsets
75 1, 1, 50, 2, 0x06, 5 /* Public */,
76 4, 1, 53, 2, 0x06, 7 /* Public */,
77 6, 1, 56, 2, 0x06, 9 /* Public */,
78 8, 0, 59, 2, 0x06, 11 /* Public */,
79 9, 0, 60, 2, 0x06, 12 /* Public */,
80
81 // methods: name, argc, parameters, tag, flags, initial metatype offsets
82 10, 0, 61, 2, 0x02, 13 /* Public */,
83
84 // signals: parameters
85 QMetaType::Void, QMetaType::QString, 3,
86 QMetaType::Void, QMetaType::QString, 5,
87 QMetaType::Void, QMetaType::Int, 7,
88 QMetaType::Void,
89 QMetaType::Void,
90
91 // methods: parameters
92 QMetaType::Void,
93
94 // properties: name, type, flags, notifyId, revision
95 3, QMetaType::QString, 0x00015103, uint(0), 0,
96 5, QMetaType::QString, 0x00015103, uint(1), 0,
97 7, QMetaType::Int, 0x00015103, uint(2), 0,
98
99 // enums: name, alias, flags, count, data
100 11, 11, 0x0, 4, 82,
101
102 // enum data: key, value
103 12, uint(MessageDialog::Ok),
104 13, uint(MessageDialog::Yes),
105 14, uint(MessageDialog::No),
106 15, uint(MessageDialog::Cancel),
107
108 0 // eod
109};
110
111Q_CONSTINIT const QMetaObject MessageDialog::staticMetaObject = { {
112 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
113 qt_meta_stringdata_ZN13MessageDialogE.offsetsAndSizes,
114 qt_meta_data_ZN13MessageDialogE,
115 qt_static_metacall,
116 nullptr,
117 qt_incomplete_metaTypeArray<qt_meta_tag_ZN13MessageDialogE_t,
118 // property 'title'
119 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
120 // property 'text'
121 QtPrivate::TypeAndForceComplete<QString, std::true_type>,
122 // property 'buttons'
123 QtPrivate::TypeAndForceComplete<int, std::true_type>,
124 // enum 'StandardButtons'
125 QtPrivate::TypeAndForceComplete<MessageDialog::StandardButtons, std::true_type>,
126 // Q_OBJECT / Q_GADGET
127 QtPrivate::TypeAndForceComplete<MessageDialog, std::true_type>,
128 // method 'titleChanged'
129 QtPrivate::TypeAndForceComplete<void, std::false_type>,
130 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
131 // method 'textChanged'
132 QtPrivate::TypeAndForceComplete<void, std::false_type>,
133 QtPrivate::TypeAndForceComplete<const QString &, std::false_type>,
134 // method 'buttonsChanged'
135 QtPrivate::TypeAndForceComplete<void, std::false_type>,
136 QtPrivate::TypeAndForceComplete<int, std::false_type>,
137 // method 'accepted'
138 QtPrivate::TypeAndForceComplete<void, std::false_type>,
139 // method 'rejected'
140 QtPrivate::TypeAndForceComplete<void, std::false_type>,
141 // method 'open'
142 QtPrivate::TypeAndForceComplete<void, std::false_type>
143 >,
144 nullptr
145} };
146
147void MessageDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
148{
149 auto *_t = static_cast<MessageDialog *>(_o);
150 if (_c == QMetaObject::InvokeMetaMethod) {
151 switch (_id) {
152 case 0: _t->titleChanged((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
153 case 1: _t->textChanged((*reinterpret_cast< std::add_pointer_t<QString>>(_a[1]))); break;
154 case 2: _t->buttonsChanged((*reinterpret_cast< std::add_pointer_t<int>>(_a[1]))); break;
155 case 3: _t->accepted(); break;
156 case 4: _t->rejected(); break;
157 case 5: _t->open(); break;
158 default: ;
159 }
160 }
161 if (_c == QMetaObject::IndexOfMethod) {
162 int *result = reinterpret_cast<int *>(_a[0]);
163 {
164 using _q_method_type = void (MessageDialog::*)(const QString & );
165 if (_q_method_type _q_method = &MessageDialog::titleChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
166 *result = 0;
167 return;
168 }
169 }
170 {
171 using _q_method_type = void (MessageDialog::*)(const QString & );
172 if (_q_method_type _q_method = &MessageDialog::textChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
173 *result = 1;
174 return;
175 }
176 }
177 {
178 using _q_method_type = void (MessageDialog::*)(int );
179 if (_q_method_type _q_method = &MessageDialog::buttonsChanged; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
180 *result = 2;
181 return;
182 }
183 }
184 {
185 using _q_method_type = void (MessageDialog::*)();
186 if (_q_method_type _q_method = &MessageDialog::accepted; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
187 *result = 3;
188 return;
189 }
190 }
191 {
192 using _q_method_type = void (MessageDialog::*)();
193 if (_q_method_type _q_method = &MessageDialog::rejected; *reinterpret_cast<_q_method_type *>(_a[1]) == _q_method) {
194 *result = 4;
195 return;
196 }
197 }
198 }
199 if (_c == QMetaObject::ReadProperty) {
200 void *_v = _a[0];
201 switch (_id) {
202 case 0: *reinterpret_cast< QString*>(_v) = _t->title(); break;
203 case 1: *reinterpret_cast< QString*>(_v) = _t->text(); break;
204 case 2: *reinterpret_cast< int*>(_v) = _t->buttons(); break;
205 default: break;
206 }
207 }
208 if (_c == QMetaObject::WriteProperty) {
209 void *_v = _a[0];
210 switch (_id) {
211 case 0: _t->setTitle(*reinterpret_cast< QString*>(_v)); break;
212 case 1: _t->setText(*reinterpret_cast< QString*>(_v)); break;
213 case 2: _t->setButtons(*reinterpret_cast< int*>(_v)); break;
214 default: break;
215 }
216 }
217}
218
219const QMetaObject *MessageDialog::metaObject() const
220{
221 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
222}
223
224void *MessageDialog::qt_metacast(const char *_clname)
225{
226 if (!_clname) return nullptr;
227 if (!strcmp(_clname, qt_meta_stringdata_ZN13MessageDialogE.stringdata0))
228 return static_cast<void*>(this);
229 return QObject::qt_metacast(_clname);
230}
231
232int MessageDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
233{
234 _id = QObject::qt_metacall(_c, _id, _a);
235 if (_id < 0)
236 return _id;
237 if (_c == QMetaObject::InvokeMetaMethod) {
238 if (_id < 6)
239 qt_static_metacall(this, _c, _id, _a);
240 _id -= 6;
241 }
242 if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
243 if (_id < 6)
244 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
245 _id -= 6;
246 }
247 if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
248 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
249 || _c == QMetaObject::RegisterPropertyMetaType) {
250 qt_static_metacall(this, _c, _id, _a);
251 _id -= 3;
252 }
253 return _id;
254}
255
256// SIGNAL 0
257void MessageDialog::titleChanged(const QString & _t1)
258{
259 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
260 QMetaObject::activate(this, &staticMetaObject, 0, _a);
261}
262
263// SIGNAL 1
264void MessageDialog::textChanged(const QString & _t1)
265{
266 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
267 QMetaObject::activate(this, &staticMetaObject, 1, _a);
268}
269
270// SIGNAL 2
271void MessageDialog::buttonsChanged(int _t1)
272{
273 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
274 QMetaObject::activate(this, &staticMetaObject, 2, _a);
275}
276
277// SIGNAL 3
278void MessageDialog::accepted()
279{
280 QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
281}
282
283// SIGNAL 4
284void MessageDialog::rejected()
285{
286 QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
287}
288QT_WARNING_POP