Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QDBusPendingReply<> Class Reference

#include <qdbuspendingreply.h>

Inheritance diagram for QDBusPendingReply<>:
Collaboration diagram for QDBusPendingReply<>:

Public Types

enum  { Count = 0 }
enum  

Public Member Functions

int count () const
 QDBusPendingReply ()=default
Q_IMPLICIT QDBusPendingReply (const QDBusPendingCall &call)
Q_IMPLICIT QDBusPendingReply (const QDBusMessage &message)
QDBusPendingReplyoperator= (const QDBusPendingCall &call)
QDBusPendingReplyoperator= (const QDBusMessage &message)
QVariant argumentAt (int index) const
Select< 0 >::Type value () const
 Returns the first argument in this reply, cast to type Types[0] (the first template parameter of this class).
 operator typename Select< 0 >::Type () const
 Returns the first argument in this reply, cast to type Types[0] (the first template parameter of this class).
Public Member Functions inherited from QDBusPendingCall
 QDBusPendingCall (const QDBusPendingCall &other)
 Creates a copy of the other pending asynchronous call.
 QDBusPendingCall (QDBusPendingCall &&other) noexcept=default
 ~QDBusPendingCall ()
 Destroys this copy of the QDBusPendingCall object.
QDBusPendingCalloperator= (QDBusPendingCall &&other) noexcept
QDBusPendingCalloperator= (const QDBusPendingCall &other)
 Creates a copy of the other pending asynchronous call and drops the reference to the previously-referenced call.
void swap (QDBusPendingCall &other) noexcept
bool isFinished () const
void waitForFinished ()
bool isError () const
bool isValid () const
QDBusError error () const
QDBusMessage reply () const

Friends

class ::tst_QDBusPendingReply

Additional Inherited Members

Static Public Member Functions inherited from QDBusPendingCall
static QDBusPendingCall fromError (const QDBusError &error)
static QDBusPendingCall fromCompletedCall (const QDBusMessage &message)
Protected Member Functions inherited from QDBusPendingReplyBase
 QDBusPendingReplyBase ()
void assign (const QDBusPendingCall &call)
void assign (const QDBusMessage &message)
QVariant argumentAt (int index) const
void setMetaTypes (int count, const QMetaType *metaTypes)
Protected Member Functions inherited from QDBusPendingCall
 QDBusPendingCall (QDBusPendingCallPrivate *dd)
Protected Attributes inherited from QDBusPendingCall
QExplicitlySharedDataPointer< QDBusPendingCallPrivated

Detailed Description

Definition at line 138 of file qdbuspendingreply.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Count 

Definition at line 142 of file qdbuspendingreply.h.

◆ anonymous enum

anonymous enum

Definition at line 65 of file qdbuspendingreply.h.

Constructor & Destructor Documentation

◆ QDBusPendingReply() [1/3]

◆ QDBusPendingReply() [2/3]

Definition at line 148 of file qdbuspendingreply.h.

◆ QDBusPendingReply() [3/3]

Definition at line 150 of file qdbuspendingreply.h.

Member Function Documentation

◆ argumentAt()

( int index) const

◆ count()

int QDBusPendingReply<>::count ( ) const
inline

Definition at line 143 of file qdbuspendingreply.h.

References Count.

◆ operator typename Select< 0 >::Type()

QDBusPendingReply< Types >::operator typename Select< 0 >::Type ( ) const
inline

Returns the first argument in this reply, cast to type Types[0] (the first template parameter of this class).

This is equivalent to calling argumentAt<0>().

This function is provided as a convenience, matching the QDBusReply::value() function.

Note that, if the reply hasn't arrived, this function causes the calling thread to block until the reply is processed.

If the reply is an error reply, this function returns a default-constructed Types[0] object, which may be indistinguishable from a valid value. To reliably determine whether the message was an error, use isError().

Definition at line 107 of file qdbuspendingreply.h.

◆ operator=() [1/2]

QDBusPendingReply & QDBusPendingReply<>::operator= ( const QDBusMessage & message)
inline

Definition at line 155 of file qdbuspendingreply.h.

◆ operator=() [2/2]

QDBusPendingReply & QDBusPendingReply<>::operator= ( const QDBusPendingCall & call)
inline

Definition at line 153 of file qdbuspendingreply.h.

◆ value()

Select< 0 >::Type QDBusPendingReply< Types >::value ( ) const
inline

Returns the first argument in this reply, cast to type Types[0] (the first template parameter of this class).

This is equivalent to calling argumentAt<0>().

This function is provided as a convenience, matching the QDBusReply::value() function.

Note that, if the reply hasn't arrived, this function causes the calling thread to block until the reply is processed.

If the reply is an error reply, this function returns a default-constructed Types[0] object, which may be indistinguishable from a valid value. To reliably determine whether the message was an error, use isError().

Definition at line 102 of file qdbuspendingreply.h.

◆ ::tst_QDBusPendingReply

friend class ::tst_QDBusPendingReply
friend

Definition at line 140 of file qdbuspendingreply.h.


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