#include <message.h>
Inherits Stanza.
Inheritance diagram for Message:

Public Types | |
| enum | MessageType { Chat = 1, Error = 2, Groupchat = 4, Headline = 8, Normal = 16, Invalid = 32 } |
Public Member Functions | |
| Message (MessageType type, const JID &to, const std::string &body=EmptyString, const std::string &subject=EmptyString, const std::string &thread=EmptyString, const std::string &xmllang=EmptyString) | |
| virtual | ~Message () |
| MessageType | subtype () const |
| const std::string | body (const std::string &lang="default") const |
| const std::string | subject (const std::string &lang="default") const |
| const std::string & | thread () const |
| void | setThread (const std::string &thread) |
| void | setID (const std::string &id) |
| const DelayedDelivery * | when () const |
| virtual Tag * | tag () const |
Jakob Schroeter <js@camaya.net>
Definition at line 33 of file message.h.
|
|
Describes the different valid message types. |
|
||||||||||||||||||||||||||||
|
Creates a Message.
Definition at line 54 of file message.cpp. |
|
|
Destructor. Definition at line 63 of file message.cpp. |
|
|
Returns the message body for the given language if available. If the requested language is not available, the default body (without a xml:lang attribute) will be returned.
|
|
|
Sets the Message's ID. Optional.
|
|
|
Sets the Stanza's thread ID. Only useful for message stanzas.
|
|
|
Returns the message subject for the given language if available. If the requested language is not available, the default subject (without a xml:lang attribute) will be returned.
|
|
|
Returns the message's type.
|
|
|
Creates a Tag representation of the Stanza. The Tag is completely independent of the Stanza and will not be updated when the Stanza is modified. Implements Stanza. Definition at line 69 of file message.cpp. |
|
|
Returns the thread ID of a message stanza.
|
|
|
Convenience function that returns a pointer to a DelayedDelivery StanzaExtension, if the message contains one.
|
1.4.1