#include <SimpleChatWidget.h>

Public Member Functions | |
| SimpleChatWidget (SimpleChatServer &server, Wt::WContainerWidget *parent=0) | |
| Create a chat widget that will connect to the given server. | |
| ~SimpleChatWidget () | |
| Delete a chat widget. | |
| void | letLogin () |
| Show a simple login screen. | |
| bool | startChat (const Wt::WString &user) |
| Start a chat for the given user. | |
Private Member Functions | |
| void | login () |
| void | logout () |
| void | send () |
| void | updateUsers () |
| void | processChatEvent (const ChatEvent &event) |
| void | onEditBlur () |
| void | onEditFocus () |
Private Attributes | |
| SimpleChatServer & | server_ |
| Wt::WApplication * | app_ |
| Wt::WString | user_ |
| Wt::WLineEdit * | userNameEdit_ |
| Wt::WText * | statusMsg_ |
| Wt::WContainerWidget * | messages_ |
| Wt::WContainerWidget * | messageEditArea_ |
| Wt::WTextArea * | messageEdit_ |
| Wt::WPushButton * | sendButton_ |
| Wt::WContainerWidget * | userList_ |
| boost::signals::connection | eventConnection_ |
Definition at line 31 of file SimpleChatWidget.h.
| SimpleChatWidget::SimpleChatWidget | ( | SimpleChatServer & | server, | |
| Wt::WContainerWidget * | parent = 0 | |||
| ) |
Create a chat widget that will connect to the given server.
Definition at line 26 of file SimpleChatWidget.C.
| SimpleChatWidget::~SimpleChatWidget | ( | ) |
| void SimpleChatWidget::letLogin | ( | ) |
| bool SimpleChatWidget::startChat | ( | const Wt::WString & | user | ) |
Start a chat for the given user.
Returns false if the user could not login.
Definition at line 86 of file SimpleChatWidget.C.
| void SimpleChatWidget::login | ( | ) | [private] |
Definition at line 68 of file SimpleChatWidget.C.
| void SimpleChatWidget::logout | ( | ) | [private] |
Definition at line 76 of file SimpleChatWidget.C.
| void SimpleChatWidget::send | ( | ) | [private] |
Definition at line 183 of file SimpleChatWidget.C.
| void SimpleChatWidget::updateUsers | ( | ) | [private] |
Definition at line 195 of file SimpleChatWidget.C.
| void SimpleChatWidget::processChatEvent | ( | const ChatEvent & | event | ) | [private] |
Definition at line 214 of file SimpleChatWidget.C.
| void SimpleChatWidget::onEditBlur | ( | ) | [private] |
| void SimpleChatWidget::onEditFocus | ( | ) | [private] |
SimpleChatServer& SimpleChatWidget::server_ [private] |
Definition at line 53 of file SimpleChatWidget.h.
Wt::WApplication* SimpleChatWidget::app_ [private] |
Definition at line 54 of file SimpleChatWidget.h.
Wt::WString SimpleChatWidget::user_ [private] |
Definition at line 56 of file SimpleChatWidget.h.
Wt::WLineEdit* SimpleChatWidget::userNameEdit_ [private] |
Definition at line 58 of file SimpleChatWidget.h.
Wt::WText* SimpleChatWidget::statusMsg_ [private] |
Definition at line 59 of file SimpleChatWidget.h.
Wt::WContainerWidget* SimpleChatWidget::messages_ [private] |
Definition at line 61 of file SimpleChatWidget.h.
Definition at line 62 of file SimpleChatWidget.h.
Wt::WTextArea* SimpleChatWidget::messageEdit_ [private] |
Definition at line 63 of file SimpleChatWidget.h.
Wt::WPushButton* SimpleChatWidget::sendButton_ [private] |
Definition at line 64 of file SimpleChatWidget.h.
Wt::WContainerWidget* SimpleChatWidget::userList_ [private] |
Definition at line 65 of file SimpleChatWidget.h.
boost::signals::connection SimpleChatWidget::eventConnection_ [private] |
Definition at line 67 of file SimpleChatWidget.h.
1.5.6