1/****************************************************************************
2** Meta object code from reading C++ file 'complexpong.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 "complexpong.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'complexpong.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
21QT_BEGIN_MOC_NAMESPACE
22QT_WARNING_PUSH
23QT_WARNING_DISABLE_DEPRECATED
24struct qt_meta_stringdata_Pong_t {
25 const uint offsetsAndSize[20];
26 char stringdata0[110];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_Pong_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_Pong_t qt_meta_stringdata_Pong = {
31 {
32QT_MOC_LITERAL(0, 4), // "Pong"
33QT_MOC_LITERAL(5, 15), // "D-Bus Interface"
34QT_MOC_LITERAL(21, 35), // "org.example.QtDBus.ComplexPon..."
35QT_MOC_LITERAL(57, 11), // "aboutToQuit"
36QT_MOC_LITERAL(69, 0), // ""
37QT_MOC_LITERAL(70, 5), // "query"
38QT_MOC_LITERAL(76, 12), // "QDBusVariant"
39QT_MOC_LITERAL(89, 4), // "quit"
40QT_MOC_LITERAL(94, 9), // "Q_NOREPLY"
41QT_MOC_LITERAL(104, 5) // "value"
42
43 },
44 "Pong\0D-Bus Interface\0"
45 "org.example.QtDBus.ComplexPong.Pong\0"
46 "aboutToQuit\0\0query\0QDBusVariant\0quit\0"
47 "Q_NOREPLY\0value"
48};
49#undef QT_MOC_LITERAL
50
51static const uint qt_meta_data_Pong[] = {
52
53 // content:
54 9, // revision
55 0, // classname
56 1, 14, // classinfo
57 3, 16, // methods
58 1, 39, // properties
59 0, 0, // enums/sets
60 0, 0, // constructors
61 0, // flags
62 1, // signalCount
63
64 // classinfo: key, value
65 1, 2,
66
67 // signals: name, argc, parameters, tag, flags, initial metatype offsets
68 3, 0, 34, 4, 0x06, 1 /* Public */,
69
70 // slots: name, argc, parameters, tag, flags, initial metatype offsets
71 5, 1, 35, 4, 0x0a, 2 /* Public */,
72 7, 0, 38, 8, 0x0a, 4 /* Public */,
73
74 // signals: parameters
75 QMetaType::Void,
76
77 // slots: parameters
78 0x80000000 | 6, QMetaType::QString, 5,
79 QMetaType::Void,
80
81 // properties: name, type, flags
82 9, QMetaType::QString, 0x00015103, uint(-1), 0,
83
84 0 // eod
85};
86
87void Pong::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
88{
89 if (_c == QMetaObject::InvokeMetaMethod) {
90 Q_ASSERT(staticMetaObject.cast(_o));
91 auto *_t = static_cast<Pong *>(_o);
92 Q_UNUSED(_t)
93 switch (_id) {
94 case 0: _t->aboutToQuit(); break;
95 case 1: { QDBusVariant _r = _t->query((*reinterpret_cast< const QString(*)>(_a[1])));
96 if (_a[0]) *reinterpret_cast< QDBusVariant*>(_a[0]) = std::move(_r); } break;
97 case 2: _t->quit(); break;
98 default: ;
99 }
100 } else if (_c == QMetaObject::IndexOfMethod) {
101 int *result = reinterpret_cast<int *>(_a[0]);
102 {
103 using _t = void (Pong::*)();
104 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&Pong::aboutToQuit)) {
105 *result = 0;
106 return;
107 }
108 }
109 }
110#ifndef QT_NO_PROPERTIES
111 else if (_c == QMetaObject::ReadProperty) {
112 Q_ASSERT(staticMetaObject.cast(_o));
113 auto *_t = static_cast<Pong *>(_o);
114 Q_UNUSED(_t)
115 void *_v = _a[0];
116 switch (_id) {
117 case 0: *reinterpret_cast< QString*>(_v) = _t->value(); break;
118 default: break;
119 }
120 } else if (_c == QMetaObject::WriteProperty) {
121 Q_ASSERT(staticMetaObject.cast(_o));
122 auto *_t = static_cast<Pong *>(_o);
123 Q_UNUSED(_t)
124 void *_v = _a[0];
125 switch (_id) {
126 case 0: _t->setValue(*reinterpret_cast< QString*>(_v)); break;
127 default: break;
128 }
129 } else if (_c == QMetaObject::ResetProperty) {
130 } else if (_c == QMetaObject::BindableProperty) {
131 }
132#endif // QT_NO_PROPERTIES
133}
134
135const QMetaObject Pong::staticMetaObject = { {
136 QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
137 qt_meta_stringdata_Pong.offsetsAndSize,
138 qt_meta_data_Pong,
139 qt_static_metacall,
140 nullptr,
141qt_incomplete_metaTypeArray<qt_meta_stringdata_Pong_t
142, QtPrivate::TypeAndForceComplete<QString, std::true_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
143, QtPrivate::TypeAndForceComplete<QDBusVariant, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
144
145
146>,
147 nullptr
148} };
149
150
151const QMetaObject *Pong::metaObject() const
152{
153 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
154}
155
156void *Pong::qt_metacast(const char *_clname)
157{
158 if (!_clname) return nullptr;
159 if (!strcmp(_clname, qt_meta_stringdata_Pong.stringdata0))
160 return static_cast<void*>(this);
161 return QDBusAbstractAdaptor::qt_metacast(_clname);
162}
163
164int Pong::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
165{
166 _id = QDBusAbstractAdaptor::qt_metacall(_c, _id, _a);
167 if (_id < 0)
168 return _id;
169 if (_c == QMetaObject::InvokeMetaMethod) {
170 if (_id < 3)
171 qt_static_metacall(this, _c, _id, _a);
172 _id -= 3;
173 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
174 if (_id < 3)
175 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
176 _id -= 3;
177 }
178#ifndef QT_NO_PROPERTIES
179 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
180 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
181 || _c == QMetaObject::RegisterPropertyMetaType) {
182 qt_static_metacall(this, _c, _id, _a);
183 _id -= 1;
184 }
185#endif // QT_NO_PROPERTIES
186 return _id;
187}
188
189// SIGNAL 0
190void Pong::aboutToQuit()
191{
192 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
193}
194QT_WARNING_POP
195QT_END_MOC_NAMESPACE
196