#include <messagecontent.h>
Inheritance diagram for MessageContent:

Public Member Functions | |
| MessageContent (const int iTo=0, const int iFrom=0) | |
| Constructor. | |
| MessageContent (const int iTo, const int iFrom, const std::string &sContent) | |
| Full Constructor. | |
| ~MessageContent () | |
| Destructor. | |
| void | toXML (XMLWriter &writer) const |
| Write a BaseMessage XML representation. | |
| void | processMessage () const |
| Process message instructions. | |
| void | setTo (const int iTo) |
| Sets the Message receiver ID. | |
| void | setFrom (const int iFrom) |
| Sets the Message sender ID. | |
| int | getFrom () const |
| Returns the Message sender ID. | |
| int | getTo () const |
| Returns the Message receiver ID. | |
| std::string | getContent () const |
| Returns the Message content. | |
| void | setContent (const std::string &content) |
| Sets the Message content. | |
| std::string | toString () const |
| Returns a BaseMessage string represention. | |
| MessageContent & | copy () const |
| Returns a copy of this message. | |
| bool | isMessageCrypted () const |
| Returns whether the message is crypted. | |
| void | setIsMessageCrypted (const bool bCrypted) |
| Sets whether the message is crypted. | |
Static Public Attributes | |
| static const char * | CRYPT_ATT = "isCrypted" |
Protected Attributes | |
| std::string | m_sContent |
| Message content. | |
| int | m_iFrom |
| Message sender ID. | |
| int | m_iTo |
| Message receiver ID. | |
| bool | m_bIsCrypted |
| true if message is crypted; false otherwise. | |
|
||||||||||||
|
Constructor.
|
|
||||||||||||||||
|
Full Constructor.
|
|
|
Returns a copy of this message.
Implements BaseMessage. |
|
|
Returns the Message content.
|
|
|
Returns the Message sender ID.
|
|
|
Returns the Message receiver ID.
|
|
|
Returns whether the message is crypted.
|
|
|
Sets the Message content.
|
|
|
Sets the Message sender ID.
|
|
|
Sets whether the message is crypted.
|
|
|
Sets the Message receiver ID.
|
|
|
Returns a BaseMessage string represention.
Implements BaseMessage. |
|
|
Write a BaseMessage XML representation.
Implements BaseMessage. |
|
|
Crypt attribute name. |
1.4.6