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