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
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
38 QList<QVariant> arguments;
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
42 // (service is also used to store the destination of reply-type messages)
44
48 uint32_t serial; // if type == MethodCall; the incoming serial; if type == Reply or Error, the serial we're replying to
49
50 mutable uint delayedReply : 1;
56
59 { msg.d_ptr->parametersValidated = enable; }
60
61 static DBusMessage *toDBusMessage(const QDBusMessage &message, QDBusConnection::ConnectionCapabilities capabilities,
63 static QDBusMessage fromDBusMessage(DBusMessage *dmsg, QDBusConnection::ConnectionCapabilities capabilities);
64
65 static bool isLocal(const QDBusMessage &msg);
67 const QDBusMessage &asSent);
69 const QDBusMessage &asSent);
70};
71
73
74#endif // QT_NO_DBUS
75#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)
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
MessageType
The possible message types:
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
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:34