Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qdbusxmlgenerator.cpp File Reference
#include <QtCore/qmetaobject.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qdebug.h>
#include "qdbusinterface_p.h"
#include "qdbusabstractadaptor_p.h"
#include "qdbusconnection_p.h"
#include "qdbusmetatype_p.h"
#include "qdbusmetatype.h"
#include "qdbusutil_p.h"
+ Include dependency graph for qdbusxmlgenerator.cpp:

Go to the source code of this file.

Functions

Q_DBUS_EXPORT QString qDBusGenerateMetaObjectXml (QString interface, const QMetaObject *mo, const QMetaObject *base, int flags)
 
static QString typeNameToXml (const char *typeName)
 
static QLatin1StringView accessAsString (bool read, bool write)
 
static QString generateInterfaceXml (const QMetaObject *mo, int flags, int methodOffset, int propOffset)
 

Function Documentation

◆ accessAsString()

static QLatin1StringView accessAsString ( bool  read,
bool  write 
)
inlinestatic

Definition at line 44 of file qdbusxmlgenerator.cpp.

References read(), and write().

Referenced by generateInterfaceXml().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ generateInterfaceXml()

static QString generateInterfaceXml ( const QMetaObject mo,
int  flags,
int  methodOffset,
int  propOffset 
)
static

Definition at line 55 of file qdbusxmlgenerator.cpp.

References QMetaMethod::access(), accessAsString(), ANNOTATION_NO_WAIT, QString::arg(), arg, QString::asprintf(), QMetaMethod::attributes(), QMetaMethod::Cloned, QByteArray::constData(), QDBusConnection::ExportNonScriptableInvokables, QDBusConnection::ExportNonScriptableProperties, QDBusConnection::ExportNonScriptableSignals, QDBusConnection::ExportNonScriptableSlots, QDBusConnection::ExportScriptableInvokables, QDBusConnection::ExportScriptableProperties, QDBusConnection::ExportScriptableSignals, QDBusConnection::ExportScriptableSlots, QString::fromLatin1(), i, QMetaProperty::isReadable(), QMetaProperty::isScriptable(), QMetaType::isValid(), QMetaProperty::isWritable(), j, QDBusMetaTypeId::message(), QMetaProperty::metaType(), QMetaMethod::Method, QMetaMethod::methodType(), mo, QMetaMethod::name(), QMetaProperty::name(), QMetaType::name(), QMetaMethod::parameterNames(), QMetaMethod::Public, qDBusCheckAsyncTag(), qDBusParametersForMethod(), qPrintable, qUtf16Printable, qWarning, QMetaMethod::returnMetaType(), QMetaMethod::Scriptable, QMetaMethod::Signal, QDBusMetaType::signatureToMetaType(), QMetaMethod::Slot, QMetaMethod::tag(), typeName, typeNameToXml(), QDBusMetaType::typeToSignature(), and xml.

Referenced by qDBusGenerateClassDefXml(), and qDBusGenerateMetaObjectXml().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDBusGenerateMetaObjectXml()

Q_DBUS_EXPORT QString qDBusGenerateMetaObjectXml ( QString  interface,
const QMetaObject mo,
const QMetaObject base,
int  flags 
)

Definition at line 212 of file qdbusxmlgenerator.cpp.

References base, QString::fromUtf8(), generateInterfaceXml(), interface, mo, QCLASSINFO_DBUS_INTROSPECTION, and xml.

Referenced by qDBusIntrospectObject().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ typeNameToXml()

static QString typeNameToXml ( const char *  typeName)
inlinestatic

Definition at line 24 of file qdbusxmlgenerator.cpp.

References QLatin1StringView::at(), i, QString::reserve(), QLatin1StringView::size(), and typeName.

Referenced by generateInterfaceXml().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: