Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdbusmetaobject.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2016 Intel Corporation.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
7
8#include <QtCore/qbytearray.h>
9#include <QtCore/qhash.h>
10#include <QtCore/qstring.h>
11#include <QtCore/qvarlengtharray.h>
12
13#include "qdbusutil_p.h"
14#include "qdbuserror.h"
15#include "qdbusmetatype.h"
16#include "qdbusargument.h"
19
20#include <private/qmetaobject_p.h>
21#include <private/qmetaobjectbuilder_p.h>
22
23#ifndef QT_NO_DBUS
24
26
27using namespace Qt::StringLiterals;
28
30{
31public:
32 QDBusMetaObjectGenerator(const QString &interface,
33 const QDBusIntrospection::Interface *parsedData);
34 void write(QDBusMetaObject *obj);
35 void writeWithoutXml(QDBusMetaObject *obj);
36
37private:
38 struct Method {
39 QList<QByteArray> parameterNames;
40 QByteArray tag;
41 QByteArray name;
42 QVarLengthArray<int, 4> inputTypes;
43 QVarLengthArray<int, 4> outputTypes;
44 QByteArray rawReturnType;
45 quint32 flags;
46 };
47
48 struct Property {
49 QByteArray typeName;
50 QByteArray signature;
51 int type;
52 quint32 flags;
53 };
54 struct Type {
55 int id;
56 QByteArray name;
57 };
58
60 MethodMap signals_;
61 MethodMap methods;
62 QMap<QByteArray, Property> properties;
63
65 QString interface;
66
67 Type findType(const QByteArray &signature,
68 const QDBusIntrospection::Annotations &annotations,
69 const char *direction = "Out", int id = -1);
70
71 void parseMethods();
72 void parseSignals();
73 void parseProperties();
74
75 static qsizetype aggregateParameterCount(const MethodMap &map);
76};
77
78static const qsizetype intsPerProperty = 2;
79static const qsizetype intsPerMethod = 2;
80
86
88 const QDBusIntrospection::Interface *parsedData)
90{
91 if (data) {
92 parseProperties();
93 parseSignals(); // call parseSignals first so that slots override signals
94 parseMethods();
95 }
96}
97
98static int registerComplexDBusType(const QByteArray &typeName)
99{
100 struct QDBusRawTypeHandler : QtPrivate::QMetaTypeInterface
101 {
102 const QByteArray name;
103 QDBusRawTypeHandler(const QByteArray &name)
104 : QtPrivate::QMetaTypeInterface {
105 0, sizeof(void *), sizeof(void *), QMetaType::RelocatableType, 0, nullptr,
106 name.constData(),
107 nullptr, nullptr, nullptr, nullptr,
108 nullptr, nullptr, nullptr,
109 nullptr, nullptr, nullptr
110 },
111 name(name)
112 {}
113 };
114
115 Q_CONSTINIT static QBasicMutex mutex;
116 Q_CONSTINIT static struct Hash : QHash<QByteArray, QMetaType>
117 {
118 ~Hash()
119 {
120 for (QMetaType entry : std::as_const(*this)) {
121 QMetaType::unregisterMetaType(entry);
122 delete static_cast<const QDBusRawTypeHandler *>(entry.iface());
123 }
124 }
125 } hash;
126 QMutexLocker lock(&mutex);
127 QMetaType &metatype = hash[typeName];
128 if (!metatype.isValid())
129 metatype = QMetaType(new QDBusRawTypeHandler(typeName));
130 return metatype.id();
131}
132
133Q_DBUS_EXPORT bool qt_dbus_metaobject_skip_annotations = false;
134
136QDBusMetaObjectGenerator::findType(const QByteArray &signature,
137 const QDBusIntrospection::Annotations &annotations,
138 const char *direction, int id)
139{
140 Type result;
141 result.id = QMetaType::UnknownType;
142
143 int type = QDBusMetaType::signatureToMetaType(signature).id();
144 if (type == QMetaType::UnknownType && !qt_dbus_metaobject_skip_annotations) {
145 // it's not a type normally handled by our meta type system
146 // it must contain an annotation
147 QString annotationName = QString::fromLatin1("org.qtproject.QtDBus.QtTypeName");
148 if (id >= 0)
149 annotationName += QString::fromLatin1(".%1%2")
150 .arg(QLatin1StringView(direction))
151 .arg(id);
152
153 // extract from annotations:
154 auto annotation = annotations.value(annotationName);
155 QByteArray typeName = annotation.value.toLatin1();
156
157 // verify that it's a valid one
158 if (typeName.isEmpty()) {
159 // try the old annotation from Qt 4
160 annotationName = QString::fromLatin1("com.trolltech.QtDBus.QtTypeName");
161 if (id >= 0)
162 annotationName += QString::fromLatin1(".%1%2")
163 .arg(QLatin1StringView(direction))
164 .arg(id);
165 annotation = annotations.value(annotationName);
166 typeName = annotation.value.toLatin1();
167 }
168
169 if (!typeName.isEmpty()) {
170 // type name found
171 type = QMetaType::fromName(typeName).id();
172 }
173
174 if (type == QMetaType::UnknownType || signature != QDBusMetaType::typeToSignature(QMetaType(type))) {
175 // type is still unknown or doesn't match back to the signature that it
176 // was expected to, so synthesize a fake type
177 typeName = "QDBusRawType<0x" + signature.toHex() + ">*";
178 Q_ASSERT(typeName == QMetaObject::normalizedType(typeName));
179 type = registerComplexDBusType(typeName);
180 }
181
182 result.name = typeName;
183 } else if (type == QMetaType::UnknownType) {
184 // this case is used only by the qdbus command-line tool
185 // invalid, let's create an impossible type that contains the signature
186
187 if (signature == "a{sv}") {
188 result.name = "QVariantMap";
189 type = QMetaType::QVariantMap;
190 } else if (signature == "a{ss}") {
191 result.name = "QMap<QString,QString>";
192 type = qMetaTypeId<QMap<QString, QString> >();
193 } else if (signature == "aay") {
194 result.name = "QByteArrayList";
195 type = qMetaTypeId<QByteArrayList>();
196 } else {
197 result.name = "{D-Bus type \"" + signature + "\"}";
198 result.name = QMetaObject::normalizedType(result.name);
199 type = registerComplexDBusType(result.name);
200 }
201 } else {
202 result.name = QMetaType(type).name();
203 }
204
205 result.id = type;
206 return result; // success
207}
208
209void QDBusMetaObjectGenerator::parseMethods()
210{
211 //
212 // TODO:
213 // Add cloned methods when the remote object has return types
214 //
215
216 for (const QDBusIntrospection::Method &m : std::as_const(data->methods)) {
217 Method mm;
218
219 mm.name = m.name.toLatin1();
220 QByteArray prototype = mm.name;
221 prototype += '(';
222
223 bool ok = true;
224
225 // build the input argument list
226 for (qsizetype i = 0; i < m.inputArgs.size(); ++i) {
227 const QDBusIntrospection::Argument &arg = m.inputArgs.at(i);
228
229 Type type = findType(arg.type.toLatin1(), m.annotations, "In", i);
230 if (type.id == QMetaType::UnknownType) {
231 ok = false;
232 break;
233 }
234
235 mm.inputTypes.append(type.id);
236
237 mm.parameterNames.append(arg.name.toLatin1());
238
239 prototype.append(type.name);
240 prototype.append(',');
241 }
242 if (!ok) continue;
243
244 // build the output argument list:
245 for (qsizetype i = 0; i < m.outputArgs.size(); ++i) {
246 const QDBusIntrospection::Argument &arg = m.outputArgs.at(i);
247
248 Type type = findType(arg.type.toLatin1(), m.annotations, "Out", i);
249 if (type.id == QMetaType::UnknownType) {
250 ok = false;
251 break;
252 }
253
254 mm.outputTypes.append(type.id);
255
256 if (i == 0 && type.id == -1) {
257 mm.rawReturnType = type.name;
258 }
259 if (i != 0) {
260 // non-const ref parameter
261 mm.parameterNames.append(arg.name.toLatin1());
262
263 prototype.append(type.name);
264 prototype.append("&,");
265 }
266 }
267 if (!ok) continue;
268
269 // convert the last commas:
270 if (!mm.parameterNames.isEmpty())
271 prototype[prototype.size() - 1] = ')';
272 else
273 prototype.append(')');
274
275 // check the async tag
276 if (m.annotations.value(ANNOTATION_NO_WAIT ""_L1).value == "true"_L1)
277 mm.tag = "Q_NOREPLY";
278
279 // meta method flags
280 mm.flags = AccessPublic | MethodSlot | MethodScriptable;
281
282 // add
283 methods.insert(QMetaObject::normalizedSignature(prototype), mm);
284 }
285}
286
287void QDBusMetaObjectGenerator::parseSignals()
288{
289 for (const QDBusIntrospection::Signal &s : std::as_const(data->signals_)) {
290 Method mm;
291
292 mm.name = s.name.toLatin1();
293 QByteArray prototype = mm.name;
294 prototype += '(';
295
296 bool ok = true;
297
298 // build the output argument list
299 for (qsizetype i = 0; i < s.outputArgs.size(); ++i) {
300 const QDBusIntrospection::Argument &arg = s.outputArgs.at(i);
301
302 Type type = findType(arg.type.toLatin1(), s.annotations, "Out", i);
303 if (type.id == QMetaType::UnknownType) {
304 ok = false;
305 break;
306 }
307
308 mm.inputTypes.append(type.id);
309
310 mm.parameterNames.append(arg.name.toLatin1());
311
312 prototype.append(type.name);
313 prototype.append(',');
314 }
315 if (!ok) continue;
316
317 // convert the last commas:
318 if (!mm.parameterNames.isEmpty())
319 prototype[prototype.size() - 1] = ')';
320 else
321 prototype.append(')');
322
323 // meta method flags
324 mm.flags = AccessPublic | MethodSignal | MethodScriptable;
325
326 // add
327 signals_.insert(QMetaObject::normalizedSignature(prototype), mm);
328 }
329}
330
331void QDBusMetaObjectGenerator::parseProperties()
332{
333 for (const QDBusIntrospection::Property &p : std::as_const(data->properties)) {
334 Property mp;
335 Type type = findType(p.type.toLatin1(), p.annotations);
336 if (type.id == QMetaType::UnknownType)
337 continue;
338
339 QByteArray name = p.name.toLatin1();
340 mp.signature = p.type.toLatin1();
341 mp.type = type.id;
342 mp.typeName = type.name;
343
344 // build the flags:
345 mp.flags = StdCppSet | Scriptable | Stored | Designable;
346 if (p.access != QDBusIntrospection::Property::Write)
347 mp.flags |= Readable;
348 if (p.access != QDBusIntrospection::Property::Read)
349 mp.flags |= Writable;
350
351 // add the property:
352 properties.insert(name, mp);
353 }
354}
355
356// Returns the sum of all parameters (including return type) for the given
357// \a map of methods. This is needed for calculating the size of the methods'
358// parameter type/name meta-data.
359qsizetype QDBusMetaObjectGenerator::aggregateParameterCount(const MethodMap &map)
360{
361 qsizetype sum = 0;
362 for (const Method &m : map)
363 sum += m.inputTypes.size() + qMax(qsizetype(1), m.outputTypes.size());
364 return sum;
365}
366
367void QDBusMetaObjectGenerator::write(QDBusMetaObject *obj)
368{
369 // this code here is mostly copied from qaxbase.cpp
370 // with a few modifications to make it cleaner
371
372 QString className = interface;
373 className.replace(u'.', "::"_L1);
374 if (className.isEmpty())
375 className = "QDBusInterface"_L1;
376
377 QVarLengthArray<uint> idata;
378 idata.resize(sizeof(QDBusMetaObjectPrivate) / sizeof(uint));
379
380 qsizetype methodParametersDataSize =
381 ((aggregateParameterCount(signals_)
382 + aggregateParameterCount(methods)) * 2) // types and parameter names
383 - signals_.size() // return "parameters" don't have names
384 - methods.size(); // ditto
385
386 QDBusMetaObjectPrivate *header = reinterpret_cast<QDBusMetaObjectPrivate *>(idata.data());
387 static_assert(QMetaObjectPrivate::OutputRevision == 13, "QtDBus meta-object generator should generate the same version as moc");
388 header->revision = QMetaObjectPrivate::OutputRevision;
389 header->className = 0;
390 header->classInfoCount = 0;
391 header->classInfoData = 0;
392 header->methodCount = int(signals_.size() + methods.size());
393 header->methodData = int(idata.size());
394 header->propertyCount = int(properties.size());
395 header->propertyData = int(header->methodData + header->methodCount *
396 QMetaObjectPrivate::IntsPerMethod + methodParametersDataSize);
397 header->enumeratorCount = 0;
398 header->enumeratorData = 0;
399 header->constructorCount = 0;
400 header->constructorData = 0;
401 header->flags = RequiresVariantMetaObject | AllocatedMetaObject;
402 header->signalCount = signals_.size();
403 // These are specific to QDBusMetaObject:
404 header->propertyDBusData = int(header->propertyData + header->propertyCount
405 * QMetaObjectPrivate::IntsPerProperty);
406 header->methodDBusData = int(header->propertyDBusData + header->propertyCount * intsPerProperty);
407
408 qsizetype data_size = idata.size() +
409 (header->methodCount * (QMetaObjectPrivate::IntsPerMethod+intsPerMethod)) + methodParametersDataSize +
410 (header->propertyCount * (QMetaObjectPrivate::IntsPerProperty+intsPerProperty));
411
412 // Signals must be added before other methods, to match moc.
413 std::array<std::reference_wrapper<const MethodMap>, 2> methodMaps = { signals_, methods };
414
415 for (const auto &methodMap : methodMaps) {
416 for (const Method &mm : methodMap.get())
417 data_size += 2 + mm.inputTypes.size() + mm.outputTypes.size();
418 }
419 idata.resize(data_size + 1);
420
421 QMetaStringTable strings(className.toLatin1());
422
423 qsizetype offset = header->methodData;
424 qsizetype parametersOffset = offset + header->methodCount * QMetaObjectPrivate::IntsPerMethod;
425 qsizetype signatureOffset = header->methodDBusData;
426 qsizetype typeidOffset = header->methodDBusData + header->methodCount * intsPerMethod;
427 idata[typeidOffset++] = 0; // eod
428
429 qsizetype totalMetaTypeCount = properties.size();
430 ++totalMetaTypeCount; // + 1 for metatype of dynamic metaobject
431 for (const auto &methodMap : methodMaps) {
432 for (const Method &mm : methodMap.get()) {
433 qsizetype argc = mm.inputTypes.size() + qMax(qsizetype(0), mm.outputTypes.size() - 1);
434 totalMetaTypeCount += argc + 1;
435 }
436 }
437 QMetaType *metaTypes = new QMetaType[totalMetaTypeCount];
438 int propertyId = 0;
439
440 // add each method:
441 qsizetype currentMethodMetaTypeOffset = properties.size() + 1;
442
443 for (const auto &methodMap : methodMaps) {
444 for (const Method &mm : methodMap.get()) {
445 qsizetype argc = mm.inputTypes.size() + qMax(qsizetype(0), mm.outputTypes.size() - 1);
446
447 idata[offset++] = strings.enter(mm.name);
448 idata[offset++] = argc;
449 idata[offset++] = parametersOffset;
450 idata[offset++] = strings.enter(mm.tag);
451 idata[offset++] = mm.flags;
452 idata[offset++] = currentMethodMetaTypeOffset;
453
454 // Parameter types
455 for (qsizetype i = -1; i < argc; ++i) {
456 int type;
457 QByteArray typeName;
458 if (i < 0) { // Return type
459 if (!mm.outputTypes.isEmpty()) {
460 type = mm.outputTypes.first();
461 if (type == -1) {
462 type = IsUnresolvedType | strings.enter(mm.rawReturnType);
463 }
464 } else {
465 type = QMetaType::Void;
466 }
467 } else if (i < mm.inputTypes.size()) {
468 type = mm.inputTypes.at(i);
469 } else {
470 Q_ASSERT(mm.outputTypes.size() > 1);
471 type = mm.outputTypes.at(i - mm.inputTypes.size() + 1);
472 // Output parameters are references; type id not available
473 typeName = QMetaType(type).name();
474 typeName.append('&');
475 type = QMetaType::UnknownType;
476 }
477 int typeInfo;
478 if (!typeName.isEmpty())
479 typeInfo = IsUnresolvedType | strings.enter(typeName);
480 else
481 typeInfo = type;
482 metaTypes[currentMethodMetaTypeOffset++] = QMetaType(type);
483 idata[parametersOffset++] = typeInfo;
484 }
485 // Parameter names
486 for (qsizetype i = 0; i < argc; ++i)
487 idata[parametersOffset++] = strings.enter(mm.parameterNames.at(i));
488
489 idata[signatureOffset++] = typeidOffset;
490 idata[typeidOffset++] = mm.inputTypes.size();
491 memcpy(idata.data() + typeidOffset, mm.inputTypes.data(), mm.inputTypes.size() * sizeof(uint));
492 typeidOffset += mm.inputTypes.size();
493
494 idata[signatureOffset++] = typeidOffset;
495 idata[typeidOffset++] = mm.outputTypes.size();
496 memcpy(idata.data() + typeidOffset, mm.outputTypes.data(), mm.outputTypes.size() * sizeof(uint));
497 typeidOffset += mm.outputTypes.size();
498 }
499 }
500
501 Q_ASSERT(offset == header->methodData + header->methodCount * QMetaObjectPrivate::IntsPerMethod);
502 Q_ASSERT(parametersOffset == header->propertyData);
503 Q_ASSERT(signatureOffset == header->methodDBusData + header->methodCount * intsPerMethod);
504 Q_ASSERT(typeidOffset == idata.size());
505 offset += methodParametersDataSize;
506 Q_ASSERT(offset == header->propertyData);
507
508 // add each property
509 signatureOffset = header->propertyDBusData;
510 for (const auto &[name, mp] : std::as_const(properties).asKeyValueRange()) {
511 // form is name, typeinfo, flags
512 idata[offset++] = strings.enter(name);
513 Q_ASSERT(mp.type != QMetaType::UnknownType);
514 idata[offset++] = mp.type;
515 idata[offset++] = mp.flags;
516 idata[offset++] = -1; // notify index
517 idata[offset++] = 0; // revision
518
519 idata[signatureOffset++] = strings.enter(mp.signature);
520 idata[signatureOffset++] = mp.type;
521
522 metaTypes[propertyId++] = QMetaType(mp.type);
523 }
524 metaTypes[propertyId] = QMetaType(); // we can't know our own metatype
525
526 Q_ASSERT(offset == header->propertyDBusData);
527 Q_ASSERT(signatureOffset == header->methodDBusData);
528
529 char *string_data = new char[strings.blobSize()];
530 strings.writeBlob(string_data);
531
532 uint *uint_data = new uint[idata.size()];
533 memcpy(uint_data, idata.data(), idata.size() * sizeof(uint));
534
535 // put the metaobject together
536 obj->d.data = uint_data;
537 obj->d.relatedMetaObjects = nullptr;
538 obj->d.static_metacall = nullptr;
539 obj->d.extradata = nullptr;
540 obj->d.stringdata = reinterpret_cast<const uint *>(string_data);
541 obj->d.superdata = &QDBusAbstractInterface::staticMetaObject;
542 obj->d.metaTypes = reinterpret_cast<QtPrivate::QMetaTypeInterface *const *>(metaTypes);
543}
544
545#if 0
546void QDBusMetaObjectGenerator::writeWithoutXml(const QString &interface)
547{
548 // no XML definition
549 QString tmp(interface);
550 tmp.replace(u'.', "::"_L1);
551 QByteArray name(tmp.toLatin1());
552
553 QDBusMetaObjectPrivate *header = new QDBusMetaObjectPrivate;
554 memset(header, 0, sizeof *header);
555 header->revision = 1;
556 // leave the rest with 0
557
558 char *stringdata = new char[name.length() + 1];
559 stringdata[name.length()] = '\0';
560
561 d.data = reinterpret_cast<uint*>(header);
562 d.relatedMetaObjects = 0;
563 d.static_metacall = 0;
564 d.extradata = 0;
565 d.stringdata = stringdata;
566 d.superdata = &QDBusAbstractInterface::staticMetaObject;
567 cached = false;
568}
569#endif
570
571/////////
572// class QDBusMetaObject
573
574QDBusMetaObject *QDBusMetaObject::createMetaObject(const QString &interface, const QString &xml,
575 QHash<QString, QDBusMetaObject *> &cache,
576 QDBusError &error)
577{
578 error = QDBusError();
579 QDBusIntrospection::Interfaces parsed = QDBusIntrospection::parseInterfaces(xml);
580
581 QDBusMetaObject *we = nullptr;
582 QDBusIntrospection::Interfaces::ConstIterator it = parsed.constBegin();
583 QDBusIntrospection::Interfaces::ConstIterator end = parsed.constEnd();
584 for ( ; it != end; ++it) {
585 // check if it's in the cache
586 bool us = it.key() == interface;
587
588 QDBusMetaObject *obj = cache.value(it.key(), 0);
589 if (!obj && (us || !interface.startsWith("local."_L1 ))) {
590 // not in cache; create
591 obj = new QDBusMetaObject;
592 QDBusMetaObjectGenerator generator(it.key(), it.value().constData());
593 generator.write(obj);
594
595 if ((obj->cached = !it.key().startsWith("local."_L1)))
596 // cache it
597 cache.insert(it.key(), obj);
598 else if (!us)
599 delete obj;
600
601 }
602
603 if (us)
604 // it's us
605 we = obj;
606 }
607
608 if (we)
609 return we;
610 // still nothing?
611
612 if (parsed.isEmpty()) {
613 // object didn't return introspection
614 we = new QDBusMetaObject;
615 QDBusMetaObjectGenerator generator(interface, nullptr);
616 generator.write(we);
617 we->cached = false;
618 return we;
619 } else if (interface.isEmpty()) {
620 // merge all interfaces
621 it = parsed.constBegin();
622 QDBusIntrospection::Interface merged = *it.value().constData();
623
624 for (++it; it != end; ++it) {
625 merged.annotations.insert(it.value()->annotations);
626 merged.methods.unite(it.value()->methods);
627 merged.signals_.unite(it.value()->signals_);
628 merged.properties.insert(it.value()->properties);
629 }
630
631 merged.name = "local.Merged"_L1;
632 merged.introspection.clear();
633
634 we = new QDBusMetaObject;
635 QDBusMetaObjectGenerator generator(merged.name, &merged);
636 generator.write(we);
637 we->cached = false;
638 return we;
639 }
640
641 // mark as an error
642 error = QDBusError(QDBusError::UnknownInterface,
643 "Interface '%1' was not found"_L1.arg(interface));
644 return nullptr;
645}
646
647QDBusMetaObject::QDBusMetaObject()
648{
649}
650
651static inline const QDBusMetaObjectPrivate *priv(const uint* data)
652{
653 return reinterpret_cast<const QDBusMetaObjectPrivate *>(data);
654}
655
656const int *QDBusMetaObject::inputTypesForMethod(int id) const
657{
658 //id -= methodOffset();
659 if (id >= 0 && id < priv(d.data)->methodCount) {
660 int handle = priv(d.data)->methodDBusData + id*intsPerMethod;
661 return reinterpret_cast<const int*>(d.data + d.data[handle]);
662 }
663 return nullptr;
664}
665
666const int *QDBusMetaObject::outputTypesForMethod(int id) const
667{
668 //id -= methodOffset();
669 if (id >= 0 && id < priv(d.data)->methodCount) {
670 int handle = priv(d.data)->methodDBusData + id*intsPerMethod;
671 return reinterpret_cast<const int*>(d.data + d.data[handle + 1]);
672 }
673 return nullptr;
674}
675
676int QDBusMetaObject::propertyMetaType(int id) const
677{
678 //id -= propertyOffset();
679 if (id >= 0 && id < priv(d.data)->propertyCount) {
680 int handle = priv(d.data)->propertyDBusData + id*intsPerProperty;
681 return d.data[handle + 1];
682 }
683 return 0;
684}
685
686QT_END_NAMESPACE
687
688#endif // QT_NO_DBUS
void writeWithoutXml(QDBusMetaObject *obj)
QDBusMetaObjectGenerator(const QString &interface, const QDBusIntrospection::Interface *parsedData)
void write(QDBusMetaObject *obj)
Combined button and popup list for selecting options.
#define ANNOTATION_NO_WAIT
Q_DBUS_EXPORT bool qt_dbus_metaobject_skip_annotations
static const qsizetype intsPerMethod
static int registerComplexDBusType(const QByteArray &typeName)
static const qsizetype intsPerProperty