Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qdbusmisc.cpp File Reference

(a668ed44dc98a377a5253410d65fe4b3667e87e6)

#include <string.h>
#include <QtCore/qcoreapplication.h>
#include <QtCore/qlist.h>
#include <QtCore/qmetaobject.h>
#include <QtCore/qvariant.h>
#include <private/qurl_p.h>
#include "qdbusutil_p.h"
#include "qdbusconnection_p.h"
#include "qdbusabstractadaptor_p.h"
#include "qdbusmetatype_p.h"
+ Include dependency graph for qdbusmisc.cpp:

Go to the source code of this file.

Functions

bool qDBusCheckAsyncTag (const char *tag)
 
QString qDBusInterfaceFromMetaObject (const QMetaObject *mo)
 
bool qDBusInterfaceInObject (QObject *obj, const QString &interface_name)
 
int qDBusParametersForMethod (const QMetaMethod &mm, QList< QMetaType > &metaTypes, QString &errorMsg)
 
int qDBusParametersForMethod (const QList< QByteArray > &parameterTypes, QList< QMetaType > &metaTypes, QString &errorMsg)
 

Function Documentation

◆ qDBusCheckAsyncTag()

bool qDBusCheckAsyncTag ( const char * tag)

Definition at line 25 of file qdbusmisc.cpp.

References tag.

Referenced by addFunction(), findSlot(), and generateInterfaceXml().

+ Here is the caller graph for this function:

◆ qDBusInterfaceFromMetaObject()

QString qDBusInterfaceFromMetaObject ( const QMetaObject * mo)

Definition at line 42 of file qdbusmisc.cpp.

References className, ForbidLeadingDot, QCoreApplication::instance(), interface, QLatin1StringView::isEmpty(), QString::isEmpty(), it, mo, QCLASSINFO_DBUS_INTERFACE, qt_ACE_do(), QString::reserve(), Qt::SkipEmptyParts, QStringView::split(), and ToAceOnly.

Referenced by qDBusInterfaceInObject().

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

◆ qDBusInterfaceInObject()

bool qDBusInterfaceInObject ( QObject * obj,
const QString & interface_name )

Definition at line 103 of file qdbusmisc.cpp.

References mo, and qDBusInterfaceFromMetaObject().

Referenced by qDBusPropertyGet(), and qDBusPropertySet().

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

◆ qDBusParametersForMethod() [1/2]

int qDBusParametersForMethod ( const QList< QByteArray > & parameterTypes,
QList< QMetaType > & metaTypes,
QString & errorMsg )

Definition at line 143 of file qdbusmisc.cpp.

References QLatin1StringView::QLatin1StringView(), QMetaType::fromName(), QDBusMetaTypeId::init(), QDBusMetaTypeId::message(), QByteArray::truncate(), and QDBusMetaType::typeToSignature().

+ Here is the call graph for this function:

◆ qDBusParametersForMethod() [2/2]

int qDBusParametersForMethod ( const QMetaMethod & mm,
QList< QMetaType > & metaTypes,
QString & errorMsg )

Definition at line 124 of file qdbusmisc.cpp.

References i, QMetaType::name(), QMetaMethod::parameterCount(), QMetaMethod::parameterMetaType(), QMetaMethod::parameterTypeName(), qDBusParametersForMethod(), and typeName.

Referenced by findSlot(), QDBusConnectionPrivate::findSlot(), generateInterfaceXml(), qDBusParametersForMethod(), and QDBusAdaptorConnector::relay().

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