7#include <QtCore/qcoreapplication.h>
8#include <QtCore/qlist.h>
9#include <QtCore/qmetaobject.h>
10#include <QtCore/qvariant.h>
11#include <private/qurl_p.h>
27 static const char noReplyTag[] =
"Q_NOREPLY";
31 const char *
p = strstr(
tag, noReplyTag);
33 (
p ==
tag || *(
p-1) ==
' ') &&
34 (
p[
sizeof noReplyTag - 1] ==
'\0' ||
p[
sizeof noReplyTag - 1] ==
' '))
40#ifndef QT_BOOTSTRAPPED
47 if (idx >=
mo->classInfoOffset()) {
54 interface.prepend(
"org.qtproject.QtDBus."_L1);
58 interface.prepend(
"org.qtproject.Qt."_L1);
65 if (organizationDomain.
isEmpty())
66 domainName.append(
".local"_L1);
68 domainName.append(u
'.').append(organizationDomain);
72 if (encodedDomainName.isEmpty()) {
79 encodedDomainName.replace(u
'-', u
'_');
86 composedDomain.
reserve(encodedDomainName.size() + nameParts.size() + 1);
87 for (
auto it = nameParts.rbegin(),
end = nameParts.rend();
it !=
end; ++
it) {
91 if (
it->first().isDigit())
92 composedDomain += u
'_';
93 composedDomain += *
it + u
'.';
106 for ( ;
mo != &QObject::staticMetaObject;
mo =
mo->superClass())
126 QList<QByteArray> parameterTypes;
151 bool seenMessage =
false;
153 if (
type.endsWith(
'*')) {
158 if (
type.endsWith(
'&')) {
169 metaTypes.append(
id);
175 errorMsg =
"Invalid method, non-output parameters after message or after output parameters: "_L1 +
QLatin1StringView(
type);
179 if (
type.startsWith(
"QVector<"))
180 type =
"QList<" +
type.mid(
sizeof(
"QVector<") - 1);
183#ifdef QT_BOOTSTRAPPED
185 if (
type ==
"QDBusMessage") {
202 metaTypes.append(
id);
void truncate(qsizetype pos)
Truncates the byte array at index position pos.
static QCoreApplication * instance() noexcept
Returns a pointer to the application's QCoreApplication (or QGuiApplication/QApplication) instance.
constexpr bool isEmpty() const noexcept
constexpr QLatin1StringView() noexcept
Q_CORE_EXPORT QList< QStringView > split(QStringView sep, Qt::SplitBehavior behavior=Qt::KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Splits the view into substring views wherever sep occurs, and returns the list of those string views.
\macro QT_RESTRICTED_CAST_FROM_ASCII
void reserve(qsizetype size)
Ensures the string has space for at least size characters.
bool isEmpty() const noexcept
Returns true if the string has no characters; otherwise returns false.
QSet< QString >::iterator it
Combined button and popup list for selecting options.
AudioChannelLayoutTag tag
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char * interface
#define QCLASSINFO_DBUS_INTERFACE
bool qDBusInterfaceInObject(QObject *obj, const QString &interface_name)
QString qDBusInterfaceFromMetaObject(const QMetaObject *mo)
bool qDBusCheckAsyncTag(const char *tag)
int qDBusParametersForMethod(const QMetaMethod &mm, QList< QMetaType > &metaTypes, QString &errorMsg)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
QString Q_CORE_EXPORT qt_ACE_do(const QString &domain, AceOperation op, AceLeadingDot dot, QUrl::AceProcessingOptions options={})
const char className[16]
[1]