#include <SimpleChatServer.h>
Public Types | |
enum | Type { Login, Logout, Message } |
Enumeration for the event type. More... | |
Public Member Functions | |
Type | type () const |
Get the event type. | |
const Wt::WString & | user () const |
Get the user who caused the event. | |
const Wt::WString & | message () const |
Get the message of the event. | |
const Wt::WString | formattedHTML (const Wt::WString &user) const |
Get the message formatted as HTML, rendered for the given user. | |
Private Member Functions | |
ChatEvent (const Wt::WString &user, const Wt::WString &message) | |
ChatEvent (Type type, const Wt::WString &user) | |
Private Attributes | |
Type | type_ |
Wt::WString | user_ |
Wt::WString | message_ |
Friends | |
class | SimpleChatServer |
Definition at line 24 of file SimpleChatServer.h.
enum ChatEvent::Type |
ChatEvent::ChatEvent | ( | const Wt::WString & | user, | |
const Wt::WString & | message | |||
) | [inline, private] |
Definition at line 55 of file SimpleChatServer.h.
ChatEvent::ChatEvent | ( | Type | type, | |
const Wt::WString & | user | |||
) | [inline, private] |
Definition at line 59 of file SimpleChatServer.h.
Type ChatEvent::type | ( | ) | const [inline] |
const Wt::WString& ChatEvent::user | ( | ) | const [inline] |
const Wt::WString& ChatEvent::message | ( | ) | const [inline] |
const WString ChatEvent::formattedHTML | ( | const Wt::WString & | user | ) | const |
Get the message formatted as HTML, rendered for the given user.
Definition at line 14 of file SimpleChatServer.C.
friend class SimpleChatServer [friend] |
Definition at line 63 of file SimpleChatServer.h.
Type ChatEvent::type_ [private] |
Definition at line 48 of file SimpleChatServer.h.
Wt::WString ChatEvent::user_ [private] |
Definition at line 49 of file SimpleChatServer.h.
Wt::WString ChatEvent::message_ [private] |
Definition at line 50 of file SimpleChatServer.h.