7#include <QtDBus/qtdbusglobal.h>
8#include <QtCore/qvariant.h>
10#include <QtDBus/qdbusmessage.h>
11#include <QtDBus/qdbuserror.h>
12#include <QtDBus/qdbusextratypes.h>
13#include <QtDBus/qdbuspendingreply.h>
36 m_data = qvariant_cast<Type>(
data);
47 other.waitForFinished();
48 return *
this =
other.reply();
56 : m_error(dbusError), m_data(Type())
68 m_error =
other.m_error;
69 m_data =
other.m_data;
83 inline operator Type ()
const
100 m_data = qvariant_cast<QDBusVariant>(
data).variant();
129 other.waitForFinished();
130 return *
this =
other.reply();
142 m_error =
other.m_error;
bool isValid() const
Returns true if this is a valid error condition (i.e., if there was an error), otherwise false.
QDBusReply & operator=(const QDBusPendingCall &pcall)
QDBusReply(const QDBusError &dbusError=QDBusError())
const QDBusError & error() const
QDBusReply(const QDBusMessage &reply)
QDBusReply & operator=(const QDBusReply &other)
QDBusReply(const QDBusPendingCall &pcall)
QDBusReply & operator=(const QDBusError &dbusError)
QDBusReply & operator=(const QDBusMessage &reply)
QDBusReply(const QDBusReply &)=default
const QDBusError & error()
const QDBusError & error() const
Returns the error code that was returned from the remote function call.
Type value() const
Returns the remote function's calls return value.
QDBusReply(const QDBusError &dbusError=QDBusError())
Constructs an error reply from the D-Bus error code given by error.
const QDBusError & error()
This is an overloaded member function, provided for convenience. It differs from the above function o...
QDBusReply & operator=(const QDBusError &dbusError)
Sets this object to contain the error code given by dbusError.
QDBusReply(const QDBusReply &)=default
QDBusReply(const QDBusMessage &reply)
Automatically construct a QDBusReply object from the reply message reply, extracting the first return...
QDBusReply(const QDBusPendingReply< T > &reply)
Constructs a QDBusReply object from the pending reply message, reply.
bool isValid() const
Returns true if no error occurred; otherwise, returns false.
QDBusReply & operator=(const QDBusMessage &reply)
Makes this object contain the reply message.
QDBusReply & operator=(const QDBusPendingCall &pcall)
Makes this object contain the reply specified by the pending asynchronous call pcall.
QDBusReply & operator=(const QDBusReply &other)
Makes this object be a copy of the object other.
QDBusReply(const QDBusPendingCall &pcall)
Automatically construct a QDBusReply object from the asynchronous pending call pcall.
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
DBusConnection const char DBusError * error
QT_BEGIN_NAMESPACE Q_DBUS_EXPORT void qDBusReplyFill(const QDBusMessage &reply, QDBusError &error, QVariant &data)
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data