42 #ifndef QDBUSMESSAGE_H 43 #define QDBUSMESSAGE_H 45 #include <QtDBus/qdbusmacros.h> 46 #include <QtDBus/qdbuserror.h> 47 #include <QtCore/qlist.h> 48 #include <QtCore/qvariant.h> 91 {
return createErrorReply(err.
name(), err.
message()); }
104 bool isReplyRequired()
const;
106 void setDelayedReply(
bool enable)
const;
107 bool isDelayedReply()
const;
109 void setAutoStartService(
bool enable);
110 bool autoStartService()
const;
122 #ifndef QT_NO_DEBUG_STREAM The QVariant class acts like a union for the most common Qt data types.
The QDebug class provides an output stream for debugging information.
#define QT_END_NAMESPACE
This macro expands to.
Q_DBUS_EXPORT QDebug operator<<(QDebug, const QDBusMessage &)
The QDBusError class represents an error received from the D-Bus bus or from remote applications foun...
MessageType
The possible message types:
The QString class provides a Unicode character string.
ErrorType
In order to facilitate verification of the most common D-Bus errors generated by the D-Bus implementa...
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDBusMessagePrivate * d_ptr
QString name() const
Returns this error's name.
static QDBusMessage createError(QDBusError::ErrorType type, const QString &msg)
Constructs a new DBus message for the error type type using the message msg.
static QDBusMessage createError(const QDBusError &err)
Constructs a new DBus message representing the given error.
The QDBusMessage class represents one message sent or received over the D-Bus bus.
static QString errorString(ErrorType error)
Returns the error name associated with error condition error.
QDBusMessage createReply(const QVariant &argument) const
Constructs a new DBus message representing a reply, with the given argument.
QDBusMessage createErrorReply(const QDBusError &err) const
Constructs a new DBus message representing an error reply message, from the given error object...
QString message() const
Returns the message that the callee associated with this error.