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
qdbusmessage_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QDBUSMESSAGE_P_H
6#define QDBUSMESSAGE_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of the QLibrary class. This header file may change from
14// version to version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtDBus/private/qtdbusglobal_p.h>
20#include <qatomic.h>
21#include <qstring.h>
22#include <qdbusmessage.h>
23#include <qdbusconnection.h>
24
25struct DBusMessage;
26
27#ifndef QT_NO_DBUS
28
29QT_BEGIN_NAMESPACE
30
31class QDBusConnectionPrivate;
32
34{
35public:
38
40
41 // the following parameters are "const": they are not changed after the constructors
42 // the parametersValidated member below controls whether they've been validated already
43 // (service is also used to store the destination of reply-type messages)
45
46 mutable QDBusMessage *localReply;
49 uint32_t serial; // if type == MethodCall; the incoming serial; if type == Reply or Error, the serial we're replying to
50
51 mutable uint delayedReply : 1;
52 mutable uint parametersValidated : 1;
53 uint localMessage : 1;
57
59 static void setParametersValidated(QDBusMessage &msg, bool enable)
60 { msg.d_ptr->parametersValidated = enable; }
61
62 static DBusMessage *toDBusMessage(const QDBusMessage &message, QDBusConnection::ConnectionCapabilities capabilities,
63 QDBusError *error);
64 static QDBusMessage fromDBusMessage(DBusMessage *dmsg, QDBusConnection::ConnectionCapabilities capabilities);
65
66 static bool isLocal(const QDBusMessage &msg);
67 static QDBusMessage makeLocal(const QDBusConnectionPrivate &conn,
68 const QDBusMessage &asSent);
69 static QDBusMessage makeLocalReply(const QDBusConnectionPrivate &conn,
70 const QDBusMessage &asSent);
71};
72
73QT_END_NAMESPACE
74
75#endif // QT_NO_DBUS
76#endif
\inmodule QtCore
Definition qatomic.h:113
static void finishDisconnectNotify(QDBusAbstractInterface *iface, int signalId)
QDBusAbstractInterfacePrivate(const QString &serv, const QString &p, const QString &iface, const QDBusConnection &con, bool dynamic)
bool setProperty(const QMetaProperty &mp, const QVariant &value)
QDBusConnectionPrivate * connectionPrivate() const
bool property(const QMetaProperty &mp, void *returnValuePtr) const
void _q_serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner)
\inmodule QtDBus
static void setParametersValidated(QDBusMessage &msg, bool enable)
QList< QVariant > arguments
static QDBusMessage fromDBusMessage(DBusMessage *dmsg, QDBusConnection::ConnectionCapabilities capabilities)
void createResponseLink(const QDBusMessagePrivate *call)
QDBusMessage * localReply
static QDBusMessage makeLocalReply(const QDBusConnectionPrivate &conn, const QDBusMessage &asSent)
static DBusMessage * toDBusMessage(const QDBusMessage &message, QDBusConnection::ConnectionCapabilities capabilities, QDBusError *error)
static bool isLocal(const QDBusMessage &msg)
static QDBusMessage makeLocal(const QDBusConnectionPrivate &conn, const QDBusMessage &asSent)
QDBusMessage::MessageType type
\inmodule QtDBus
#define DBUS_INTERFACE_PROPERTIES
\inmodule QtDBus
Definition qdbusutil_p.h:33
@ EmptyNotAllowed
Definition qdbusutil_p.h:60
static QDBusError checkIfValid(const QString &service, const QString &path, const QString &interface, bool isDynamic, bool isPeer)
#define qPrintable(string)
Definition qstring.h:1685
#define QStringLiteral(str)
Definition qstring.h:1826