56 if (qobject_cast<QDBusAbstractAdaptor *>(obj))
61 void *
ptr = obj->qt_metacast(
"QDBusContext");
65 q_ptr->
d_ptr = newContext;
const QDBusMessage & message() const
Returns the message that generated this call.
#define QT_END_NAMESPACE
This macro expands to.
bool send(const QDBusMessage &message) const
Sends the message over this connection, without waiting for a reply.
bool isDelayedReply() const
Returns true if this call will have a delayed reply.
The QDBusContext class allows slots to determine the D-Bus context of the calls.
void setDelayedReply(bool enable) const
Sets whether the message will be replied later (if enable is true) or if an automatic reply should be...
The QString class provides a Unicode character string.
~QDBusContext()
An empty destructor.
The QObject class is the base class of all Qt objects.
ErrorType
In order to facilitate verification of the most common D-Bus errors generated by the D-Bus implementa...
bool calledFromDBus() const
Returns true if we are processing a D-Bus call.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QDBusConnection connection
const T * ptr(const T &t)
void sendErrorReply(const QString &name, const QString &msg=QString()) const
Sends an error name as a reply to the caller.
bool isDelayedReply() const
Returns the delayed reply flag, as set by setDelayedReply().
The QDBusConnection class represents a connection to the D-Bus bus daemon.
QObject * parent() const
Returns a pointer to the parent object.
static QDBusContextPrivate * set(QObject *obj, QDBusContextPrivate *newContext)
The QDBusMessage class represents one message sent or received over the D-Bus bus.
void setDelayedReply(bool enable) const
Sets whether this call will have a delayed reply or not.
QDBusContext()
Constructs an empty QDBusContext.
const QDBusMessage & message
QDBusConnection connection() const
Returns the connection from which this call was received.
QDBusContextPrivate * d_ptr