Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

IRCSession Class Reference

#include </home/clem/local/src/opie/noncore/net/opieirc/ircsession.h>

Collaboration diagram for IRCSession:

Collaboration graph
[legend]
List of all members.

Signals

void outputReady (IRCOutput output)
void updateChannels ()

Public Member Functions

 IRCSession (QObject *parent, IRCServer *server)
 ~IRCSession ()
void join (QString channel)
void quit (QString message)
void quit ()
void raw (QString message)
void topic (IRCChannel *channel, QString message)
void mode (IRCChannel *channel, QString message)
void mode (IRCPerson *person, QString message)
void mode (QString message)
void part (IRCChannel *channel)
void op (IRCChannel *channel, IRCPerson *person)
void kick (IRCChannel *channel, IRCPerson *person)
void kick (IRCChannel *channel, IRCPerson *person, QString message)
void beginSession ()
bool isSessionActive ()
void endSession ()
bool isLoggedIn ()
void sendMessage (IRCPerson *person, QString message)
void sendMessage (IRCChannel *channel, QString message)
void sendAction (IRCPerson *person, QString message)
void sendAction (IRCChannel *channel, QString message)
void updateNickname (const QString &oldNickname, const QString &newNickname)
void setValidUsermodes (const QString &modes)
void setValidChannelmodes (const QString &modes)
void whois (const QString &nickname)
void sendCTCPPing (const QString &nickname)
void sendCTCPRequest (const QString &nickname, const QString &type, const QString &args)
void sendCTCPReply (const QString &nickname, const QString &type, const QString &args)
IRCChannelgetChannel (QString channelname)
IRCPersongetPerson (QString nickname)

Protected Slots

void handleMessage (IRCMessage *message)

Protected Member Functions

void addPerson (IRCPerson *person)
void addChannel (IRCChannel *channel)
void removeChannel (IRCChannel *channel)
void removePerson (IRCPerson *person)
void getChannelsByPerson (IRCPerson *person, QList< IRCChannel > &channels)

Protected Attributes

IRCServerm_server
IRCConnectionm_connection
IRCMessageParserm_parser
QList< IRCChannelm_channels
QList< IRCPersonm_people
QString m_validUsermodes
QString m_validChannelmodes

Friends

class IRCMessageParser

Constructor & Destructor Documentation

IRCSession::IRCSession QObject *  parent,
IRCServer server
 

Definition at line 7 of file ircsession.cpp.

References handleMessage(), IRCMessageParser, m_connection, m_parser, m_server, and outputReady().

IRCSession::~IRCSession  ) 
 

Definition at line 18 of file ircsession.cpp.

References m_channels, m_connection, m_parser, m_people, and TRUE.


Member Function Documentation

void IRCSession::addChannel IRCChannel channel  )  [protected]
 

Definition at line 186 of file ircsession.cpp.

References m_channels.

Referenced by IRCMessageParser::parseLiteralJoin().

void IRCSession::addPerson IRCPerson person  )  [protected]
 

Definition at line 182 of file ircsession.cpp.

References m_people.

Referenced by IRCMessageParser::parseCTCPAction(), IRCMessageParser::parseCTCPPing(), IRCMessageParser::parseLiteralJoin(), IRCMessageParser::parseLiteralPrivMsg(), and IRCMessageParser::parseNumericalNames().

void IRCSession::beginSession  ) 
 

Definition at line 27 of file ircsession.cpp.

References IRCConnection::doConnect(), and m_connection.

Referenced by IRCServerTab::doConnect().

void IRCSession::endSession  ) 
 

Definition at line 99 of file ircsession.cpp.

References APP_VERSION, IRCConnection::close(), IRCConnection::isLoggedIn(), m_connection, and quit().

Referenced by IRCMessageParser::parseNumericalNicknameInUse(), and IRCServerTab::remove().

IRCChannel * IRCSession::getChannel QString  channelname  ) 
 

Definition at line 153 of file ircsession.cpp.

References m_channels.

Referenced by IRCMessageParser::parseCTCPAction(), IRCMessageParser::parseCTCPPing(), IRCMessageParser::parseLiteralJoin(), IRCMessageParser::parseLiteralKick(), IRCMessageParser::parseLiteralMode(), IRCMessageParser::parseLiteralPart(), IRCMessageParser::parseLiteralPrivMsg(), IRCMessageParser::parseLiteralTopic(), IRCMessageParser::parseNumericalEndOfNames(), IRCMessageParser::parseNumericalNames(), and IRCMessageParser::parseNumericalTopic().

void IRCSession::getChannelsByPerson IRCPerson person,
QList< IRCChannel > &  channels
[protected]
 

