Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QDBusMessagePrivate Class Reference

#include <qdbusmessage_p.h>

+ Collaboration diagram for QDBusMessagePrivate:

Public Member Functions

 QDBusMessagePrivate ()
 
 ~QDBusMessagePrivate ()
 

Static Public Member Functions

static void setParametersValidated (QDBusMessage &msg, bool 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)
 

Public Attributes

QList< QVariantarguments
 
QString service
 
QString path
 
QString interface
 
QString name
 
QString message
 
QString signature
 
DBusMessage * msg
 
DBusMessage * reply
 
QDBusMessagelocalReply
 
QAtomicInt ref
 
QDBusMessage::MessageType type
 
uint delayedReply: 1
 
uint localMessage: 1
 
uint parametersValidated: 1
 
uint autoStartService: 1
 
uint interactiveAuthorizationAllowed: 1
 

Detailed Description

Definition at line 32 of file qdbusmessage_p.h.

Constructor & Destructor Documentation

◆ QDBusMessagePrivate()

QDBusMessagePrivate::QDBusMessagePrivate ( )

Definition at line 38 of file qdbusmessage.cpp.

◆ ~QDBusMessagePrivate()

QDBusMessagePrivate::~QDBusMessagePrivate ( )

Definition at line 46 of file qdbusmessage.cpp.

References localReply, msg, and reply.

Member Function Documentation

◆ fromDBusMessage()

QDBusMessage QDBusMessagePrivate::fromDBusMessage ( DBusMessage *  dmsg,
QDBusConnection::ConnectionCapabilities  capabilities 
)
static

Constructs a QDBusMessage by parsing the given DBusMessage object.

Definition at line 200 of file qdbusmessage.cpp.

References QDBusDemarshaller::atEnd(), DBUS_MESSAGE_TYPE_ERROR, QString::fromUtf8(), QDBusDemarshaller::iterator, QDBusArgumentPrivate::message, message, and QDBusDemarshaller::toVariantInternal().

Referenced by makeLocal(), QDBusConnectionPrivate::processFinishedCall(), and qDBusSignalFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isLocal()

bool QDBusMessagePrivate::isLocal ( const QDBusMessage msg)
static

Definition at line 225 of file qdbusmessage.cpp.

Referenced by QDBusConnectionPrivate::handleMessage(), and QDBusConnectionPrivate::send().

+ Here is the caller graph for this function:

◆ makeLocal()

QDBusMessage QDBusMessagePrivate::makeLocal ( const QDBusConnectionPrivate conn,
const QDBusMessage asSent 
)
static

Definition at line 230 of file qdbusmessage.cpp.

References argument, arguments, QDBusConnectionPrivate::baseService, QDBusConnectionPrivate::connectionCapabilities(), QDBusMessage::createError(), d, error, fromDBusMessage(), interface, QString::isEmpty(), localMessage, message, name, path, qstrlen(), service, signature, toDBusMessage(), QString::toUtf8(), type, and QDBusMetaType::typeToSignature().

Referenced by makeLocalReply(), and QDBusConnectionPrivate::sendWithReplyLocal().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeLocalReply()

QDBusMessage QDBusMessagePrivate::makeLocalReply ( const QDBusConnectionPrivate conn,
const QDBusMessage asSent 
)
static

Definition at line 285 of file qdbusmessage.cpp.

References localReply, and makeLocal().

+ Here is the call graph for this function:

◆ setParametersValidated()

static void QDBusMessagePrivate::setParametersValidated ( QDBusMessage msg,
bool  enable 
)
inlinestatic

Definition at line 56 of file qdbusmessage_p.h.

References msg.

Referenced by QDBusAbstractInterface::asyncCallWithArgumentList(), QDBusAbstractInterface::callWithArgumentList(), QDBusAbstractInterface::callWithCallback(), QDBusAbstractInterfacePrivate::property(), QDBusConnectionPrivate::relaySignal(), and QDBusAbstractInterfacePrivate::setProperty().

+ Here is the caller graph for this function:

