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