Definition at line 173 of file ircsession.cpp.

References m_channels, and IRCPerson::nick().

Referenced by IRCMessageParser::parseLiteralQuit(), and updateNickname().

IRCPerson * IRCSession::getPerson QString  nickname  ) 
 

Definition at line 163 of file ircsession.cpp.

References m_people.

Referenced by IRCMessageParser::parseCTCPAction(), IRCMessageParser::parseCTCPPing(), IRCMessageParser::parseLiteralJoin(), IRCMessageParser::parseLiteralPrivMsg(), IRCMessageParser::parseLiteralQuit(), IRCMessageParser::parseNumericalNames(), and updateNickname().

void IRCSession::handleMessage IRCMessage message  )  [protected, slot]
 

Definition at line 198 of file ircsession.cpp.

References m_parser, and IRCMessageParser::parse().

Referenced by IRCSession().

bool IRCSession::isLoggedIn  ) 
 

Definition at line 95 of file ircsession.cpp.

References IRCConnection::isLoggedIn(), and m_connection.

Referenced by IRCMessageParser::parseNumericalNicknameInUse().

bool IRCSession::isSessionActive  ) 
 

Definition at line 91 of file ircsession.cpp.

References IRCConnection::isConnected(), and m_connection.

Referenced by IRCServerTab::remove().

void IRCSession::join QString  channel  ) 
 

Definition at line 31 of file ircsession.cpp.

References m_connection, and IRCConnection::sendLine().

Referenced by IRCServerTab::executeCommand().

void IRCSession::kick IRCChannel channel,
IRCPerson person,
QString  message
 

Definition at line 71 of file ircsession.cpp.

References IRCChannel::channelname(), m_connection, IRCPerson::nick(), and IRCConnection::sendLine().

void IRCSession::kick IRCChannel channel,
IRCPerson person
 

Definition at line 63 of file ircsession.cpp.

References m_connection, IRCPerson::nick(), and IRCConnection::sendLine().

Referenced by IRCServerTab::executeCommand().

void IRCSession::mode QString  message  ) 
 

Definition at line 55 of file ircsession.cpp.

References m_connection, and IRCConnection::sendLine().

void IRCSession::mode IRCPerson person,
QString  message
 

Definition at line 51 of file ircsession.cpp.

References m_connection, IRCPerson::nick(), and IRCConnection::sendLine().

void IRCSession::mode IRCChannel channel,
QString  message
 

Definition at line 47 of file ircsession.cpp.

References IRCChannel::channelname(), m_connection, and IRCConnection::sendLine().

Referenced by IRCServerTab::executeCommand().

void IRCSession::op IRCChannel channel,
IRCPerson person
 

Definition at line 67 of file ircsession.cpp.

References IRCChannel::channelname(), m_connection, IRCPerson::nick(), and IRCConnection::sendLine().

Referenced by IRCServerTab::executeCommand().

void IRCSession::outputReady IRCOutput  output  )  [signal]
 

Referenced by IRCSession(), and updateNickname().

void IRCSession::part IRCChannel channel  ) 
 

Definition at line 106 of file ircsession.cpp.

References APP_VERSION, IRCChannel::channelname(), m_connection, and IRCConnection::sendLine().

void IRCSession::quit  ) 
 

Definition at line 35 of file ircsession.cpp.

References m_connection, and IRCConnection::sendLine().

Referenced by endSession().

void IRCSession::quit QString  message  ) 
 

Definition at line 39 of file ircsession.cpp.

References m_connection, and IRCConnection::sendLine().

Referenced by IRCServerTab::executeCommand().

void IRCSession::raw QString  message  ) 
 

Definition at line 59 of file ircsession.cpp.

References m_connection, and IRCConnection::sendLine().

Referenced by IRCServerTab::executeCommand().

void IRCSession::removeChannel IRCChannel channel  )  [protected]
 

Definition at line 190 of file ircsession.cpp.

References m_channels.

Referenced by IRCMessageParser::parseLiteralKick(), and IRCMessageParser::parseLiteralPart().

void IRCSession::removePerson IRCPerson person  )  [protected]
 

Definition at line 194 of file ircsession.cpp.

References m_people.

Referenced by IRCMessageParser::parseLiteralQuit().

void IRCSession::sendAction IRCChannel channel,
QString  message
 

Definition at line 83 of file ircsession.cpp.

References IRCChannel::channelname(), m_connection, and IRCConnection::sendLine().

void IRCSession::sendAction IRCPerson person,
QString  message
 

Definition at line 87 of file ircsession.cpp.

References m_connection, IRCPerson::nick(), and IRCConnection::sendLine().

