Qt 6.x
The Qt SDK
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
4#ifndef QDBUSMESSAGE_P_H
5#define QDBUSMESSAGE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of the QLibrary class. This header file may change from
13// version to version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtDBus/private/qtdbusglobal_p.h>
19#include <qatomic.h>
20#include <qstring.h>
21#include <qdbusmessage.h>
22#include <qdbusconnection.h>
23
24struct DBusMessage;
25
26#ifndef QT_NO_DBUS
27
29
31
33{
34public:
37
39
40 // the following parameters are "const": they are not changed after the constructors
41 // the parametersValidated member below controls whether they've been validated already
43
44 DBusMessage *msg;
45 DBusMessage *reply;
49
50 mutable uint delayedReply : 1;
55
57 { msg.d_ptr->parametersValidated = enable; }
58
59 static DBusMessage *toDBusMessage(const QDBusMessage &message, QDBusConnection::ConnectionCapabilities capabilities,
61 static QDBusMessage fromDBusMessage(DBusMessage *dmsg, QDBusConnection::ConnectionCapabilities capabilities);
62
63 static bool isLocal(const QDBusMessage &msg);
65 const QDBusMessage &asSent);
67 const QDBusMessage &asSent);
68};
69
71
72#endif // QT_NO_DBUS
73#endif
\inmodule QtCore
Definition qatomic.h:112
\inmodule QtDBus
Definition qdbuserror.h:21
static void setParametersValidated(QDBusMessage &msg, bool enable)
QList< QVariant > arguments
static QDBusMessage fromDBusMessage(DBusMessage *dmsg, QDBusConnection::ConnectionCapabilities capabilities)
QDBusMessage * localReply
static QDBusMessage makeLocalReply(const QDBusConnectionPrivate &conn, const QDBusMessage &asSent)
static DBusMessage * toDBusMessage(const QDBusMessage &message, QDBusConnection::ConnectionCapabilities capabilities, QDBusError *error)
DBusMessage * reply
static bool isLocal(const QDBusMessage &msg)
static QDBusMessage makeLocal(const QDBusConnectionPrivate &conn, const QDBusMessage &asSent)
QDBusMessage::MessageType type
\inmodule QtDBus
MessageType
The possible message types:
Definition qlist.h:74
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
GLboolean enable
GLuint GLsizei const GLchar * message
unsigned int uint
Definition qtypes.h:29