Exemplo n.º 1
0
KviIsOnNotifyListManager::KviIsOnNotifyListManager(KviIrcConnection * pConnection)
    : KviNotifyListManager(pConnection)
{
	connect(&m_pDelayedNotifyTimer, SIGNAL(timeout()), this, SLOT(newNotifySession()));
	connect(&m_pDelayedIsOnTimer, SIGNAL(timeout()), this, SLOT(newIsOnSession()));
	connect(&m_pDelayedUserhostTimer, SIGNAL(timeout()), this, SLOT(newUserhostSession()));
}
Exemplo n.º 2
0
void KviIsOnNotifyListManager::newNotifySession()
{
	buildNotifyList();
	if(m_pNotifyList->isEmpty())
	{
		if(_OUTPUT_VERBOSE)
			m_pConsole->output(KVI_OUT_SYSTEMMESSAGE, __tr2qs("Notify list: Notify list empty, quitting"));
		stop();
		return;
	}
	newIsOnSession();
}
Exemplo n.º 3
0
KviIsOnNotifyListManager::KviIsOnNotifyListManager(KviIrcConnection * pConnection)
    : KviNotifyListManager(pConnection)
{
	m_pRegUserDict = new KviPointerHashTable<QString, QString>(17, false); // case insensitive, copy keys
	m_pRegUserDict->setAutoDelete(true);
	m_pNotifyList = new KviPointerList<QString>;
	m_pNotifyList->setAutoDelete(true);
	m_pIsOnList = new KviPointerList<QString>;
	m_pIsOnList->setAutoDelete(true);
	m_pOnlineList = new KviPointerList<QString>;
	m_pOnlineList->setAutoDelete(true);
	m_pUserhostList = new KviPointerList<QString>;
	m_pUserhostList->setAutoDelete(true);
	m_pDelayedNotifyTimer = new QTimer();
	connect(m_pDelayedNotifyTimer, SIGNAL(timeout()), this, SLOT(newNotifySession()));
	m_pDelayedIsOnTimer = new QTimer();
	connect(m_pDelayedIsOnTimer, SIGNAL(timeout()), this, SLOT(newIsOnSession()));
	m_pDelayedUserhostTimer = new QTimer();
	connect(m_pDelayedUserhostTimer, SIGNAL(timeout()), this, SLOT(newUserhostSession()));
	m_bRunning = false;
}