Referenced by IRCServerTab::executeCommand().

void IRCSession::sendCTCPPing const QString nickname  ) 
 

Definition at line 206 of file ircsession.cpp.

References m_connection, and IRCConnection::sendCTCPPing().

void IRCSession::sendCTCPReply const QString nickname,
const QString type,
const QString args
 

Definition at line 214 of file ircsession.cpp.

References m_connection, and IRCConnection::sendCTCPReply().

void IRCSession::sendCTCPRequest const QString nickname,
const QString type,
const QString args
 

Definition at line 210 of file ircsession.cpp.

References m_connection, and IRCConnection::sendCTCPRequest().

void IRCSession::sendMessage IRCChannel channel,
QString  message
 

Definition at line 79 of file ircsession.cpp.

References IRCChannel::channelname(), m_connection, and IRCConnection::sendLine().

void IRCSession::sendMessage IRCPerson person,
QString  message
 

Definition at line 75 of file ircsession.cpp.

References m_connection, IRCPerson::nick(), and IRCConnection::sendLine().

Referenced by IRCServerTab::executeCommand().

void IRCSession::setValidChannelmodes const QString modes  ) 
 

Definition at line 114 of file ircsession.cpp.

References m_validChannelmodes.

Referenced by IRCMessageParser::parseNumericalServerFeatures().

void IRCSession::setValidUsermodes const QString modes  ) 
 

Definition at line 110 of file ircsession.cpp.

References m_validUsermodes.

Referenced by IRCMessageParser::parseNumericalServerFeatures().

void IRCSession::topic IRCChannel channel,
QString  message
 

Definition at line 43 of file ircsession.cpp.

References m_connection, and IRCConnection::sendLine().

void IRCSession::updateChannels  )  [signal]
 

Referenced by updateNickname().

void IRCSession::updateNickname const QString oldNickname,
const QString newNickname
 

Definition at line 118 of file ircsession.cpp.

References IRCOutput::addParam(), getChannelsByPerson(), getPerson(), m_channels, m_server, IRCServer::nick(), output, OUTPUT_ERROR, OUTPUT_NICKCHANGE, outputReady(), IRCServer::setNick(), tr, and updateChannels().

Referenced by IRCMessageParser::parseLiteralNick().

void IRCSession::whois const QString nickname  ) 
 

Definition at line 202 of file ircsession.cpp.

References m_connection, and IRCConnection::whois().


Friends And Related Function Documentation

friend class IRCMessageParser [friend]
 

Definition at line 40 of file ircsession.h.

Referenced by IRCSession().


Member Data Documentation

QList<IRCChannel> IRCSession::m_channels [protected]
 

Definition at line 90 of file ircsession.h.

Referenced by addChannel(), getChannel(), getChannelsByPerson(), removeChannel(), updateNickname(), and ~IRCSession().

IRCConnection* IRCSession::m_connection [protected]
 

Definition at line 88 of file ircsession.h.

Referenced by beginSession(), endSession(), IRCSession(), isLoggedIn(), isSessionActive(), join(), kick(), mode(), op(), IRCMessageParser::parseCTCPPing(), IRCMessageParser::parseCTCPVersion(), IRCMessageParser::parseLiteralPing(), part(), quit(), raw(), sendAction(), sendCTCPPing(), sendCTCPReply(), sendCTCPRequest(), sendMessage(), topic(), whois(), and ~IRCSession().

IRCMessageParser* IRCSession::m_parser [protected]
 

Definition at line 89 of file ircsession.h.

Referenced by handleMessage(), IRCSession(), and ~IRCSession().

QList<IRCPerson> IRCSession::m_people [protected]
 

Definition at line 91 of file ircsession.h.

Referenced by addPerson(), getPerson(), removePerson(), and ~IRCSession().

IRCServer* IRCSession::m_server [protected]
 

Definition at line 87 of file ircsession.h.

Referenced by IRCSession(), IRCMessageParser::parseCTCPAction(), IRCMessageParser::parseCTCPPing(), IRCMessageParser::parseLiteralJoin(), IRCMessageParser::parseLiteralKick(), IRCMessageParser::parseLiteralPart(), IRCMessageParser::parseLiteralPrivMsg(), IRCMessageParser::parseNumericalServerName(), and updateNickname().

QString IRCSession::m_validChannelmodes [protected]
 

Definition at line 93 of file ircsession.h.

Referenced by setValidChannelmodes().

QString IRCSession::m_validUsermodes [protected]
 

Definition at line 92 of file ircsession.h.

Referenced by setValidUsermodes().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:36:48 2005 for OPIE by  doxygen 1.4.2