1/****************************************************************************
2** Meta object code from reading C++ file 'qdbusservicewatcher.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 "qdbusservicewatcher.h"
11#include <QtCore/qbytearray.h>
12#include <QtCore/qmetatype.h>
13#if !defined(Q_MOC_OUTPUT_REVISION)
14#error "The header file 'qdbusservicewatcher.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_QDBusServiceWatcher_t {
25 const uint offsetsAndSize[32];
26 char stringdata0[242];
27};
28#define QT_MOC_LITERAL(ofs, len) \
29 uint(offsetof(qt_meta_stringdata_QDBusServiceWatcher_t, stringdata0) + ofs), len
30static const qt_meta_stringdata_QDBusServiceWatcher_t qt_meta_stringdata_QDBusServiceWatcher = {
31 {
32QT_MOC_LITERAL(0, 19), // "QDBusServiceWatcher"
33QT_MOC_LITERAL(20, 17), // "serviceRegistered"
34QT_MOC_LITERAL(38, 0), // ""
35QT_MOC_LITERAL(39, 7), // "service"
36QT_MOC_LITERAL(47, 19), // "serviceUnregistered"
37QT_MOC_LITERAL(67, 19), // "serviceOwnerChanged"
38QT_MOC_LITERAL(87, 8), // "oldOwner"
39QT_MOC_LITERAL(96, 8), // "newOwner"
40QT_MOC_LITERAL(105, 22), // "_q_serviceOwnerChanged"
41QT_MOC_LITERAL(128, 15), // "watchedServices"
42QT_MOC_LITERAL(144, 9), // "watchMode"
43QT_MOC_LITERAL(154, 9), // "WatchMode"
44QT_MOC_LITERAL(164, 13), // "WatchModeFlag"
45QT_MOC_LITERAL(178, 20), // "WatchForRegistration"
46QT_MOC_LITERAL(199, 22), // "WatchForUnregistration"
47QT_MOC_LITERAL(222, 19) // "WatchForOwnerChange"
48
49 },
50 "QDBusServiceWatcher\0serviceRegistered\0"
51 "\0service\0serviceUnregistered\0"
52 "serviceOwnerChanged\0oldOwner\0newOwner\0"
53 "_q_serviceOwnerChanged\0watchedServices\0"
54 "watchMode\0WatchMode\0WatchModeFlag\0"
55 "WatchForRegistration\0WatchForUnregistration\0"
56 "WatchForOwnerChange"
57};
58#undef QT_MOC_LITERAL
59
60static const uint qt_meta_data_QDBusServiceWatcher[] = {
61
62 // content:
63 9, // revision
64 0, // classname
65 0, 0, // classinfo
66 4, 14, // methods
67 2, 58, // properties
68 1, 68, // enums/sets
69 0, 0, // constructors
70 0, // flags
71 3, // signalCount
72
73 // signals: name, argc, parameters, tag, flags, initial metatype offsets
74 1, 1, 38, 2, 0x06, 2 /* Public */,
75 4, 1, 41, 2, 0x06, 4 /* Public */,
76 5, 3, 44, 2, 0x06, 6 /* Public */,
77
78 // slots: name, argc, parameters, tag, flags, initial metatype offsets
79 8, 3, 51, 2, 0x08, 10 /* Private */,
80
81 // signals: parameters
82 QMetaType::Void, QMetaType::QString, 3,
83 QMetaType::Void, QMetaType::QString, 3,
84 QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, 3, 6, 7,
85
86 // slots: parameters
87 QMetaType::Void, QMetaType::QString, QMetaType::QString, QMetaType::QString, 2, 2, 2,
88
89 // properties: name, type, flags
90 9, QMetaType::QStringList, 0x00015103, uint(-1), 0,
91 10, 0x80000000 | 11, 0x0001510b, uint(-1), 0,
92
93 // enums: name, alias, flags, count, data
94 11, 12, 0x1, 3, 73,
95
96 // enum data: key, value
97 13, uint(QDBusServiceWatcher::WatchForRegistration),
98 14, uint(QDBusServiceWatcher::WatchForUnregistration),
99 15, uint(QDBusServiceWatcher::WatchForOwnerChange),
100
101 0 // eod
102};
103
104void QDBusServiceWatcher::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
105{
106 if (_c == QMetaObject::InvokeMetaMethod) {
107 Q_ASSERT(staticMetaObject.cast(_o));
108 auto *_t = static_cast<QDBusServiceWatcher *>(_o);
109 Q_UNUSED(_t)
110 switch (_id) {
111 case 0: _t->serviceRegistered((*reinterpret_cast< const QString(*)>(_a[1]))); break;
112 case 1: _t->serviceUnregistered((*reinterpret_cast< const QString(*)>(_a[1]))); break;
113 case 2: _t->serviceOwnerChanged((*reinterpret_cast< const QString(*)>(_a[1])),(*reinterpret_cast< const QString(*)>(_a[2])),(*reinterpret_cast< const QString(*)>(_a[3]))); break;
114 case 3: _t->d_func()->_q_serviceOwnerChanged((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< QString(*)>(_a[2])),(*reinterpret_cast< QString(*)>(_a[3]))); break;
115 default: ;
116 }
117 } else if (_c == QMetaObject::IndexOfMethod) {
118 int *result = reinterpret_cast<int *>(_a[0]);
119 {
120 using _t = void (QDBusServiceWatcher::*)(const QString & );
121 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDBusServiceWatcher::serviceRegistered)) {
122 *result = 0;
123 return;
124 }
125 }
126 {
127 using _t = void (QDBusServiceWatcher::*)(const QString & );
128 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDBusServiceWatcher::serviceUnregistered)) {
129 *result = 1;
130 return;
131 }
132 }
133 {
134 using _t = void (QDBusServiceWatcher::*)(const QString & , const QString & , const QString & );
135 if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QDBusServiceWatcher::serviceOwnerChanged)) {
136 *result = 2;
137 return;
138 }
139 }
140 }
141#ifndef QT_NO_PROPERTIES
142 else if (_c == QMetaObject::ReadProperty) {
143 Q_ASSERT(staticMetaObject.cast(_o));
144 auto *_t = static_cast<QDBusServiceWatcher *>(_o);
145 Q_UNUSED(_t)
146 void *_v = _a[0];
147 switch (_id) {
148 case 0: *reinterpret_cast< QStringList*>(_v) = _t->watchedServices(); break;
149 case 1: *reinterpret_cast<int*>(_v) = QFlag(_t->watchMode()); break;
150 default: break;
151 }
152 } else if (_c == QMetaObject::WriteProperty) {
153 Q_ASSERT(staticMetaObject.cast(_o));
154 auto *_t = static_cast<QDBusServiceWatcher *>(_o);
155 Q_UNUSED(_t)
156 void *_v = _a[0];
157 switch (_id) {
158 case 0: _t->setWatchedServices(*reinterpret_cast< QStringList*>(_v)); break;
159 case 1: _t->setWatchMode(QFlag(*reinterpret_cast<int*>(_v))); break;
160 default: break;
161 }
162 } else if (_c == QMetaObject::ResetProperty) {
163 } else if (_c == QMetaObject::BindableProperty) {
164 }
165#endif // QT_NO_PROPERTIES
166}
167
168const QMetaObject QDBusServiceWatcher::staticMetaObject = { {
169 QMetaObject::SuperData::link<QObject::staticMetaObject>(),
170 qt_meta_stringdata_QDBusServiceWatcher.offsetsAndSize,
171 qt_meta_data_QDBusServiceWatcher,
172 qt_static_metacall,
173 nullptr,
174qt_incomplete_metaTypeArray<qt_meta_stringdata_QDBusServiceWatcher_t
175, QtPrivate::TypeAndForceComplete<QStringList, std::true_type>, QtPrivate::TypeAndForceComplete<WatchMode, std::true_type>, QtPrivate::TypeAndForceComplete<void, 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<void, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>, QtPrivate::TypeAndForceComplete<const QString &, std::false_type>
176, QtPrivate::TypeAndForceComplete<void, std::false_type>, QtPrivate::TypeAndForceComplete<QString, std::false_type>, QtPrivate::TypeAndForceComplete<QString, std::false_type>, QtPrivate::TypeAndForceComplete<QString, std::false_type>
177
178
179>,
180 nullptr
181} };
182
183
184const QMetaObject *QDBusServiceWatcher::metaObject() const
185{
186 return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
187}
188
189void *QDBusServiceWatcher::qt_metacast(const char *_clname)
190{
191 if (!_clname) return nullptr;
192 if (!strcmp(_clname, qt_meta_stringdata_QDBusServiceWatcher.stringdata0))
193 return static_cast<void*>(this);
194 return QObject::qt_metacast(_clname);
195}
196
197int QDBusServiceWatcher::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
198{
199 _id = QObject::qt_metacall(_c, _id, _a);
200 if (_id < 0)
201 return _id;
202 if (_c == QMetaObject::InvokeMetaMethod) {
203 if (_id < 4)
204 qt_static_metacall(this, _c, _id, _a);
205 _id -= 4;
206 } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
207 if (_id < 4)
208 *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
209 _id -= 4;
210 }
211#ifndef QT_NO_PROPERTIES
212 else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
213 || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
214 || _c == QMetaObject::RegisterPropertyMetaType) {
215 qt_static_metacall(this, _c, _id, _a);
216 _id -= 2;
217 }
218#endif // QT_NO_PROPERTIES
219 return _id;
220}
221
222// SIGNAL 0
223void QDBusServiceWatcher::serviceRegistered(const QString & _t1)
224{
225 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
226 QMetaObject::activate(this, &staticMetaObject, 0, _a);
227}
228
229// SIGNAL 1
230void QDBusServiceWatcher::serviceUnregistered(const QString & _t1)
231{
232 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
233 QMetaObject::activate(this, &staticMetaObject, 1, _a);
234}
235
236// SIGNAL 2
237void QDBusServiceWatcher::serviceOwnerChanged(const QString & _t1, const QString & _t2, const QString & _t3)
238{
239 void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t2))), const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t3))) };
240 QMetaObject::activate(this, &staticMetaObject, 2, _a);
241}
242QT_WARNING_POP
243QT_END_MOC_NAMESPACE
244