Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qdbusmisc.cpp File Reference
#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 QString::append(), QCoreApplication::applicationName, className, ForbidLeadingDot, QCoreApplication::instance(), interface, QString::isEmpty(), QLatin1StringView::isEmpty(), it, mo, QCoreApplication::organizationDomain, QCLASSINFO_DBUS_INTERFACE, qt_ACE_do(), QString::replace(), QString::reserve(), QString::size(), Qt::SkipEmptyParts, QString::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 131 of file qdbusmisc.cpp.

References QLatin1StringView::QLatin1StringView(), QList< T >::append(), QList< T >::clear(), 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 QMetaMethod::parameterTypes(), and qDBusParametersForMethod().

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: