Ejemplo 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()));
}
Ejemplo n.º 2
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;
}