1/****************************************************************************
2** Meta object code from reading C++ file 'car_adaptor.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 "car_adaptor.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'car_adaptor.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_CarInterfaceAdaptor_t {
25 const uint offsetsAndSize[22];
26 char stringdata0[384];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_CarInterfaceAdaptor_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_CarInterfaceAdaptor_t qt_meta_stringdata_CarInterfaceAdaptor = {
31 {
32QT_MOC_LITERAL(0, 19), // "CarInterfaceAdaptor"
33QT_MOC_LITERAL(20, 15), // "D-Bus Interface"
34QT_MOC_LITERAL(36, 33), // "org.example.Examples.CarInter..."
35QT_MOC_LITERAL(70, 19), // "D-Bus Introspection"
36QT_MOC_LITERAL(90, 243), // " <interface name=\"org.examp..."
37QT_MOC_LITERAL(315, 7), // "crashed"
38QT_MOC_LITERAL(323, 0), // ""
39QT_MOC_LITERAL(324, 10), // "accelerate"
40QT_MOC_LITERAL(335, 10), // "decelerate"
41QT_MOC_LITERAL(346, 8), // "turnLeft"
42QT_MOC_LITERAL(355, 9) // "turnRight"
43
44 },
45 "CarInterfaceAdaptor\0D-Bus Interface\0"
46 "org.example.Examples.CarInterface\0"
47 "D-Bus Introspection\0"
48 " <interface name=\"org.example.Examples.CarInterface\">\n <method "
49 "name=\"accelerate\"/>\n <method name=\"decelerate\"/>\n <method "
50 "name=\"turnLeft\"/>\n <method name=\"turnRight\"/>\n <signal nam"
51 "e=\"crashed\"/>\n </interface>\n\0"
52 "crashed\0\0accelerate\0decelerate\0turnLeft\0"
53 "turnRight"
54};
55#undef QT_MOC_LITERAL
56
57static const uint qt_meta_data_CarInterfaceAdaptor[] = {
58
59 // content:
60 9, // revision
61 0, // classname
62 2, 14, // classinfo
63 5, 18, // methods
64 0, 0, // properties
65 0, 0, // enums/sets
66 0, 0, // constructors
67 0, // flags
68 1, // signalCount
69
70 // classinfo: key, value
71 1, 2,
72 3, 4,
73
74 // signals: name, argc, parameters, tag, flags, initial metatype offsets
75 5, 0, 48, 6, 0x06, 0 /* Public */,
76
77 // slots: name, argc, parameters, tag, flags, initial metatype offsets
78 7, 0, 49, 6, 0x0a, 1 /* Public */,
79 8, 0, 50, 6, 0x0a, 2 /* Public */,
80 9, 0, 51, 6, 0x0a, 3 /* Public */,
81 10, 0, 52, 6, 0x0a, 4 /* Public */,
82
83 // signals: parameters
84 QMetaType::Void,
85
86 // slots: parameters
87 QMetaType::Void,
88 QMetaType::Void,
89 QMetaType::Void,
90 QMetaType::Void,
91
92 0 // eod
93};
94
95void CarInterfaceAdaptor::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
96{
97 if (_c == QMetaObject::InvokeMetaMethod) {
98 Q_ASSERT(staticMetaObject.cast(_o));
99 auto *_t = static_cast<CarInterfaceAdaptor *>(_o);
100 Q_UNUSED(_t)
101 switch (_id) {
102 case 0: _t->crashed(); break;
103 case 1: _t->accelerate(); break;
104 case 2: _t->decelerate(); break;
105 case 3: _t->turnLeft(); break;
106 case 4: _t->turnRight(); break;
107 default: ;
108 }
109 } else if (_c == QMetaObject::IndexOfMethod) {
110 int *result = reinterpret_cast<int *>(_a[0]);
111 {
112 using _t = void (CarInterfaceAdaptor::*)();
113 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&CarInterfaceAdaptor::crashed)) {
114 *result = 0;
115 return;
116 }
117 }
118 }
119 Q_UNUSED(_a);
120}
121
122const QMetaObject CarInterfaceAdaptor::staticMetaObject = { {
123 QMetaObject::SuperData::link<QDBusAbstractAdaptor::staticMetaObject>(),
124 qt_meta_stringdata_CarInterfaceAdaptor.offsetsAndSize,
125 qt_meta_data_CarInterfaceAdaptor,
126 qt_static_metacall,
127 nullptr,
128qt_incomplete_metaTypeArray<qt_meta_stringdata_CarInterfaceAdaptor_t
129, QtPrivate::TypeAndForceComplete<void, std::false_type>
130, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<void, std::false_type>
131
132
133>,
134 nullptr
135} };
136
137
138const QMetaObject *CarInterfaceAdaptor::metaObject() const
139{
140 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
141}
142
143void *CarInterfaceAdaptor::qt_metacast(const char *_clname)
144{
145 if (!_clname) return nullptr;
146 if (!strcmp(_clname, qt_meta_stringdata_CarInterfaceAdaptor.stringdata0))
147 return static_cast<void*>(this);
148 return QDBusAbstractAdaptor::qt_metacast(_clname);
149}
150
151int CarInterfaceAdaptor::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
152{
153 _id = QDBusAbstractAdaptor::qt_metacall(_c, _id, _a);
154 if (_id < 0)
155 return _id;
156 if (_c == QMetaObject::InvokeMetaMethod) {
157 if (_id < 5)
158 qt_static_metacall(this, _c, _id, _a);
159 _id -= 5;
160 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
161 if (_id < 5)
162 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
163 _id -= 5;
164 }
165 return _id;
166}
167
168// SIGNAL 0
169void CarInterfaceAdaptor::crashed()
170{
171 QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
172}
173QT_WARNING_POP
174QT_END_MOC_NAMESPACE
175