05fc3aef53
Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Id880c92784c40f3bbde861c0d93f58151c18b9f1 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
74 lines
2.1 KiB
C++
74 lines
2.1 KiB
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
#ifndef QDBUSMESSAGE_P_H
|
|
#define QDBUSMESSAGE_P_H
|
|
|
|
//
|
|
// W A R N I N G
|
|
// -------------
|
|
//
|
|
// This file is not part of the Qt API. It exists for the convenience
|
|
// of the QLibrary class. This header file may change from
|
|
// version to version without notice, or even be removed.
|
|
//
|
|
// We mean it.
|
|
//
|
|
|
|
#include <QtDBus/private/qtdbusglobal_p.h>
|
|
#include <qatomic.h>
|
|
#include <qstring.h>
|
|
#include <qdbusmessage.h>
|
|
#include <qdbusconnection.h>
|
|
|
|
struct DBusMessage;
|
|
|
|
#ifndef QT_NO_DBUS
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class QDBusConnectionPrivate;
|
|
|
|
class QDBusMessagePrivate
|
|
{
|
|
public:
|
|
QDBusMessagePrivate();
|
|
~QDBusMessagePrivate();
|
|
|
|
QList<QVariant> arguments;
|
|
|
|
// the following parameters are "const": they are not changed after the constructors
|
|
// the parametersValidated member below controls whether they've been validated already
|
|
QString service, path, interface, name, message, signature;
|
|
|
|
DBusMessage *msg;
|
|
DBusMessage *reply;
|
|
mutable QDBusMessage *localReply;
|
|
QAtomicInt ref;
|
|
QDBusMessage::MessageType type;
|
|
|
|
mutable uint delayedReply : 1;
|
|
uint localMessage : 1;
|
|
mutable uint parametersValidated : 1;
|
|
uint autoStartService : 1;
|
|
uint interactiveAuthorizationAllowed : 1;
|
|
|
|
static void setParametersValidated(QDBusMessage &msg, bool enable)
|
|
{ msg.d_ptr->parametersValidated = enable; }
|
|
|
|
static DBusMessage *toDBusMessage(const QDBusMessage &message, QDBusConnection::ConnectionCapabilities capabilities,
|
|
QDBusError *error);
|
|
static QDBusMessage fromDBusMessage(DBusMessage *dmsg, QDBusConnection::ConnectionCapabilities capabilities);
|
|
|
|
static bool isLocal(const QDBusMessage &msg);
|
|
static QDBusMessage makeLocal(const QDBusConnectionPrivate &conn,
|
|
const QDBusMessage &asSent);
|
|
static QDBusMessage makeLocalReply(const QDBusConnectionPrivate &conn,
|
|
const QDBusMessage &asSent);
|
|
};
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // QT_NO_DBUS
|
|
#endif
|