#include <KviNotifyList.h>
KviIsOnNotifyListManager::KviIsOnNotifyListManager |
( |
KviIrcConnection * |
pConnection | ) |
|
|
protected |
References connect(), m_bRunning, m_pDelayedIsOnTimer, m_pDelayedNotifyTimer, m_pDelayedUserhostTimer, m_pIsOnList, m_pNotifyList, m_pOnlineList, m_pRegUserDict, m_pUserhostList, newIsOnSession(), newNotifySession(), newUserhostSession(), KviPointerHashTable< Key, T >::setAutoDelete(), and KviPointerList< T >::setAutoDelete().
KviIsOnNotifyListManager::~KviIsOnNotifyListManager |
( |
| ) |
|
|
protected |
void KviIsOnNotifyListManager::buildIsOnList |
( |
| ) |
|
|
privateslot |
void KviIsOnNotifyListManager::buildNotifyList |
( |
| ) |
|
|
privateslot |
void KviIsOnNotifyListManager::buildRegUserDict |
( |
| ) |
|
|
privateslot |
References KviPointerHashTable< Key, T >::clear(), KviPointerHashTableIterator< Key, T >::current(), d, g_pRegisteredUserDataBase, m_pRegUserDict, KviPointerHashTable< Key, T >::replace(), u, and KviRegisteredUserDataBase::userDict().
Referenced by start().
void KviIsOnNotifyListManager::buildUserhostList |
( |
| ) |
|
|
privateslot |
References KviPointerList< T >::append(), KviPointerList< T >::clear(), KviPointerList< T >::first(), i, m_pOnlineList, m_pUserhostList, m_szUserhostString, MAX_USERHOST_ENTRIES, KviPointerList< T >::removeFirst(), s, and KviPointerList< T >::setAutoDelete().
Referenced by newUserhostSession().
void KviIsOnNotifyListManager::delayedIsOnSession |
( |
| ) |
|
|
private |
void KviIsOnNotifyListManager::delayedNotifySession |
( |
| ) |
|
|
private |
References __tr2qs, _OUTPUT_VERBOSE, KVI_OPTION_UINT, KVI_OUT_SYSTEMWARNING, KviOption_uintNotifyListCheckTimeInSecs, KviNotifyListManager::m_pConsole, m_pDelayedNotifyTimer, and KviWindow::output().
Referenced by handleIsOn(), handleUserhost(), newIsOnSession(), and newUserhostSession().
void KviIsOnNotifyListManager::delayedUserhostSession |
( |
| ) |
|
|
private |
bool KviIsOnNotifyListManager::doMatchUser |
( |
const QString & |
notifyString, |
|
|
const KviIrcMask & |
mask |
|
) |
| |
|
privateslot |
References __tr2qs, _OUTPUT_VERBOSE, KviPointerHashTable< Key, T >::find(), KviUserListView::findEntry(), KviRegisteredUserDataBase::findUserByName(), g_pRegisteredUserDataBase, KviIrcMask::host(), KVI_OUT_SYSTEMMESSAGE, KVI_OUT_SYSTEMWARNING, KviNotifyListManager::m_pConsole, m_pRegUserDict, KviIrcMask::nick(), KviConsoleWindow::notifyListView(), KviNotifyListManager::notifyOffLine(), KviNotifyListManager::notifyOnLine(), KviWindow::output(), start(), stop(), u, and KviIrcMask::user().
Referenced by handleIsOn(), and handleUserhost().
Reimplemented from KviNotifyListManager.
References __tr2qs, _OUTPUT_VERBOSE, KviPointerList< T >::append(), KviIrcConnection::channelList(), KviPointerList< T >::clear(), KviWindow::connection(), KviNotifyListManager::console(), KviIrcConnection::decodeText(), delayedIsOnSession(), delayedNotifySession(), delayedUserhostSession(), doMatchUser(), KviQString::equalCI(), KviIrcUserDataBase::find(), KviUserListView::findEntry(), KviPointerList< T >::first(), KviCString::hasData(), KviPointerList< T >::isEmpty(), kvi_extractToken(), KVI_OPTION_BOOL, KVI_OUT_SYSTEMMESSAGE, KviOption_boolNotifyListSendUserhostForOnlineUsers, l, KviLagMeter::lagCheckComplete(), KviIrcConnection::lagMeter(), m_bExpectingIsOn, KviNotifyListManager::m_pConnection, KviNotifyListManager::m_pConsole, m_pIsOnList, m_pNotifyList, m_pOnlineList, KviPointerList< T >::next(), KviConsoleWindow::notifyListView(), KviNotifyListManager::notifyOffLine(), KviWindow::output(), KviCString::ptr(), KviPointerList< T >::removeFirst(), KviPointerList< T >::removeRef(), s, KviPointerList< T >::setAutoDelete(), KviIrcMessage::trailing(), and KviIrcConnection::userDataBase().
bool KviIsOnNotifyListManager::handleUserhost |
( |
KviIrcMessage * |
msg | ) |
|
|
protectedvirtual |
Reimplemented from KviNotifyListManager.
References __tr2qs, _OUTPUT_VERBOSE, KviPointerList< T >::append(), KviCString::cutLeft(), KviCString::cutRight(), KviIrcConnection::decodeText(), delayedIsOnSession(), delayedNotifySession(), delayedUserhostSession(), doMatchUser(), KviQString::equalCI(), KviCString::findFirstIdx(), KviPointerList< T >::first(), KviCString::firstCharIs(), KviCString::hasData(), KviPointerList< T >::isEmpty(), kvi_extractToken(), KVI_OUT_SYSTEMMESSAGE, KVI_OUT_SYSTEMWARNING, KviLagMeter::lagCheckComplete(), KviIrcConnection::lagMeter(), KviCString::lastCharIs(), KviCString::left(), m_bExpectingUserhost, KviNotifyListManager::m_pConnection, KviNotifyListManager::m_pConsole, m_pNotifyList, m_pOnlineList, m_pUserhostList, KviPointerList< T >::next(), KviWindow::output(), KviCString::ptr(), KviPointerList< T >::removeFirst(), KviPointerList< T >::removeRef(), s, KviPointerList< T >::setAutoDelete(), szHost, and KviIrcMessage::trailing().
void KviIsOnNotifyListManager::newIsOnSession |
( |
| ) |
|
|
privateslot |
void KviIsOnNotifyListManager::newNotifySession |
( |
| ) |
|
|
privateslot |
References __tr2qs, _OUTPUT_VERBOSE, buildNotifyList(), KviPointerList< T >::isEmpty(), KVI_OUT_SYSTEMMESSAGE, KviNotifyListManager::m_pConsole, m_pNotifyList, newIsOnSession(), KviWindow::output(), and stop().
Referenced by KviIsOnNotifyListManager(), and start().
void KviIsOnNotifyListManager::newUserhostSession |
( |
| ) |
|
|
privateslot |
References __tr2qs, buildUserhostList(), delayedIsOnSession(), delayedNotifySession(), delayedUserhostSession(), KviPointerList< T >::isEmpty(), KVI_OUT_SYSTEMWARNING, KviNotifyListManager::m_pConsole, m_pNotifyList, m_pOnlineList, m_pUserhostList, KviWindow::output(), and sendUserhost().
Referenced by KviIsOnNotifyListManager().
void KviIsOnNotifyListManager::sendIsOn |
( |
| ) |
|
|
privateslot |
References __tr2qs, _OUTPUT_PARANOIC, KviIrcConnection::encodeText(), KVI_OUT_SYSTEMMESSAGE, KviLagMeter::lagCheckRegister(), KviIrcConnection::lagMeter(), m_bExpectingIsOn, KviNotifyListManager::m_pConnection, KviNotifyListManager::m_pConsole, m_szIsOnString, KviWindow::output(), and KviIrcConnection::sendFmtData().
Referenced by newIsOnSession().
void KviIsOnNotifyListManager::sendUserhost |
( |
| ) |
|
|
privateslot |
References __tr2qs, _OUTPUT_PARANOIC, KviIrcConnection::encodeText(), KVI_OUT_SYSTEMMESSAGE, KviLagMeter::lagCheckRegister(), KviIrcConnection::lagMeter(), m_bExpectingUserhost, KviNotifyListManager::m_pConnection, KviNotifyListManager::m_pConsole, m_szUserhostString, KviWindow::output(), and KviIrcConnection::sendFmtData().
Referenced by newUserhostSession().
void KviIsOnNotifyListManager::start |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from KviNotifyListManager.
References __tr2qs, _OUTPUT_VERBOSE, buildRegUserDict(), KviIrcConnection::currentNickName(), KviPointerHashTable< Key, T >::isEmpty(), KVI_OUT_SYSTEMMESSAGE, m_bExpectingIsOn, m_bExpectingUserhost, m_bRunning, KviNotifyListManager::m_pConnection, KviNotifyListManager::m_pConsole, m_pRegUserDict, newNotifySession(), KviConsoleWindow::notifyListView(), KviWindow::output(), KviUserListView::partAllButOne(), and stop().
Referenced by doMatchUser().
void KviIsOnNotifyListManager::stop |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from KviNotifyListManager.
References KviPointerHashTable< Key, T >::clear(), KviPointerList< T >::clear(), KviIrcConnection::currentNickName(), KviLagMeter::lagCheckAbort(), KviIrcConnection::lagMeter(), m_bRunning, KviNotifyListManager::m_pConnection, KviNotifyListManager::m_pConsole, m_pDelayedIsOnTimer, m_pDelayedNotifyTimer, m_pDelayedUserhostTimer, m_pIsOnList, m_pNotifyList, m_pOnlineList, m_pRegUserDict, m_pUserhostList, m_szIsOnString, m_szUserhostString, KviConsoleWindow::notifyListView(), and KviUserListView::partAllButOne().
Referenced by doMatchUser(), newNotifySession(), start(), and ~KviIsOnNotifyListManager().
bool KviIsOnNotifyListManager::m_bExpectingIsOn |
|
private |
bool KviIsOnNotifyListManager::m_bExpectingUserhost |
|
private |
bool KviIsOnNotifyListManager::m_bRunning |
|
private |
QTimer* KviIsOnNotifyListManager::m_pDelayedIsOnTimer |
|
private |
QTimer* KviIsOnNotifyListManager::m_pDelayedNotifyTimer |
|
private |
QTimer* KviIsOnNotifyListManager::m_pDelayedUserhostTimer |
|
private |
QString KviIsOnNotifyListManager::m_szIsOnString |
|
private |
QString KviIsOnNotifyListManager::m_szUserhostString |
|
private |
The documentation for this class was generated from the following files: