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
QDBusDemarshaller Class Referencefinal

#include <qdbusargument_p.h>

+ Inheritance diagram for QDBusDemarshaller:
+ Collaboration diagram for QDBusDemarshaller:

Public Member Functions

 QDBusDemarshaller (QDBusConnection::ConnectionCapabilities flags={})
 
 ~QDBusDemarshaller ()
 
QString currentSignature ()
 
uchar toByte ()
 
bool toBool ()
 
ushort toUShort ()
 
short toShort ()
 
int toInt ()
 
uint toUInt ()
 
qlonglong toLongLong ()
 
qulonglong toULongLong ()
 
double toDouble ()
 
QString toString ()
 
QDBusObjectPath toObjectPath ()
 
QDBusSignature toSignature ()
 
QDBusUnixFileDescriptor toUnixFileDescriptor ()
 
QDBusVariant toVariant ()
 
QStringList toStringList ()
 
QByteArray toByteArray ()
 
QDBusDemarshallerbeginStructure ()
 
QDBusDemarshallerendStructure ()
 
QDBusDemarshallerbeginArray ()
 
QDBusDemarshallerendArray ()
 
QDBusDemarshallerbeginMap ()
 
QDBusDemarshallerendMap ()
 
QDBusDemarshallerbeginMapEntry ()
 
QDBusDemarshallerendMapEntry ()
 
QDBusDemarshallerbeginCommon ()
 
QDBusDemarshallerendCommon ()
 
QDBusArgument duplicate ()
 
void close ()
 
bool atEnd ()
 
QVariant toVariantInternal ()
 
QDBusArgument::ElementType currentType ()
 
bool isCurrentTypeStringLike ()
 
- Public Member Functions inherited from QDBusArgumentPrivate
virtual ~QDBusArgumentPrivate ()
 
QDBusMarshallermarshaller ()
 
QDBusDemarshallerdemarshaller ()
 

Public Attributes

DBusMessageIter iterator
 
QDBusDemarshallerparent = nullptr
 
- Public Attributes inherited from QDBusArgumentPrivate
DBusMessage * message = nullptr
 
QAtomicInt ref = 1
 
QDBusConnection::ConnectionCapabilities capabilities
 
Direction direction
 

Additional Inherited Members

- Public Types inherited from QDBusArgumentPrivate
enum class  Direction { Marshalling , Demarshalling }
 
- Static Public Member Functions inherited from QDBusArgumentPrivate
static bool checkRead (QDBusArgumentPrivate *d)
 
static bool checkReadAndDetach (QDBusArgumentPrivate *&d)
 
static bool checkWrite (QDBusArgumentPrivate *&d)
 
static QByteArray createSignature (QMetaType type)
 
static QDBusArgument create (QDBusArgumentPrivate *d)
 
static QDBusArgumentPrivated (QDBusArgument &q)
 
- Protected Member Functions inherited from QDBusArgumentPrivate
 QDBusArgumentPrivate (Direction direction, QDBusConnection::ConnectionCapabilities flags={})
 

Detailed Description

Definition at line 131 of file qdbusargument_p.h.

Constructor & Destructor Documentation

◆ QDBusDemarshaller()

QDBusDemarshaller::QDBusDemarshaller ( QDBusConnection::ConnectionCapabilities flags = {})
inlineexplicit

Definition at line 134 of file qdbusargument_p.h.

Referenced by beginCommon(), and duplicate().

+ Here is the caller graph for this function:

◆ ~QDBusDemarshaller()

QDBusDemarshaller::~QDBusDemarshaller ( )

Definition at line 40 of file qdbusdemarshaller.cpp.

Member Function Documentation

◆ atEnd()

bool QDBusDemarshaller::atEnd ( )

Definition at line 326 of file qdbusdemarshaller.cpp.

References DBUS_TYPE_INVALID, and iterator.

Referenced by QDBusArgument::atEnd(), and QDBusMessagePrivate::fromDBusMessage().

+ Here is the caller graph for this function:

◆ beginArray()

QDBusDemarshaller * QDBusDemarshaller::beginArray ( )
inline

Definition at line 337 of file qdbusdemarshaller.cpp.

References beginCommon().

Referenced by QDBusArgument::beginArray().

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

◆ beginCommon()

QDBusDemarshaller * QDBusDemarshaller::beginCommon ( )

Definition at line 352 of file qdbusdemarshaller.cpp.

References QDBusDemarshaller(), QDBusArgumentPrivate::capabilities, d, and iterator.

Referenced by QDBusMarshaller::appendCrossMarshalling(), beginArray(), beginMap(), beginMapEntry(), and beginStructure().

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