◆ toDBusMessage()

DBusMessage * QDBusMessagePrivate::toDBusMessage ( const QDBusMessage message,
QDBusConnection::ConnectionCapabilities  capabilities,
QDBusError error 
)
static

Constructs a DBusMessage object from message. The returned value must be de-referenced with q_dbus_message_unref. The capabilities flags indicates which capabilities to use.

The error object is set to indicate the error if anything went wrong with the marshalling. Usually, this error message will be placed in the reply, as if the call failed. The error pointer must not be null.

Definition at line 79 of file qdbusmessage.cpp.

References QDBusMarshaller::append(), QDBusMarshaller::appendVariantInternal(), argument, arguments, autoStartService, QDBusUtil::checkBusName(), QDBusUtil::checkErrorName(), QDBusUtil::checkInterfaceName(), QDBusUtil::checkMemberName(), QDBusUtil::checkObjectPath(), DBUS_MESSAGE_TYPE_ERROR, DBUS_MESSAGE_TYPE_METHOD_RETURN, QDBusUtil::EmptyAllowed, QDBusUtil::EmptyNotAllowed, error, QDBusMessage::ErrorMessage, QDBusMarshaller::errorString, QDBusError::Failed, interactiveAuthorizationAllowed, interface, QDBusMessage::InvalidMessage, QString::isEmpty(), QDBusMarshaller::iterator, localMessage, message, QDBusMessage::MethodCallMessage, msg, name, QDBusMarshaller::ok, parametersValidated, path, qdbus_loadLibDBus(), reply, QDBusMessage::ReplyMessage, service, QDBusMessage::SignalMessage, QString::toUtf8(), and type.

Referenced by makeLocal(), QDBusConnectionPrivate::relaySignal(), and QDBusConnectionPrivate::send().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ arguments

◆ autoStartService

uint QDBusMessagePrivate::autoStartService

◆ delayedReply

uint QDBusMessagePrivate::delayedReply
mutable

Definition at line 50 of file qdbusmessage_p.h.

Referenced by QDBusMessage::isDelayedReply(), and QDBusMessage::setDelayedReply().

◆ interactiveAuthorizationAllowed

uint QDBusMessagePrivate::interactiveAuthorizationAllowed

◆ interface

QString QDBusMessagePrivate::interface

Definition at line 42 of file qdbusmessage_p.h.

Referenced by QDBusMessage::interface(), makeLocal(), and toDBusMessage().

◆ localMessage

uint QDBusMessagePrivate::localMessage

◆ localReply

QDBusMessage* QDBusMessagePrivate::localReply
mutable

◆ message

QString QDBusMessagePrivate::message

◆ msg

◆ name

QString QDBusMessagePrivate::name

◆ parametersValidated

uint QDBusMessagePrivate::parametersValidated
mutable

Definition at line 52 of file qdbusmessage_p.h.

Referenced by QDBusMessage::createErrorReply(), and toDBusMessage().

◆ path

QString QDBusMessagePrivate::path

Definition at line 42 of file qdbusmessage_p.h.

Referenced by makeLocal(), QDBusMessage::path(), and toDBusMessage().

◆ ref

QAtomicInt QDBusMessagePrivate::ref

Definition at line 47 of file qdbusmessage_p.h.

Referenced by QDBusMessage::QDBusMessage(), and QDBusMessage::~QDBusMessage().

◆ reply

DBusMessage* QDBusMessagePrivate::reply

Definition at line 45 of file qdbusmessage_p.h.

Referenced by ~QDBusMessagePrivate(), and toDBusMessage().

◆ service

QString QDBusMessagePrivate::service

Definition at line 42 of file qdbusmessage_p.h.

Referenced by makeLocal(), QDBusMessage::service(), and toDBusMessage().

◆ signature

QString QDBusMessagePrivate::signature

Definition at line 42 of file qdbusmessage_p.h.

Referenced by makeLocal(), and QDBusMessage::signature().

◆ type


The documentation for this class was generated from the following files: