Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ChatSession Class Reference

#include <ChatSession.h>

Inheritance diagram for ChatSession:

Inheritance graph
[legend]
Collaboration diagram for ChatSession:

Collaboration graph
[legend]
List of all members.

Public Slots

void returnPressed ()
void closeSession ()
void slotLinkClicked (const QString &)
void slotHistoryUp ()
void slotHistoryDown ()
void slotNewLine ()
void slotComplete ()
void slotReconnect ()
void setDomDocument (QDomDocument *dom)
void kill (Page *)
void send (const QString &)

Signals

void textDisplayed (QWidget *)
void outputMessage (const QString &)

Public Member Functions

 ChatSession (const QString &session_name, QMtp *mtp, QWidget *parent, const char *name, QDomDocument *dom)
 ~ChatSession ()
void displayStderr (const QString &)
void displayStdout (const QString &)
const QString & sessionName () const
QMtptopLevel () const
void updateFilters ()

Private Slots

void deleteProcess ()

Private Member Functions

void escape (QString *msg)
bool filter (QString *msg)
void getInfo ()
QString caseUnsensitive (const QString &msg)
void removeUser (const QString &)
void addUser (const QString &)
void executeShellCommand (const QString &)
void createTelnetManager ()

Private Attributes

QProcess * proc
QMtpmtp
TelnetManagermng
QString login
bool login_set
bool enable_stdout
bool who_demanded
bool receiving_who
int position
QString doc_source
QStyleSheetItem * item
QAction * history_up
QAction * history_down
QAction * new_line
QAction * complete
QAction * reconnect
QStringList history
QStringList::Iterator history_iterator
QString host
QString port
QString session_name
QDomDocument * m_dom
MtpFilterm_filter
std::vector< Page * > brothers

Constructor & Destructor Documentation

ChatSession::ChatSession const QString &  session_name,
QMtp mtp,
QWidget *  parent,
const char *  name,
QDomDocument *  dom
 

Definition at line 35 of file ChatSession.cpp.

References ChatPage::chat_edit, ChatPage::chat_view, closeSession(), complete, Master::context(), createTelnetManager(), displayStderr(), doc_source, enable_stdout, history_down, history_iterator, history_up, host, item, login_set, m_dom, m_filter, mng, new_line, port, position, DomUtil::readEntry(), receiving_who, reconnect, returnPressed(), slotComplete(), slotHistoryDown(), slotHistoryUp(), slotLinkClicked(), slotNewLine(), and slotReconnect().

ChatSession::~ChatSession  ) 
 

Definition at line 113 of file ChatSession.cpp.

References brothers, and m_filter.


Member Function Documentation

void ChatSession::addUser const QString &   )  [private]
 

Definition at line 419 of file ChatSession.cpp.

References ChatPage::users_box.

Referenced by filter().

QString ChatSession::caseUnsensitive const QString &  msg  )  [private]
 

Definition at line 410 of file ChatSession.cpp.

Referenced by displayStdout().

void ChatSession::closeSession  )  [slot]
 

Definition at line 265 of file ChatSession.cpp.

References host.

Referenced by ChatSession().

void ChatSession::createTelnetManager  )  [private]
 

Definition at line 448 of file ChatSession.cpp.

References host, m_dom, mng, port, DomUtil::readEntry(), session_name, TelnetManager::setArgs(), TelnetManager::setLogin(), TelnetManager::setPassword(), and TelnetManager::start().

Referenced by ChatSession(), and slotReconnect().

void ChatSession::deleteProcess  )  [private, slot]
 

Definition at line 444 of file ChatSession.cpp.

Referenced by executeShellCommand().

void ChatSession::displayStderr const QString &   )  [virtual]
 

Implements Master.

Definition at line 120 of file ChatSession.cpp.

References host, mtp, port, and QMtp_base::system_view.

Referenced by ChatSession(), displayStdout(), and filter().

void ChatSession::displayStdout const QString &   )  [virtual]
 

Implements Master.

Definition at line 124 of file ChatSession.cpp.

References Page::append(), brothers, caseUnsensitive(), ChatPage::chat_view, CLIENT, Master::context(), displayStderr(), escape(), filter(), MtpFilter::filterOut(), getInfo(), QMtp::getNewPage(), login, login_set, m_filter, mng, mtp, outputMessage(), position, MtpContext::setVar(), textDisplayed(), and TelnetManager::writeStdin().

Referenced by TelnetManager::readStdout().

void ChatSession::escape QString *  msg  )  [private]
 

Definition at line 338 of file ChatSession.cpp.

Referenced by displayStdout().

void ChatSession::executeShellCommand const QString &   )  [private]
 

Definition at line 429 of file ChatSession.cpp.

References deleteProcess(), and proc.

Referenced by slotLinkClicked().

bool ChatSession::filter QString *  msg  )  [private]
 

Definition at line 345 of file ChatSession.cpp.

References addUser(), displayStderr(), enable_stdout, login, receiving_who, removeUser(), ChatPage::users_box, and who_demanded.

Referenced by displayStdout().

void ChatSession::getInfo  )  [private]
 

Definition at line 405 of file ChatSession.cpp.

References mng, who_demanded, and TelnetManager::writeStdin().

Referenced by displayStdout().

void ChatSession::kill Page  )  [slot]
 

Definition at line 203 of file ChatSession.cpp.

References brothers.

void ChatSession::outputMessage const QString &   )  [signal]
 

Referenced by displayStdout().

void ChatSession::removeUser const QString &   )  [private]
 

Definition at line 424 of file ChatSession.cpp.

References item, and ChatPage::users_box.

Referenced by filter().

void ChatSession::returnPressed  )  [virtual, slot]
 

Reimplemented from ChatPage.

Definition at line 211 of file ChatSession.cpp.

References ChatPage::chat_edit, history, history_iterator, login_set, and send().

Referenced by ChatSession().

void ChatSession::send const QString &   )  [virtual, slot]
 

Implements Master.

Definition at line 230 of file ChatSession.cpp.

References CHAT_BUFFER_LENGTH, MtpFilter::filterIn(), m_dom, m_filter, mng, DomUtil::readListEntry(), and TelnetManager::writeStdin().

Referenced by returnPressed().

const QString & ChatSession::sessionName  )  const
 

Definition at line 199 of file ChatSession.cpp.

References session_name.

Referenced by RemoteControlServerInfo::display().

void ChatSession::setDomDocument QDomDocument *  dom  )  [slot]
 

Definition at line 440 of file ChatSession.cpp.

References m_dom.

void ChatSession::slotComplete  )  [slot]
 

Definition at line 302 of file ChatSession.cpp.

References ChatPage::chat_edit, position, and ChatPage::users_box.

Referenced by ChatSession().

void ChatSession::slotHistoryDown  )  [slot]
 

Definition at line 286 of file ChatSession.cpp.

References ChatPage::chat_edit, history, and history_iterator.

Referenced by ChatSession().

void ChatSession::slotHistoryUp  )  [slot]
 

Definition at line 277 of file ChatSession.cpp.

References ChatPage::chat_edit, history, and history_iterator.

Referenced by ChatSession().

void ChatSession::slotLinkClicked const QString &   )  [virtual, slot]
 

Reimplemented from Master.

Definition at line 269 of file ChatSession.cpp.

References executeShellCommand(), m_dom, DomUtil::readEntry(), and DomUtil::readListEntry().

Referenced by ChatSession().

void ChatSession::slotNewLine  )  [slot]
 

Definition at line 298 of file ChatSession.cpp.

References ChatPage::chat_edit.

Referenced by ChatSession().

void ChatSession::slotReconnect  )  [slot]
 

Definition at line 333 of file ChatSession.cpp.

References createTelnetManager(), and mng.

Referenced by ChatSession().

void ChatSession::textDisplayed QWidget *   )  [signal]
 

Referenced by displayStdout().

QMtp * ChatSession::topLevel  )  const
 

Definition at line 457 of file ChatSession.cpp.

References mtp.

void ChatSession::updateFilters  ) 
 

Definition at line 461 of file ChatSession.cpp.

References Master::context(), m_dom, m_filter, and MtpFilter::setObsolete().


Member Data Documentation

std::vector<Page *> ChatSession::brothers [private]
 

Definition at line 100 of file ChatSession.h.

Referenced by displayStdout(), kill(), and ~ChatSession().

QAction * ChatSession::complete [private]
 

Definition at line 92 of file ChatSession.h.

Referenced by ChatSession().

QString ChatSession::doc_source [private]
 

Definition at line 89 of file ChatSession.h.

Referenced by ChatSession().

bool ChatSession::enable_stdout [private]
 

Definition at line 84 of file ChatSession.h.

Referenced by ChatSession(), and filter().

QStringList ChatSession::history [private]
 

Definition at line 93 of file ChatSession.h.

Referenced by returnPressed(), slotHistoryDown(), and slotHistoryUp().

QAction * ChatSession::history_down [private]
 

Definition at line 92 of file ChatSession.h.

Referenced by ChatSession().

QStringList::Iterator ChatSession::history_iterator [private]
 

Definition at line 94 of file ChatSession.h.

Referenced by ChatSession(), returnPressed(), slotHistoryDown(), and slotHistoryUp().

QAction* ChatSession::history_up [private]
 

Definition at line 92 of file ChatSession.h.

Referenced by ChatSession().

QString ChatSession::host [private]
 

Definition at line 95 of file ChatSession.h.

Referenced by ChatSession(), closeSession(), createTelnetManager(), and displayStderr().

QStyleSheetItem* ChatSession::item [private]
 

Definition at line 91 of file ChatSession.h.

Referenced by ChatSession(), and removeUser().

QString ChatSession::login [private]
 

Definition at line 82 of file ChatSession.h.

Referenced by displayStdout(), and filter().

bool ChatSession::login_set [private]
 

Definition at line 83 of file ChatSession.h.

Referenced by ChatSession(), displayStdout(), and returnPressed().

QDomDocument* ChatSession::m_dom [private]
 

Definition at line 97 of file ChatSession.h.

Referenced by ChatSession(), createTelnetManager(), send(), setDomDocument(), slotLinkClicked(), and updateFilters().

MtpFilter* ChatSession::m_filter [private]
 

Definition at line 98 of file ChatSession.h.

Referenced by ChatSession(), displayStdout(), send(), updateFilters(), and ~ChatSession().

TelnetManager* ChatSession::mng [private]
 

Definition at line 81 of file ChatSession.h.

Referenced by ChatSession(), createTelnetManager(), displayStdout(), getInfo(), send(), and slotReconnect().

QMtp* ChatSession::mtp [private]
 

Definition at line 80 of file ChatSession.h.

Referenced by displayStderr(), displayStdout(), and topLevel().

QAction * ChatSession::new_line [private]
 

Definition at line 92 of file ChatSession.h.

Referenced by ChatSession().

QString ChatSession::port [private]
 

Definition at line 95 of file ChatSession.h.

Referenced by ChatSession(), createTelnetManager(), and displayStderr().

int ChatSession::position [private]
 

Definition at line 87 of file ChatSession.h.

Referenced by ChatSession(), displayStdout(), and slotComplete().

QProcess* ChatSession::proc [private]
 

Definition at line 78 of file ChatSession.h.

Referenced by executeShellCommand().

bool ChatSession::receiving_who [private]
 

Definition at line 86 of file ChatSession.h.

Referenced by ChatSession(), and filter().

QAction * ChatSession::reconnect [private]
 

Definition at line 92 of file ChatSession.h.

Referenced by ChatSession().

QString ChatSession::session_name [private]
 

Definition at line 95 of file ChatSession.h.

Referenced by createTelnetManager(), and sessionName().

bool ChatSession::who_demanded [private]
 

Definition at line 85 of file ChatSession.h.

Referenced by filter(), and getInfo().


The documentation for this class was generated from the following files:
Generated on Sat May 10 15:09:58 2003 for qnet by doxygen1.3