◆ beginMap()

QDBusDemarshaller * QDBusDemarshaller::beginMap ( )
inline

Definition at line 342 of file qdbusdemarshaller.cpp.

References beginCommon().

Referenced by QDBusArgument::beginMap().

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

◆ beginMapEntry()

QDBusDemarshaller * QDBusDemarshaller::beginMapEntry ( )
inline

Definition at line 347 of file qdbusdemarshaller.cpp.

References beginCommon().

Referenced by QDBusArgument::beginMapEntry().

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

◆ beginStructure()

QDBusDemarshaller * QDBusDemarshaller::beginStructure ( )
inline

Definition at line 332 of file qdbusdemarshaller.cpp.

References beginCommon().

Referenced by QDBusArgument::beginStructure().

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

◆ close()

void QDBusDemarshaller::close ( )
inline

Definition at line 170 of file qdbusargument_p.h.

◆ currentSignature()

QString QDBusDemarshaller::currentSignature ( )
inline

Definition at line 44 of file qdbusdemarshaller.cpp.

References QString::fromUtf8(), and iterator.

Referenced by QDBusArgument::currentSignature().

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

◆ currentType()

◆ duplicate()

QDBusArgument QDBusDemarshaller::duplicate ( )

Definition at line 391 of file qdbusdemarshaller.cpp.

References QDBusDemarshaller(), QDBusArgumentPrivate::capabilities, QDBusArgumentPrivate::create(), d, and iterator.

Referenced by toVariantInternal().

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

◆ endArray()

QDBusDemarshaller * QDBusDemarshaller::endArray ( )
inline

Definition at line 369 of file qdbusdemarshaller.cpp.

References endCommon().

Referenced by QDBusArgument::endArray().

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

◆ endCommon()

QDBusDemarshaller * QDBusDemarshaller::endCommon ( )

Definition at line 384 of file qdbusdemarshaller.cpp.

References parent.

Referenced by endArray(), endMap(), endMapEntry(), and endStructure().

+ Here is the caller graph for this function:

◆ endMap()

QDBusDemarshaller * QDBusDemarshaller::endMap ( )
inline

Definition at line 374 of file qdbusdemarshaller.cpp.

References endCommon().

Referenced by QDBusArgument::endMap().

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

◆ endMapEntry()

QDBusDemarshaller * QDBusDemarshaller::endMapEntry ( )
inline

Definition at line 379 of file qdbusdemarshaller.cpp.

References endCommon().

Referenced by QDBusArgument::endMapEntry().

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

◆ endStructure()

QDBusDemarshaller * QDBusDemarshaller::endStructure ( )
inline

Definition at line 364 of file qdbusdemarshaller.cpp.

References endCommon().

Referenced by QDBusArgument::endStructure().

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

◆ isCurrentTypeStringLike()

bool QDBusDemarshaller::isCurrentTypeStringLike ( )

Definition at line 271 of file qdbusdemarshaller.cpp.

References DBUS_TYPE_OBJECT_PATH, DBUS_TYPE_SIGNATURE, DBUS_TYPE_STRING, and iterator.

Referenced by toObjectPath(), toSignature(), and toString().

+ Here is the caller graph for this function:

◆ toBool()

bool QDBusDemarshaller::toBool ( )
inline

Definition at line 58 of file qdbusdemarshaller.cpp.

References iterator.

Referenced by QDBusArgument::operator>>(), and toVariantInternal().

+ Here is the caller graph for this function:

◆ toByte()

uchar QDBusDemarshaller::toByte ( )
inline

Definition at line 53 of file qdbusdemarshaller.cpp.

References iterator.

Referenced by QDBusArgument::operator>>(), and toVariantInternal().

+ Here is the caller graph for this function:

◆ toByteArray()

QByteArray QDBusDemarshaller::toByteArray ( )

Definition at line 317 of file qdbusdemarshaller.cpp.

References DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, iterator, and QByteArray().

Referenced by QDBusArgument::operator>>().

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

◆ toDouble()

double QDBusDemarshaller::toDouble ( )
inline

Definition at line 93 of file qdbusdemarshaller.cpp.

References iterator.

Referenced by QDBusArgument::operator>>(), and toVariantInternal().

+ Here is the caller graph for this function:

◆ toInt()

int QDBusDemarshaller::toInt ( )
inline

Definition at line 73 of file qdbusdemarshaller.cpp.

References iterator.

Referenced by QDBusArgument::operator>>(), and toVariantInternal().

+ Here is the caller graph for this function:

◆ toLongLong()

qlonglong QDBusDemarshaller::toLongLong ( )
inline

