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