QDBusMessage Class Reference


Public Types

enum  { DefaultTimeout = -1, NoTimeout = INT_MAX }
enum  MessageType {
  InvalidMessage, MethodCallMessage, ReplyMessage, ErrorMessage,
  SignalMessage
}

Public Member Functions

 QDBusMessage ()
 QDBusMessage (const QDBusMessage &other)
 ~QDBusMessage ()
QDBusMessageoperator= (const QDBusMessage &other)
QString path () const
QString interface () const
QString name () const
QString sender () const
MessageType type () const
int timeout () const
void setTimeout (int ms)
DBusMessagetoDBusMessage () const
int serialNumber () const
int replySerialNumber () const

Static Public Member Functions

static QDBusMessage signal (const QString &path, const QString &interface, const QString &name)
static QDBusMessage methodCall (const QString &service, const QString &path, const QString &interface, const QString &method)
static QDBusMessage methodReply (const QDBusMessage &other)
static QDBusMessage fromDBusMessage (DBusMessage *dmsg)

Friends

class QDBusConnection

Detailed Description

Definition at line 36 of file qdbusmessage.h.


Member Function Documentation

int QDBusMessage::replySerialNumber  )  const
 

Returns the unique serial number assigned to the message that triggered this reply message.

If this message is not a reply to another message, 0 is returned.

Definition at line 201 of file qdbusmessage.cpp.

References dbus_message_get_reply_serial(), and QDBusMessagePrivate::msg.

int QDBusMessage::serialNumber  )  const
 

Returns the unique serial number assigned to this message or 0 if the message was not sent yet.

Definition at line 186 of file qdbusmessage.cpp.

References dbus_message_get_serial(), and QDBusMessagePrivate::msg.


The documentation for this class was generated from the following files:
Generated on Wed Feb 27 10:13:38 2008 for D-BUS by  doxygen 1.4.6