#include <KviIrcContext.h>
Enumerator |
---|
Idle |
|
PendingReconnection |
|
Connecting |
|
LoggingIn |
|
Connected |
|
References g_uNextIrcContextId, Idle, m_eState, m_iHeartbeatTimerId, m_pAsynchronousConnectionData, m_pConnection, m_pConsole, m_pContextWindows, m_pDeadChannels, m_pDeadQueries, m_pLinksWindow, m_pListWindow, m_pMonitorList, m_pReconnectTimer, m_pSavedAsynchronousConnectionData, m_uConnectAttemptCount, and m_uId.
KviIrcContext::~KviIrcContext |
( |
| ) |
|
References closeAllContextWindows(), closeAllDeadChannels(), closeAllDeadQueries(), destroyConnection(), KviIrcDataStreamMonitor::die(), KviExternalServerDataParser::die(), KviPointerList< T >::first(), m, m_iHeartbeatTimerId, m_pAsynchronousConnectionData, m_pLinksWindow, m_pListWindow, m_pMonitorList, m_pReconnectTimer, and m_pSavedAsynchronousConnectionData.
void KviIrcContext::asynchronousConnect |
( |
| ) |
|
|
protectedslot |
void KviIrcContext::beginAsynchronousConnect |
( |
unsigned int |
uDelayInMSecs | ) |
|
void KviIrcContext::closeAllContextWindows |
( |
| ) |
|
void KviIrcContext::closeAllDeadChannels |
( |
| ) |
|
|
slot |
void KviIrcContext::closeAllDeadQueries |
( |
| ) |
|
|
slot |
void KviIrcContext::connectButtonClicked |
( |
| ) |
|
|
protected |
References __tr2qs, connection(), connectToCurrentServer(), destroyAsynchronousConnectionData(), KVI_OUT_SYSTEMERROR, m_eState, m_pConsole, m_pReconnectTimer, m_uConnectAttemptCount, KviWindow::outputNoFmt(), PendingReconnection, setState(), and terminateConnectionRequest().
Referenced by KviMainWindow::activeConnection(), KviGoAwayAction::activeContextStateChanged(), KviGoAwayAction::addToPopupMenu(), connectButtonClicked(), KviWindow::connection(), KviConsoleWindow::connectionAttached(), connectionEstablished(), connectionFailed(), connectionTerminated(), context_kvs_fnc_getSSLCertInfo(), KviStatusBar::mouseDoubleClickEvent(), KviStatusBar::setPermanentMessage(), terminateConnectionRequest(), KviStatusBarConnectionTimer::timerEvent(), KviStatusBarAwayIndicator::updateDisplay(), and KviStatusBarLagIndicator::updateDisplay().
void KviIrcContext::connectionEstablished |
( |
| ) |
|
|
protected |
References __tr2qs, KviApplication::addRecentServer(), connection(), g_pApp, KviIrcUrl::join(), KVI_OUT_CONNECTION, KviEvent_OnIRCConnectionEstablished, KVS_TRIGGER_EVENT_0_HALTED, LoggingIn, m_pConsole, m_uConnectAttemptCount, KviWindow::output(), setState(), and KviWindow::target().
Referenced by KviIrcConnection::linkEstablished().
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().
void KviIrcContext::createLinksWindow |
( |
| ) |
|
void KviIrcContext::createListWindow |
( |
| ) |
|
void KviIrcContext::destroyAsynchronousConnectionData |
( |
| ) |
|
void KviIrcContext::destroyConnection |
( |
| ) |
|
|
protected |
unsigned int KviIrcContext::id |
( |
| ) |
|
|
inline |
Referenced by dcc_kvs_fnc_ircContext(), KviWindowListButton::drawButtonLabel(), KviIrcContextDisplay::drawContents(), SocketSpyWindow::fillCaptionBuffers(), LinksWindow::fillCaptionBuffers(), ListWindow::fillCaptionBuffers(), KviTrayIconWidget::fillContextPopup(), KviApplication::findConsole(), KviApplication::findWindowByCaption(), KviQueryWindow::getBaseLogFileName(), KviTreeWindowListItemDelegate::paint(), KviIrcContextDisplay::tipRequest(), and window_kvs_fnc_list().
bool KviIrcContext::isConnected |
( |
| ) |
|
|
inline |
bool KviIrcContext::isLoggingIn |
( |
| ) |
|
|
inline |
void KviIrcContext::loginComplete |
( |
| ) |
|
|
protected |
void KviIrcContext::registerContextWindow |
( |
KviWindow * |
pWnd | ) |
|
void KviIrcContext::setState |
( |
State |
eState | ) |
|
|
protected |
References KviMainWindow::childContextStateChange(), destroyConnection(), g_pMainWindow, Idle, m_eState, m_pConsole, PendingReconnection, stateChanged(), and KviWindow::updateCaption().
Referenced by connectButtonClicked(), connectionEstablished(), connectionFailed(), connectionTerminated(), connectToCurrentServer(), and loginComplete().
State KviIrcContext::state |
( |
| ) |
|
|
inline |
Referenced by KviConnectAction::activeContextStateChanged(), KviGoAwayAction::activeContextStateChanged(), KviAction::activeContextStateChanged(), KviAction::activeWindowChanged(), KviConnectAction::addToPopupMenu(), KviGoAwayAction::addToPopupMenu(), asynchronousConnect(), KviConsoleWindow::closeEvent(), LinksWindow::connectionStateChange(), ListWindow::connectionStateChange(), KviStatusBar::mouseDoubleClickEvent(), KviIrcServerParser::parseNumeric001(), KviIrcServerParser::parseNumeric002(), KviIrcServerParser::parseNumeric003(), KviIrcServerParser::parseNumeric004(), KviIrcServerParser::parseNumeric005(), KviStatusBar::setPermanentMessage(), KviAction::setup(), KviConsoleWindow::state(), KviStatusBar::tipRequest(), and KviMenuBar::updateMainPopup().
void KviIrcContext::stateChanged |
( |
| ) |
|
|
signal |
void KviIrcContext::terminateConnectionRequest |
( |
bool |
bForce, |
|
|
const QString & |
szQuitMessage = QString() , |
|
|
bool |
bSimulateUnexpectedDisconnect = false |
|
) |
| |
References __tr2qs, KviIrcConnection::abort(), KviKvsVariant::asString(), Connected, Connecting, connection(), console(), KviIrcConnection::encodeText(), KviQString::escapeKvs(), KviKvsScript::evaluate(), KVI_ASSERT, KVI_OPTION_BOOL, KVI_OPTION_STRING, KVI_OUT_SYSTEMMESSAGE, KviEvent_OnDisconnectRequest, KviOption_boolForceBrutalQuit, KviOption_stringQuitMessage, KVS_TRIGGER_EVENT_0, LoggingIn, m_eState, m_pConsole, KviThread::msleep(), KviWindow::outputNoFmt(), PendingReconnection, KviQString::PermitFunctions, KviQString::PermitVariables, KviIrcConnection::sendFmtData(), KviIrcConnectionStateData::setSentQuit(), KviIrcConnectionStateData::setSimulateUnexpectedDisconnect(), and KviIrcConnection::stateData().
Referenced by asynchronousConnect(), KviConsoleWindow::closeEvent(), connectButtonClicked(), and KviConsoleWindow::~KviConsoleWindow().
void KviIrcContext::timerEvent |
( |
QTimerEvent * |
e | ) |
|
|
protectedvirtual |
bool KviIrcContext::unregisterContextWindow |
( |
KviWindow * |
pWnd | ) |
|
friend class KviIrcContextToolBar |
|
friend |
State KviIrcContext::m_eState |
|
protected |
int KviIrcContext::m_iHeartbeatTimerId |
|
protected |
Referenced by connectButtonClicked(), connectionEstablished(), connectionFailed(), connectionTerminated(), connectToCurrentServer(), createLinksWindow(), createListWindow(), destroyConnection(), KviIrcContext(), setState(), and terminateConnectionRequest().
QTimer* KviIrcContext::m_pReconnectTimer |
|
protected |
unsigned int KviIrcContext::m_uConnectAttemptCount |
|
protected |
unsigned int KviIrcContext::m_uId |
|
protected |
The documentation for this class was generated from the following files: