KVIrc  4.9.2
DeveloperAPIs
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Friends | List of all members
KviIrcContext Class Reference

#include <KviIrcContext.h>

+ Inheritance diagram for KviIrcContext:

Public Types

enum  State {
  Idle, PendingReconnection, Connecting, LoggingIn,
  Connected
}
 

Public Slots

void closeAllDeadChannels ()
 
void closeAllDeadQueries ()
 

Signals

void stateChanged ()
 

Public Member Functions

KviAsynchronousConnectionDataasynchronousConnectionData ()
 
void beginAsynchronousConnect (unsigned int uDelayInMSecs)
 
void closeAllContextWindows ()
 
KviIrcConnectionconnection ()
 
void connectOrDisconnect ()
 
void connectToCurrentServer ()
 
KviConsoleWindowconsole ()
 
void createLinksWindow ()
 
void createListWindow ()
 
void destroyAsynchronousConnectionData ()
 
KviChannelWindowfindDeadChannel (const QString &name)
 
KviQueryWindowfindDeadQuery (const QString &nick)
 
KviChannelWindowfirstDeadChannel ()
 
KviQueryWindowfirstDeadQuery ()
 
unsigned int id ()
 
bool isConnected ()
 
bool isLoggingIn ()
 
KviExternalServerDataParserlinksWindow ()
 
KviExternalServerDataParserlistWindow ()
 
KviPointerList
< KviIrcDataStreamMonitor > * 
monitorList ()
 
void registerContextWindow (KviWindow *pWnd)
 
void registerDataStreamMonitor (KviIrcDataStreamMonitor *m)
 
void registerDeadChannel (KviChannelWindow *c)
 
void registerDeadQuery (KviQueryWindow *q)
 
void setAsynchronousConnectionData (KviAsynchronousConnectionData *d)
 
void setLinksWindowPointer (KviExternalServerDataParser *l)
 
void setListWindowPointer (KviExternalServerDataParser *l)
 
State state ()
 
void terminateConnectionRequest (bool bForce, const QString &szQuitMessage=QString(), bool bSimulateUnexpectedDisconnect=false)
 
bool unregisterContextWindow (KviWindow *pWnd)
 
void unregisterDataStreamMonitor (KviIrcDataStreamMonitor *m)
 
bool unregisterDeadChannel (KviChannelWindow *c)
 
bool unregisterDeadQuery (KviQueryWindow *q)
 
 ~KviIrcContext ()
 

Protected Slots

void asynchronousConnect ()
 

Protected Member Functions

void connectButtonClicked ()
 
void connectionEstablished ()
 
void connectionFailed (int iError)
 
void connectionTerminated ()
 
void destroyConnection ()
 
 KviIrcContext (KviConsoleWindow *pConsole)
 
void loginComplete ()
 
void setState (State eState)
 
virtual void timerEvent (QTimerEvent *e)
 

Protected Attributes

State m_eState
 
int m_iHeartbeatTimerId
 
KviAsynchronousConnectionDatam_pAsynchronousConnectionData
 
KviIrcConnectionm_pConnection
 
KviConsoleWindowm_pConsole
 
KviPointerList< KviWindow > * m_pContextWindows
 
KviPointerList
< KviChannelWindow > * 
m_pDeadChannels
 
KviPointerList< KviQueryWindow > * m_pDeadQueries
 
KviExternalServerDataParserm_pLinksWindow
 
KviExternalServerDataParserm_pListWindow
 
KviPointerList
< KviIrcDataStreamMonitor > * 
m_pMonitorList
 
QTimer * m_pReconnectTimer
 
KviAsynchronousConnectionDatam_pSavedAsynchronousConnectionData
 
unsigned int m_uConnectAttemptCount
 
unsigned int m_uId
 

Friends

class KviChannelWindow
 
class KviConsoleWindow
 
class KviIrcConnection
 
class KviIrcContextToolBar
 
class KviQueryWindow
 

Member Enumeration Documentation

Enumerator
Idle 
PendingReconnection 
Connecting 
LoggingIn 
Connected 

Constructor & Destructor Documentation

KviIrcContext::KviIrcContext ( KviConsoleWindow pConsole)
protected
KviIrcContext::~KviIrcContext ( )

Member Function Documentation

void KviIrcContext::asynchronousConnect ( )
protectedslot
KviAsynchronousConnectionData* KviIrcContext::asynchronousConnectionData ( )
inline
void KviIrcContext::beginAsynchronousConnect ( unsigned int  uDelayInMSecs)
void KviIrcContext::closeAllContextWindows ( )
void KviIrcContext::closeAllDeadChannels ( )
slot
void KviIrcContext::closeAllDeadQueries ( )
slot
void KviIrcContext::connectButtonClicked ( )
protected
KviIrcConnection* KviIrcContext::connection ( )
inline
void KviIrcContext::connectionEstablished ( )
protected
void KviIrcContext::connectionFailed ( int  iError)
protected

References __tr2qs, _OUTPUT_MUTE, beginAsynchronousConnect(), KviAsynchronousConnectionData::bPortIsOk, KviAsynchronousConnectionData::bSTARTTLS, KviAsynchronousConnectionData::bUseIPv6, KviAsynchronousConnectionData::bUseSSL, connection(), KviError::ConnectionRefused, KviError::ConnectionTimedOut, d, KviIrcServer::enabledSTARTTLS(), KviIrcServer::hostName(), KviError::HostUnreachable, KviIrcServer::id(), KviIrcServer::initUMode(), KviIrcConnectionUserInfo::isAway(), KviIrcServer::isIPv6(), KVI_OPTION_BOOL, KVI_OPTION_UINT, KVI_OUT_SYSTEMERROR, KVI_OUT_SYSTEMMESSAGE, KVI_OUT_SYSTEMWARNING, KviOption_boolAutoReconnectOnUnexpectedDisconnect, KviOption_uintAutoReconnectDelay, KviOption_uintMaxAutoReconnectAttempts, m_pConnection, m_pConsole, m_uConnectAttemptCount, KviError::NetworkUnreachable, KviIrcConnectionUserInfo::nickName(), KviIrcConnectionUserInfo::nickNameBeforeAway(), KviError::OperationAborted, KviWindow::output(), KviWindow::outputNoFmt(), KviIrcServer::password(), PendingReconnection, KviIrcServer::port(), KviIrcConnectionTarget::server(), setAsynchronousConnectionData(), setState(), KviAsynchronousConnectionData::szCommandToExecAfterConnect, KviAsynchronousConnectionData::szInitUMode, KviAsynchronousConnectionData::szNick, KviAsynchronousConnectionData::szPass, KviAsynchronousConnectionData::szServer, KviAsynchronousConnectionData::szServerId, KviIrcConnection::target(), KviWindow::target(), KviAsynchronousConnectionData::uPort, KviIrcConnection::userInfo(), and KviIrcServer::useSSL().

Referenced by KviIrcConnection::linkAttemptFailed().

void KviIrcContext::connectionTerminated ( )
protected

References __tr2qs, _OUTPUT_MUTE, KviIrcConnectionUserInfo::awayReason(), beginAsynchronousConnect(), KviAsynchronousConnectionData::bPortIsOk, KviAsynchronousConnectionData::bSTARTTLS, KviAsynchronousConnectionData::bUseIPv6, KviAsynchronousConnectionData::bUseSSL, KviIrcConnectionRequestQueue::clearAll(), KviIrcServer::clearReconnectInfo(), Connected, Connecting, connection(), d, KviIrcServer::enabledSTARTTLS(), KviIrcConnection::gatherChannelAndPasswordPairs(), KviIrcConnection::gatherQueryNames(), KviIrcServer::hostName(), KviIrcServer::id(), KviIrcServer::initUMode(), KviIrcServer::ip(), KviIrcConnectionUserInfo::isAway(), KviIrcServer::isIPv6(), KviIrcConnection::keepChannelsOpenAfterDisconnect(), KviIrcConnection::keepQueriesOpenAfterDisconnect(), KVI_OPTION_BOOL, KVI_OPTION_UINT, KVI_OUT_CONNECTION, KviEvent_OnIRCConnectionTerminated, KviOption_boolAutoReconnectOnUnexpectedDisconnect, KviOption_boolKeepChannelsOpenOnDisconnect, KviOption_boolKeepChannelsOpenOnUnexpectedDisconnect, KviOption_boolKeepQueriesOpenOnDisconnect, KviOption_boolKeepQueriesOpenOnUnexpectedDisconnect, KviOption_boolRejoinChannelsAfterReconnect, KviOption_boolReopenQueriesAfterReconnect, KviOption_uintAutoReconnectDelay, KVS_TRIGGER_EVENT_0_HALTED, LoggingIn, KviIrcServerReconnectInfo::m_bIsAway, m_eState, KviIrcServerReconnectInfo::m_lJoinChannels, KviIrcServerReconnectInfo::m_lOpenQueries, m_pConnection, m_pConsole, KviAsynchronousConnectionData::m_pReconnectInfo, KviIrcServerReconnectInfo::m_szAwayReason, KviIrcServerReconnectInfo::m_szNick, KviIrcServerReconnectInfo::m_szPass, KviIrcConnectionUserInfo::nickName(), KviIrcConnectionUserInfo::nickNameBeforeAway(), KviWindow::output(), KviIrcConnectionUserInfo::password(), KviIrcServer::password(), PendingReconnection, KviIrcServer::port(), KviIrcConnection::requestQueue(), KviIrcConnectionStateData::sentQuit(), setAsynchronousConnectionData(), setState(), KviIrcConnectionStateData::simulateUnexpectedDisconnect(), KviIrcConnection::stateData(), KviAsynchronousConnectionData::szInitUMode, KviAsynchronousConnectionData::szPass, KviAsynchronousConnectionData::szServer, KviAsynchronousConnectionData::szServerId, KviWindow::target(), KviAsynchronousConnectionData::uPort, KviIrcConnection::userInfo(), and KviIrcServer::useSSL().

Referenced by KviIrcConnection::linkTerminated().

void KviIrcContext::connectOrDisconnect ( )
inline
void KviIrcContext::connectToCurrentServer ( )

References __tr2qs, _KviIrcServerDefinition::bIPv6, KviAsynchronousConnectionData::bPortIsOk, _KviIrcServerDefinition::bPortIsValid, _KviIrcServerDefinition::bSSL, KviAsynchronousConnectionData::bSTARTTLS, _KviIrcServerDefinition::bSTARTTLS, KviAsynchronousConnectionData::bUseIPv6, KviAsynchronousConnectionData::bUseLastServerInContext, KviAsynchronousConnectionData::bUseSSL, KviIrcServer::clearReconnectInfo(), Connecting, KviConsoleWindow::connectionAttached(), KviIrcServerDataBase::currentNetwork(), KviProxyDataBase::currentProxy(), KviIrcNetwork::currentServer(), d, KviUserIdentityManager::defaultIdentity(), destroyAsynchronousConnectionData(), KviIrcServer::enabledSTARTTLS(), KviUserIdentityManager::findIdentity(), g_pProxyDataBase, g_pServerDataBase, KviIrcServer::hostName(), KviIrcServer::id(), KviIrcServer::initUMode(), KviUserIdentityManager::instance(), KviIrcServer::isIPv6(), KVI_OPTION_BOOL, KVI_OUT_SYSTEMERROR, KVI_OUT_SYSTEMMESSAGE, KVI_OUT_SYSTEMWARNING, KviIrcConnection, KviOption_boolUseProxyHost, m_pAsynchronousConnectionData, m_pConnection, m_pConsole, KviAsynchronousConnectionData::m_pReconnectInfo, m_pReconnectTimer, m_pSavedAsynchronousConnectionData, KviIrcServerDataBase::makeCurrentServer(), KviIrcServerDataBase::networkCount(), KviWindow::outputNoFmt(), KviIrcServer::password(), KviIrcServer::port(), KviIrcServer::proxy(), KviIrcServer::proxyServer(), KviIrcServer::reconnectInfo(), KviKvsScript::run(), KviIrcConnectionStateData::setCommandToExecAfterConnect(), KviIrcServer::setReconnectInfo(), setState(), KviIrcConnection::start(), KviIrcConnection::stateData(), KviAsynchronousConnectionData::szBindAddress, KviAsynchronousConnectionData::szCommandToExecAfterConnect, _KviIrcServerDefinition::szId, KviAsynchronousConnectionData::szInitUMode, _KviIrcServerDefinition::szInitUMode, KviAsynchronousConnectionData::szLinkFilter, _KviIrcServerDefinition::szLinkFilter, KviAsynchronousConnectionData::szNick, _KviIrcServerDefinition::szNick, KviAsynchronousConnectionData::szPass, _KviIrcServerDefinition::szPass, KviAsynchronousConnectionData::szServer, _KviIrcServerDefinition::szServer, KviAsynchronousConnectionData::szServerId, KviAsynchronousConnectionData::uPort, _KviIrcServerDefinition::uPort, KviIrcNetwork::userIdentityId(), KviIrcServer::userIdentityId(), and KviIrcServer::useSSL().

Referenced by asynchronousConnect(), and connectButtonClicked().

KviConsoleWindow* KviIrcContext::console ( )
inline
void KviIrcContext::createLinksWindow ( )
void KviIrcContext::createListWindow ( )
void KviIrcContext::destroyAsynchronousConnectionData ( )
void KviIrcContext::destroyConnection ( )
protected
KviChannelWindow * KviIrcContext::findDeadChannel ( const QString &  name)
KviQueryWindow * KviIrcContext::findDeadQuery ( const QString &  nick)
KviChannelWindow * KviIrcContext::firstDeadChannel ( )
KviQueryWindow * KviIrcContext::firstDeadQuery ( )
unsigned int KviIrcContext::id ( )
inline
bool KviIrcContext::isConnected ( )
inline
bool KviIrcContext::isLoggingIn ( )
inline
KviExternalServerDataParser* KviIrcContext::linksWindow ( )
inline
KviExternalServerDataParser* KviIrcContext::listWindow ( )
inline
void KviIrcContext::loginComplete ( )
protected

References Connected, and setState().

Referenced by KviIrcConnection::loginComplete().

KviPointerList<KviIrcDataStreamMonitor>* KviIrcContext::monitorList ( )
inline
void KviIrcContext::registerContextWindow ( KviWindow pWnd)
void KviIrcContext::registerDataStreamMonitor ( KviIrcDataStreamMonitor m)
void KviIrcContext::registerDeadChannel ( KviChannelWindow c)
void KviIrcContext::registerDeadQuery ( KviQueryWindow q)
void KviIrcContext::setAsynchronousConnectionData ( KviAsynchronousConnectionData d)
void KviIrcContext::setLinksWindowPointer ( KviExternalServerDataParser l)
inline

References l.

Referenced by LinksWindow::LinksWindow(), and LinksWindow::~LinksWindow().

void KviIrcContext::setListWindowPointer ( KviExternalServerDataParser l)
inline

References l.

Referenced by ListWindow::ListWindow(), and ListWindow::~ListWindow().

void KviIrcContext::setState ( State  eState)
protected
State KviIrcContext::state ( )
inline
void KviIrcContext::stateChanged ( )
signal

Referenced by setState().

void KviIrcContext::terminateConnectionRequest ( bool  bForce,
const QString &  szQuitMessage = QString(),
bool  bSimulateUnexpectedDisconnect = false 
)
void KviIrcContext::timerEvent ( QTimerEvent *  e)
protectedvirtual
bool KviIrcContext::unregisterContextWindow ( KviWindow pWnd)
void KviIrcContext::unregisterDataStreamMonitor ( KviIrcDataStreamMonitor m)
bool KviIrcContext::unregisterDeadChannel ( KviChannelWindow c)
bool KviIrcContext::unregisterDeadQuery ( KviQueryWindow q)

Friends And Related Function Documentation

friend class KviChannelWindow
friend
friend class KviConsoleWindow
friend
friend class KviIrcConnection
friend

Referenced by connectToCurrentServer().

friend class KviIrcContextToolBar
friend
friend class KviQueryWindow
friend

Member Data Documentation

State KviIrcContext::m_eState
protected
int KviIrcContext::m_iHeartbeatTimerId
protected
KviAsynchronousConnectionData* KviIrcContext::m_pAsynchronousConnectionData
protected
KviIrcConnection* KviIrcContext::m_pConnection
protected
KviConsoleWindow* KviIrcContext::m_pConsole
protected
KviPointerList<KviWindow>* KviIrcContext::m_pContextWindows
protected
KviPointerList<KviChannelWindow>* KviIrcContext::m_pDeadChannels
protected
KviPointerList<KviQueryWindow>* KviIrcContext::m_pDeadQueries
protected
KviExternalServerDataParser* KviIrcContext::m_pLinksWindow
protected
KviExternalServerDataParser* KviIrcContext::m_pListWindow
protected
KviPointerList<KviIrcDataStreamMonitor>* KviIrcContext::m_pMonitorList
protected
QTimer* KviIrcContext::m_pReconnectTimer
protected
KviAsynchronousConnectionData* KviIrcContext::m_pSavedAsynchronousConnectionData
protected
unsigned int KviIrcContext::m_uConnectAttemptCount
protected
unsigned int KviIrcContext::m_uId
protected

Referenced by KviIrcContext().


The documentation for this class was generated from the following files: