A self-contained chat widget.
More...
#include <SimpleChatWidget.h>
A self-contained chat widget.
Definition at line 34 of file SimpleChatWidget.h.
Create a chat widget that will connect to the given server.
Definition at line 28 of file SimpleChatWidget.C.
SimpleChatWidget::~SimpleChatWidget |
( |
) | |
|
void SimpleChatWidget::changeName |
( |
const Wt::WString & |
name) | |
|
|
private |
void SimpleChatWidget::connect |
( |
) | |
|
void SimpleChatWidget::disconnect |
( |
) | |
|
void SimpleChatWidget::letLogin |
( |
) | |
|
bool SimpleChatWidget::loggedIn |
( |
) | |
const |
|
protected |
void SimpleChatWidget::login |
( |
) | |
|
|
private |
void SimpleChatWidget::logout |
( |
) | |
|
void SimpleChatWidget::newMessage |
( |
) | |
|
|
protectedvirtual |
void SimpleChatWidget::processChatEvent |
( |
const ChatEvent & |
event) | |
|
|
private |
Definition at line 174 of file SimpleChatWidget.C.
176 if (flags & RenderFull) {
182 +
messages_->jsRef() +
".scrollHeight;}, 0);");
186 WContainerWidget::render(flags);
void SimpleChatWidget::send |
( |
) | |
|
|
private |
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 189 of file SimpleChatWidget.C.
211 messages_->setOverflow(WContainerWidget::OverflowAuto);
212 userList_->setOverflow(WContainerWidget::OverflowAuto);
232 (
"function(o, e) { setTimeout(function() {"
257 joinMsg->bindWidget(
"name", nameEdit);
270 if (!logoutButton->parent())
void SimpleChatWidget::updateUser |
( |
) | |
|
|
private |
void SimpleChatWidget::updateUsers |
( |
) | |
|
|
protectedvirtual |
Reimplemented in PopupChatWidget.
Definition at line 294 of file SimpleChatWidget.C.
304 for (SimpleChatServer::UserSet::iterator i = users.begin();
305 i != users.end(); ++i) {
309 UserMap::const_iterator j = oldUsers.find(*i);
310 if (j != oldUsers.end())
int SimpleChatWidget::userCount |
( |
) | |
|
|
inline |
const Wt::WString& SimpleChatWidget::userName |
( |
) | |
const |
|
inline |
bool SimpleChatWidget::loggedIn_ |
|
private |
The documentation for this class was generated from the following files: