KVIrc
4.9.2
DeveloperAPIs
|
#include <KviKvsTimerManager.h>
Public Member Functions | |
bool | addTimer (const QString &szName, KviKvsTimer::Lifetime l, KviWindow *pWnd, int iDelay, KviKvsScript *pCallback, KviKvsVariantList *pParams) |
void | deleteAllTimers () |
bool | deleteCurrentTimer () |
bool | deleteTimer (const QString &szName) |
bool | deleteTimer (int iId) |
KviPointerHashTable< QString, KviKvsTimer > * | timerDict () |
bool | timerExists (const QString &szName) |
Static Public Member Functions | |
static void | done () |
static void | init () |
static KviKvsTimerManager * | instance () |
Protected Member Functions | |
KviKvsTimerManager () | |
void | scheduleKill (KviKvsTimer *t) |
virtual void | timerEvent (QTimerEvent *e) |
~KviKvsTimerManager () | |
Private Attributes | |
int | m_iAssassinTimer |
int | m_iCurrentTimer |
KviPointerList< KviKvsTimer > * | m_pKilledTimerList |
KviPointerHashTable< int, KviKvsTimer > * | m_pTimerDictById |
KviPointerHashTable< QString, KviKvsTimer > * | m_pTimerDictByName |
Static Private Attributes | |
static KviKvsTimerManager * | m_pInstance = nullptr |
|
protected |
References m_iAssassinTimer, m_iCurrentTimer, m_pKilledTimerList, m_pTimerDictById, m_pTimerDictByName, and KviPointerHashTable< Key, T >::setAutoDelete().
Referenced by init().
|
protected |
bool KviKvsTimerManager::addTimer | ( | const QString & | szName, |
KviKvsTimer::Lifetime | l, | ||
KviWindow * | pWnd, | ||
int | iDelay, | ||
KviKvsScript * | pCallback, | ||
KviKvsVariantList * | pParams | ||
) |
void KviKvsTimerManager::deleteAllTimers | ( | ) |
References KviPointerList< T >::append(), KviPointerHashTableIterator< Key, T >::current(), deleteTimer(), KviPointerList< T >::first(), KviPointerHashTable< Key, T >::isEmpty(), m_pTimerDictById, KviPointerList< T >::next(), KviPointerList< T >::setAutoDelete(), and t().
Referenced by KviKvsCoreSimpleCommands::KVSCSC().
bool KviKvsTimerManager::deleteCurrentTimer | ( | ) |
References deleteTimer(), and m_iCurrentTimer.
Referenced by KviKvsCoreSimpleCommands::KVSCSC().
bool KviKvsTimerManager::deleteTimer | ( | const QString & | szName | ) |
References KviPointerHashTable< Key, T >::find(), KviKvsTimer::id(), m_pTimerDictById, m_pTimerDictByName, KviPointerHashTable< Key, T >::remove(), scheduleKill(), and t().
Referenced by addTimer(), deleteAllTimers(), deleteCurrentTimer(), and timerEvent().
bool KviKvsTimerManager::deleteTimer | ( | int | iId | ) |
|
static |
References m_pInstance.
Referenced by KviKvs::done().
|
static |
References KviKvsTimerManager().
Referenced by KviKvs::init().
|
inlinestatic |
|
protected |
References KviPointerList< T >::append(), m_iAssassinTimer, m_pKilledTimerList, and KviPointerList< T >::setAutoDelete().
Referenced by deleteTimer().
|
inline |
Referenced by KviKvsCoreFunctions::KVSCF(), and KviKvsCoreSimpleCommands::KVSCSC().
|
protectedvirtual |
References __tr2qs_ctx(), KviApplication::activeConsole(), KviKvsTimer::callback(), KviPointerList< T >::clear(), KviMemory::copy(), deleteTimer(), KviPointerHashTable< Key, T >::find(), g_pApp, KviKvsTimer::id(), KVI_OPTION_BOOL, KVI_OUT_PARSERERROR, KviOption_boolKillBrokenTimers, KviKvsTimer::lifetime(), m_iAssassinTimer, m_iCurrentTimer, m_pKilledTimerList, m_pTimerDictById, KviKvsTimer::name(), KviWindow::output(), KviKvsTimer::parameterList(), KviKvsTimer::Persistent, KviKvsScript::PreserveParams, KviKvsScript::run(), KviKvsTimer::runTimeData(), KviKvsTimer::setWindow(), KviKvsTimer::SingleShot, t(), KviKvsTimer::window(), and KviApplication::windowExists().
|
inline |
|
private |
Referenced by KviKvsTimerManager(), scheduleKill(), and timerEvent().
|
private |
Referenced by deleteCurrentTimer(), KviKvsTimerManager(), and timerEvent().
|
staticprivate |
Referenced by done().
|
private |
Referenced by KviKvsTimerManager(), scheduleKill(), timerEvent(), and ~KviKvsTimerManager().
|
private |
Referenced by addTimer(), deleteAllTimers(), deleteTimer(), KviKvsTimerManager(), timerEvent(), and ~KviKvsTimerManager().
|
private |
Referenced by addTimer(), deleteTimer(), KviKvsTimerManager(), and ~KviKvsTimerManager().