The QXmppMessage class represents an XMPP message. More...
#include <QXmppMessage.h>
Public Types | |
| enum | Type { Error = 0, Normal, Chat, GroupChat, Headline } |
This enum described a message type. | |
| enum | State { None = 0, Active, Inactive, Gone, Composing, Paused } |
Public Member Functions | |
| QXmppMessage (const QString &from="", const QString &to="", const QString &body="", const QString &thread="") | |
| QString | body () const |
| void | setBody (const QString &) |
| QDateTime | stamp () const |
| Returns the message's timestamp (if any). | |
| void | setStamp (const QDateTime &stamp) |
| QXmppMessage::State | state () const |
| void | setState (QXmppMessage::State) |
| QString | subject () const |
| void | setSubject (const QString &) |
| QString | thread () const |
| Returns the message's thread. | |
| void | setThread (const QString &) |
| QXmppMessage::Type | type () const |
| void | setType (QXmppMessage::Type) |
The QXmppMessage class represents an XMPP message.
| enum QXmppMessage::State |
This enum describes a chat state as defined by XEP-0085 : Chat State Notifications.
| QXmppMessage::QXmppMessage | ( | const QString & | from = "", |
|
| const QString & | to = "", |
|||
| const QString & | body = "", |
|||
| const QString & | thread = "" | |||
| ) |
Constructs a QXmppMessage.
| from | ||
| to | ||
| body | ||
| thread |
| QString QXmppMessage::body | ( | ) | const |
Returns the message's body.
| void QXmppMessage::setBody | ( | const QString & | body | ) |
Sets the message's body.
| body |
| void QXmppMessage::setStamp | ( | const QDateTime & | stamp | ) |
Sets the message's timestamp.
| stamp |
| void QXmppMessage::setState | ( | QXmppMessage::State | state | ) |
Sets the message's chat state.
| state |
| void QXmppMessage::setSubject | ( | const QString & | subject | ) |
Sets the message's subject.
| subject |
| void QXmppMessage::setThread | ( | const QString & | thread | ) |
Sets the message's thread.
| thread |
| void QXmppMessage::setType | ( | QXmppMessage::Type | type | ) |
Sets the message's type.
| type |
| QXmppMessage::State QXmppMessage::state | ( | ) | const |
Returns the message's chat state.
| QString QXmppMessage::subject | ( | ) | const |
Returns the message's subject.
| QXmppMessage::Type QXmppMessage::type | ( | ) | const |
Returns the message's type.
1.7.1