1 #ifndef _KVI_KVS_EVENTMANAGER_H_
2 #define _KVI_KVS_EVENTMANAGER_H_
37 #define KVI_KVS_NUM_RAW_EVENTS 1000
60 bool hasAppHandlers(
unsigned int uEvIdx) {
return m_appEventTable[uEvIdx].hasHandlers(); };
63 bool hasRawHandlers(
unsigned int uEvIdx) {
return m_rawEventTable[uEvIdx]; };
66 KviKvsEvent * findAppEventByName(
const QString & szName);
67 unsigned int findAppEventIndexByName(
const QString & szName);
75 bool removeScriptAppHandler(
unsigned int uEvIdx,
const QString & szName);
76 bool removeScriptRawHandler(
unsigned int uEvIdx,
const QString & szName);
78 bool enableScriptAppHandler(
unsigned int uEvIdx,
const QString & szName,
bool bEnable);
79 bool enableScriptRawHandler(
unsigned int uEvIdx,
const QString & szName,
bool bEnable);
97 return triggerHandlers(m_appEventTable[uEvIdx].handlers(), pWnd, pParams);
101 return triggerHandlers(m_rawEventTable[uEvIdx], pWnd, pParams);
107 bool bRet = triggerHandlers(m_appEventTable[uEvIdx].handlers(), pWnd, pParams);
112 void removeAllScriptAppHandlers();
113 void removeAllScriptRawHandlers();
124 void eventHandlerDisabled(
const QString &);
Definition: KviKvsEventHandler.h:53
bool isValidAppEvent(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:68
static KviKvsEventManager * m_pInstance
Definition: KviKvsEventManager.h:48
bool isValidRawEvent(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:70
KviPointerList< KviKvsEventHandler > * rawHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:64
#define KVIRC_API
Definition: kvi_settings.h:128
bool hasRawHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:63
void saveAppEvents(const QString &szFileName)
Definition: KviKvs.cpp:97
void clearRawEvents()
Definition: KviKvs.cpp:117
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
KviPointerList< KviKvsEventHandler > * appHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:61
KviKvsEvent * appEvent(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:58
void clearAppEvents()
Definition: KviKvs.cpp:102
#define i
Definition: detector.cpp:73
Definition: KviKvsEvent.h:33
#define h
Definition: detector.cpp:72
void done()
Definition: KviKvs.cpp:50
Definition: KviKvsEventHandler.h:33
#define KVI_KVS_NUM_RAW_EVENTS
Definition: KviKvsEventManager.h:37
void loadAppEvents(const QString &szFileName)
Definition: KviKvs.cpp:92
bool triggerDeleteParams(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:105
bool hasAppHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:60
#define KVI_KVS_NUM_APP_EVENTS
Definition: KviKvsEventTable.h:383
C++ Template based double linked pointer list class.
Base class for all windows in KVIrc.
Definition: KviWindow.h:74
Definition: KviModule.h:131
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54
int init()
Definition: winamp.cpp:118
void loadRawEvents(const QString &szFileName)
Definition: KviKvs.cpp:107
void saveRawEvents(const QString &szFileName)
Definition: KviKvs.cpp:112
This file contains compile time settings.
Definition: KviKvsModuleInterface.h:134
bool triggerRaw(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:99
bool trigger(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:95
Definition: KviKvsEventManager.h:39