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
QDBusPendingCallPrivate Class Reference

#include <qdbuspendingcall_p.h>

+ Inheritance diagram for QDBusPendingCallPrivate:
+ Collaboration diagram for QDBusPendingCallPrivate:

Public Member Functions

 QDBusPendingCallPrivate (const QDBusMessage &sent, QDBusConnectionPrivate *connection)
 
 ~QDBusPendingCallPrivate ()
 
bool setReplyCallback (QObject *target, const char *member)
 
void waitForFinished ()
 
void waitForFinishedWithGui ()
 
void setMetaTypes (int count, const QMetaType *types)
 
void checkReceivedSignature ()
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Public Attributes

const QDBusMessage sentMessage
 
QDBusConnectionPrivate *const connection
 
QPointer< QObjectreceiver
 
QList< QMetaTypemetaTypes
 
int methodIdx
 
QMutex mutex
 
QWaitCondition waitForFinishedCondition
 
QDBusPendingCallWatcherHelperwatcherHelper
 
QDBusMessage replyMessage
 
DBusPendingCall * pending
 
QString expectedReplySignature
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 39 of file qdbuspendingcall_p.h.

Constructor & Destructor Documentation

◆ QDBusPendingCallPrivate()

QDBusPendingCallPrivate::QDBusPendingCallPrivate ( const QDBusMessage & sent,
QDBusConnectionPrivate * connection )
inline

Definition at line 65 of file qdbuspendingcall_p.h.

◆ ~QDBusPendingCallPrivate()

QDBusPendingCallPrivate::~QDBusPendingCallPrivate ( )

Definition at line 101 of file qdbuspendingcall.cpp.

References pending, and watcherHelper.

Member Function Documentation

◆ checkReceivedSignature()

void QDBusPendingCallPrivate::checkReceivedSignature ( )

Definition at line 176 of file qdbuspendingcall.cpp.

References QDBusMessage::createError(), QDBusMessage::ErrorMessage, expectedReplySignature, QString::indexOf(), QDBusMessage::InvalidMessage, QDBusError::InvalidSignature, QString::isNull(), replyMessage, QDBusMessage::signature(), and QDBusMessage::type().

Referenced by QDBusConnectionPrivate::processFinishedCall(), and QDBusPendingReplyBase::setMetaTypes().

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

◆ setMetaTypes()

void QDBusPendingCallPrivate::setMetaTypes ( int count,
const QMetaType * types )

Definition at line 157 of file qdbuspendingcall.cpp.

References expectedReplySignature, QString::fromLatin1(), i, Q_UNLIKELY, qFatal, QByteArray::reserve(), and QDBusMetaType::typeToSignature().

Referenced by QDBusPendingReplyBase::setMetaTypes(), and setReplyCallback().

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

◆ setReplyCallback()

bool QDBusPendingCallPrivate::setReplyCallback ( QObject * target,
const char * member )

Definition at line 110 of file qdbuspendingcall.cpp.

References QList< T >::at(), QList< T >::clear(), QList< T >::constData(), QDBusConnectionPrivate::findSlot(), QDBusMetaTypeId::message(), metaTypes, methodIdx, normalizedName(), QMetaObject::normalizedSignature(), qPrintable, qWarning, receiver, setMetaTypes(), and QList< T >::size().

+ Here is the call graph for this function:

◆ waitForFinished()

void QDBusPendingCallPrivate::waitForFinished ( )

Definition at line 199 of file qdbuspendingcall.cpp.

References QDBusMessage::InvalidMessage, mutex, replyMessage, QDBusMessage::type(), QWaitCondition::wait(), and waitForFinishedCondition.

Referenced by QDBusPendingReplyBase::argumentAt(), QDBusPendingCall::waitForFinished(), and QDBusPendingCallWatcher::waitForFinished().

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

◆ waitForFinishedWithGui()

void QDBusPendingCallPrivate::waitForFinishedWithGui ( )

Definition at line 209 of file qdbuspendingcall.cpp.

References QObject::connect(), QDBusPendingCallWatcherHelper::error(), QEventLoop::ExcludeUserInputEvents, QEventLoop::exec(), QDBusMessage::InvalidMessage, mutex, Q_ASSERT, QEventLoop::quit(), QDBusPendingCallWatcherHelper::reply(), replyMessage, QDBusMessage::type(), QEventLoop::WaitForMoreEvents, and watcherHelper.

+ Here is the call graph for this function:

Member Data Documentation

◆ connection

QDBusConnectionPrivate* const QDBusPendingCallPrivate::connection

Definition at line 45 of file qdbuspendingcall_p.h.

Referenced by QDBusConnectionPrivate::processFinishedCall().

◆ expectedReplySignature

QString QDBusPendingCallPrivate::expectedReplySignature

Definition at line 62 of file qdbuspendingcall_p.h.

Referenced by checkReceivedSignature(), and setMetaTypes().

◆ metaTypes

QList<QMetaType> QDBusPendingCallPrivate::metaTypes

◆ methodIdx

int QDBusPendingCallPrivate::methodIdx

◆ mutex

◆ pending

DBusPendingCall* QDBusPendingCallPrivate::pending

◆ receiver

QPointer<QObject> QDBusPendingCallPrivate::receiver

◆ replyMessage

◆ sentMessage

const QDBusMessage QDBusPendingCallPrivate::sentMessage

Definition at line 44 of file qdbuspendingcall_p.h.

Referenced by QDBusConnectionPrivate::processFinishedCall().

◆ waitForFinishedCondition

QWaitCondition QDBusPendingCallPrivate::waitForFinishedCondition

◆ watcherHelper


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