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

IRCConnection Class Reference

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

Collaboration diagram for IRCConnection:

Collaboration graph
[legend]
List of all members.

Signals

void messageArrived (IRCMessage *message)
void outputReady (IRCOutput output)

Public Member Functions

 IRCConnection (IRCServer *server)
void doConnect ()
void sendLine (QString line)
void sendCTCPReply (const QString &nickname, const QString &type, const QString &args)
void sendCTCPRequest (const QString &nickname, const QString &type, const QString &args)
void sendCTCPPing (const QString &nickname)
void whois (const QString &nickname)
void sendCTCPping (const QString &nickname)
void close ()
bool isConnected ()
bool isLoggedIn ()

Protected Slots

void login ()
void error (int num)
void dataReady ()
void disconnect ()

Protected Attributes

IRCServerm_server
QSocket * m_socket
bool m_connected
bool m_loggedIn

Constructor & Destructor Documentation

IRCConnection::IRCConnection IRCServer server  ) 
 

Definition at line 9 of file ircconnection.cpp.

References dataReady(), disconnect(), error(), FALSE, login(), m_connected, m_loggedIn, m_server, and m_socket.


Member Function Documentation

void IRCConnection::close  ) 
 

Definition at line 116 of file ircconnection.cpp.

References disconnect(), and m_socket.

Referenced by IRCSession::endSession().

void IRCConnection::dataReady  )  [protected, slot]
 

Definition at line 78 of file ircconnection.cpp.

References QValueList< T >::begin(), IRCServer::channels(), IRCMessage::commandNumber(), QValueList< T >::end(), IRCMessage::isNumerical(), m_loggedIn, m_server, m_socket, message, messageArrived(), OUTPUT_CLIENTMESSAGE, outputReady(), sendLine(), QStringList::split(), QString::startsWith(), tr, and TRUE.

Referenced by IRCConnection().

void IRCConnection::disconnect  )  [protected, slot]
 

Definition at line 102 of file ircconnection.cpp.

References FALSE, m_connected, m_loggedIn, OUTPUT_CONNCLOSE, outputReady(), and tr.

Referenced by close(), and IRCConnection().

void IRCConnection::doConnect  ) 
 

Definition at line 22 of file ircconnection.cpp.

References IRCServer::hostname(), m_connected, m_server, m_socket, and IRCServer::port().

Referenced by IRCSession::beginSession().

void IRCConnection::error int  num  )  [protected, slot]
 

Definition at line 98 of file ircconnection.cpp.

References OUTPUT_ERROR, outputReady(), and tr.

Referenced by IRCConnection().

bool IRCConnection::isConnected  ) 
 

Definition at line 108 of file ircconnection.cpp.

References m_connected.

Referenced by IRCSession::isSessionActive().

bool IRCConnection::isLoggedIn  ) 
 

Definition at line 112 of file ircconnection.cpp.

References m_loggedIn.

Referenced by IRCSession::endSession(), and IRCSession::isLoggedIn().

void IRCConnection::login  )  [protected, slot]
 

Definition at line 58 of file ircconnection.cpp.

References IRCServer::hostname(), hostname, m_connected, m_server, IRCServer::nick(), OUTPUT_CLIENTMESSAGE, outputReady(), IRCServer::password(), IRCServer::realname(), sendLine(), tr, TRUE, and IRCServer::username().

Referenced by IRCConnection().

void IRCConnection::messageArrived IRCMessage message  )  [signal]
 

Referenced by dataReady().

void IRCConnection::outputReady IRCOutput  output  )  [signal]
 

Referenced by dataReady(), disconnect(), error(), and login().

void IRCConnection::sendCTCPping const QString nickname  ) 
 

void IRCConnection::sendCTCPPing const QString nickname  ) 
 

Definition at line 43 of file ircconnection.cpp.

References QDateTime::currentDateTime(), QString::number(), QDateTime::secsTo(), sendCTCPRequest(), and QDateTime::setTime_t().

Referenced by IRCSession::sendCTCPPing().

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

Definition at line 35 of file ircconnection.cpp.

References sendLine().

Referenced by IRCMessageParser::parseCTCPPing(), IRCMessageParser::parseCTCPVersion(), and IRCSession::sendCTCPReply().

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

Definition at line 39 of file ircconnection.cpp.

References sendLine().

Referenced by sendCTCPPing(), and IRCSession::sendCTCPRequest().

void IRCConnection::sendLine QString  line  ) 
 

Definition at line 28 of file ircconnection.cpp.

References QString::append(), QString::left(), QString::length(), m_socket, and QString::right().

Referenced by dataReady(), IRCSession::join(), IRCSession::kick(), login(), IRCSession::mode(), IRCSession::op(), IRCMessageParser::parseLiteralPing(), IRCSession::part(), IRCSession::quit(), IRCSession::raw(), IRCSession::sendAction(), sendCTCPReply(), sendCTCPRequest(), IRCSession::sendMessage(), IRCSession::topic(), and whois().

void IRCConnection::whois const QString nickname  ) 
 

Definition at line 50 of file ircconnection.cpp.

References sendLine().

Referenced by IRCSession::whois().


Member Data Documentation

bool IRCConnection::m_connected [protected]
 

Definition at line 65 of file ircconnection.h.

Referenced by disconnect(), doConnect(), IRCConnection(), isConnected(), and login().

bool IRCConnection::m_loggedIn [protected]
 

Definition at line 66 of file ircconnection.h.

Referenced by dataReady(), disconnect(), IRCConnection(), and isLoggedIn().

IRCServer* IRCConnection::m_server [protected]
 

Definition at line 63 of file ircconnection.h.

Referenced by dataReady(), doConnect(), IRCConnection(), and login().

QSocket* IRCConnection::m_socket [protected]
 

Definition at line 64 of file ircconnection.h.

Referenced by close(), dataReady(), doConnect(), IRCConnection(), and sendLine().


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