Definition at line 83 of file qdbusdemarshaller.cpp.

References iterator.

Referenced by QDBusArgument::operator>>(), and toVariantInternal().

+ Here is the caller graph for this function:

◆ toObjectPath()

QDBusObjectPath QDBusDemarshaller::toObjectPath ( )
inline

Definition at line 116 of file qdbusdemarshaller.cpp.

References isCurrentTypeStringLike().

Referenced by QDBusArgument::operator>>().

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

◆ toShort()

short QDBusDemarshaller::toShort ( )
inline

Definition at line 68 of file qdbusdemarshaller.cpp.

References iterator.

Referenced by QDBusArgument::operator>>(), and toVariantInternal().

+ Here is the caller graph for this function:

◆ toSignature()

QDBusSignature QDBusDemarshaller::toSignature ( )
inline

Definition at line 129 of file qdbusdemarshaller.cpp.

References isCurrentTypeStringLike().

Referenced by QDBusArgument::operator>>().

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

◆ toString()

QString QDBusDemarshaller::toString ( )
inline

Definition at line 103 of file qdbusdemarshaller.cpp.

References isCurrentTypeStringLike().

Referenced by QDBusArgument::operator>>().

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

◆ toStringList()

QStringList QDBusDemarshaller::toStringList ( )

Definition at line 297 of file qdbusdemarshaller.cpp.

References DBUS_TYPE_ARRAY, DBUS_TYPE_STRING, and iterator.

Referenced by QDBusArgument::operator>>().

+ Here is the caller graph for this function:

◆ toUInt()

uint QDBusDemarshaller::toUInt ( )
inline

Definition at line 78 of file qdbusdemarshaller.cpp.

References iterator.

Referenced by QDBusArgument::operator>>(), and toVariantInternal().

+ Here is the caller graph for this function:

◆ toULongLong()

qulonglong QDBusDemarshaller::toULongLong ( )
inline

Definition at line 88 of file qdbusdemarshaller.cpp.

References iterator.

Referenced by QDBusArgument::operator>>(), and toVariantInternal().

+ Here is the caller graph for this function:

◆ toUnixFileDescriptor()

QDBusUnixFileDescriptor QDBusDemarshaller::toUnixFileDescriptor ( )
inline

Definition at line 137 of file qdbusdemarshaller.cpp.

References QDBusUnixFileDescriptor::giveFileDescriptor(), and iterator.

Referenced by QDBusArgument::operator>>(), and toVariantInternal().

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

◆ toUShort()

ushort QDBusDemarshaller::toUShort ( )
inline

Definition at line 63 of file qdbusdemarshaller.cpp.

References iterator.

Referenced by QDBusArgument::operator>>(), and toVariantInternal().

+ Here is the caller graph for this function:

◆ toVariant()

QDBusVariant QDBusDemarshaller::toVariant ( )
inline

Definition at line 144 of file qdbusdemarshaller.cpp.

References QDBusArgumentPrivate::capabilities, iterator, and sub.

Referenced by QDBusArgument::operator>>(), and toVariantInternal().

+ Here is the caller graph for this function:

◆ toVariantInternal()

QVariant QDBusDemarshaller::toVariantInternal ( )

Definition at line 206 of file qdbusdemarshaller.cpp.

References QDBusArgumentPrivate::capabilities, DBUS_TYPE_ARRAY, DBUS_TYPE_BOOLEAN, DBUS_TYPE_BYTE, DBUS_TYPE_DICT_ENTRY, DBUS_TYPE_DOUBLE, DBUS_TYPE_INT16, DBUS_TYPE_INT32, DBUS_TYPE_INT64, DBUS_TYPE_OBJECT_PATH, DBUS_TYPE_SIGNATURE, DBUS_TYPE_STRING, DBUS_TYPE_STRUCT, DBUS_TYPE_UINT16, DBUS_TYPE_UINT32, DBUS_TYPE_UINT64, DBUS_TYPE_UNIX_FD, DBUS_TYPE_VARIANT, duplicate(), QVariant::fromValue(), iterator, ptr(), Q_FALLTHROUGH, toBool(), toByte(), toDouble(), toInt(), toLongLong(), toShort(), toUInt(), toULongLong(), toUnixFileDescriptor(), toUShort(), toVariant(), and QDBusConnection::UnixFileDescriptorPassing.

Referenced by QDBusArgument::asVariant(), and QDBusMessagePrivate::fromDBusMessage().

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

Member Data Documentation

◆ iterator

◆ parent

QDBusDemarshaller* QDBusDemarshaller::parent = nullptr

Definition at line 179 of file qdbusargument_p.h.

Referenced by endCommon().


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