Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Related Pages

DBusQt::Message Class Reference


Public Member Functions

 Message (int messageType)
 Message (DBusMessage *)
 Message (const QString &service, const QString &path, const QString &interface, const QString &method)
 Constructs a new Message with the given service and name.
 Message (const Message &replayingTo)
 Constructs a message that is a reply to some other message.
 Message (const QString &path, const QString &interface, const QString &name)
 Message (const Message &replayingTo, const QString &errorName, const QString &errorMessage)
Message operator= (const Message &other)
virtual ~Message ()
 Destructs message.
int type () const
void setPath (const QString &)
QString path () const
void setInterface (const QString &)
QString interface () const
void setMember (const QString &)
QString member () const
void setErrorName (const QString &)
QString errorName () const
void setDestination (const QString &)
QString destination () const
bool setSender (const QString &sender)
 Sets the message sender.
QString sender () const
 Returns sender of this message.
QString signature () const
iterator begin () const
 Returns the starting iterator for the fields of this message.
iterator end () const
 Returns the ending iterator for the fields of this message.
QVariant at (int i)
 Returns the field at position i.
Messageoperator<< (bool)
Messageoperator<< (Q_INT8)
Messageoperator<< (Q_INT32)
Messageoperator<< (Q_UINT32)
Messageoperator<< (Q_INT64)
Messageoperator<< (Q_UINT64)
Messageoperator<< (double)
Messageoperator<< (const QString &)
Messageoperator<< (const QVariant &)

Protected Member Functions

DBusMessagemessage () const
 The underlying DBusMessage of this class.

Friends

class Connection

Data Structures

class  iterator
struct  Private

Detailed Description

Definition at line 34 of file message.h.


Constructor & Destructor Documentation

DBusQt::Message::Message const QString &  service,
const QString &  path,
const QString &  interface,
const QString &  method
 

Constructs a new Message with the given service and name.

Parameters:
service service service that the message should be sent to
name name of the message

Definition at line 322 of file message.cpp.

References dbus_message_new_method_call(), and DBusQt::Message::Private::msg.

DBusQt::Message::Message const Message replayingTo  ) 
 

Constructs a message that is a reply to some other message.

Parameters:
name the name of the message
replayingTo original_message the message which the created message is a reply to.

Definition at line 337 of file message.cpp.

References d, dbus_message_new_method_return(), and DBusQt::Message::Private::msg.


Member Function Documentation

QVariant DBusQt::Message::at int  i  ) 
 

Returns the field at position i.

Parameters:
i position of the wanted field
Returns:
QVariant at position i or an empty QVariant

Definition at line 485 of file message.cpp.

References end(), and DBusQt::Message::Private::msg.

Message::iterator DBusQt::Message::begin  )  const
 

Returns the starting iterator for the fields of this message.

Returns:
starting iterator

Definition at line 463 of file message.cpp.

References DBusQt::Message::Private::msg.

Message::iterator DBusQt::Message::end  )  const
 

Returns the ending iterator for the fields of this message.

Returns:
ending iterator

Definition at line 474 of file message.cpp.

Referenced by at().

DBusMessage * DBusQt::Message::message  )  const [protected]
 

The underlying DBusMessage of this class.

Returns:
DBusMessage pointer.

Definition at line 502 of file message.cpp.

References DBusQt::Message::Private::msg.

QString DBusQt::Message::sender  )  const
 

Returns sender of this message.

Returns:
sender

Definition at line 446 of file message.cpp.

References dbus_message_get_sender(), and DBusQt::Message::Private::msg.

bool DBusQt::Message::setSender const QString &  sender  ) 
 

Sets the message sender.

Parameters:
sender the sender
Returns:
false if unsuccessful

Definition at line 436 of file message.cpp.

References dbus_message_set_sender(), and DBusQt::Message::Private::msg.


The documentation for this class was generated from the following files:
Generated on Tue Sep 13 01:28:09 2005 for D-BUS by  doxygen 1.4.4