KVIrc  4.9.2
DeveloperAPIs
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Friends | List of all members
KviKvsEventManager Class Reference

#include <KviKvsEventManager.h>

+ Inheritance diagram for KviKvsEventManager:

Signals

void eventHandlerDisabled (const QString &)
 

Public Member Functions

bool addAppHandler (unsigned int uEvIdx, KviKvsEventHandler *h)
 
bool addRawHandler (unsigned int uRawIdx, KviKvsEventHandler *h)
 
KviKvsEventappEvent (unsigned int uEvIdx)
 
KviPointerList
< KviKvsEventHandler > * 
appHandlers (unsigned int uEvIdx)
 
void clear ()
 
void clearAppEvents ()
 
void clearRawEvents ()
 
bool enableScriptAppHandler (unsigned int uEvIdx, const QString &szName, bool bEnable)
 
bool enableScriptRawHandler (unsigned int uEvIdx, const QString &szName, bool bEnable)
 
KviKvsEventfindAppEventByName (const QString &szName)
 
unsigned int findAppEventIndexByName (const QString &szName)
 
KviKvsScriptEventHandlerfindScriptAppHandler (unsigned int uEvIdx, const QString &szName)
 
KviKvsScriptEventHandlerfindScriptRawHandler (unsigned int uEvIdx, const QString &szName)
 
bool hasAppHandlers (unsigned int uEvIdx)
 
bool hasRawHandlers (unsigned int uEvIdx)
 
bool isValidAppEvent (unsigned int uEvIdx)
 
bool isValidRawEvent (unsigned int uEvIdx)
 
void loadAppEvents (const QString &szFileName)
 
void loadRawEvents (const QString &szFileName)
 
KviPointerList
< KviKvsEventHandler > * 
rawHandlers (unsigned int uEvIdx)
 
void removeAllModuleAppHandlers (KviKvsModuleInterface *i)
 
void removeAllModuleHandlers (KviKvsModuleInterface *i)
 
void removeAllModuleRawHandlers (KviKvsModuleInterface *i)
 
void removeAllScriptAppHandlers ()
 
void removeAllScriptRawHandlers ()
 
bool removeModuleAppHandler (unsigned int uEvIdx, KviKvsModuleInterface *i)
 
bool removeModuleRawHandler (unsigned int uRawIdx, KviKvsModuleInterface *i)
 
bool removeScriptAppHandler (unsigned int uEvIdx, const QString &szName)
 
bool removeScriptRawHandler (unsigned int uEvIdx, const QString &szName)
 
void saveAppEvents (const QString &szFileName)
 
void saveRawEvents (const QString &szFileName)
 
bool trigger (unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
 
bool triggerDeleteParams (unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
 
bool triggerHandlers (KviPointerList< KviKvsEventHandler > *pHandlers, KviWindow *pWnd, KviKvsVariantList *pParams)
 
bool triggerRaw (unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
 

Static Public Member Functions

static void done ()
 
static void init ()
 
static KviKvsEventManagerinstance ()
 

Protected Member Functions

 KviKvsEventManager ()
 
 ~KviKvsEventManager ()
 

Protected Attributes

KviPointerList
< KviKvsEventHandler > * 
m_rawEventTable [KVI_KVS_NUM_RAW_EVENTS]
 

Static Protected Attributes

static KviKvsEvent m_appEventTable [KVI_KVS_NUM_APP_EVENTS]
 
static KviKvsEventManagerm_pInstance = nullptr
 

Friends

class KviModule
 

Constructor & Destructor Documentation

KviKvsEventManager::KviKvsEventManager ( )
protected

References i, m_pInstance, and m_rawEventTable.

Referenced by init().

KviKvsEventManager::~KviKvsEventManager ( )
protected

References clear().

Member Function Documentation

bool KviKvsEventManager::addAppHandler ( unsigned int  uEvIdx,
KviKvsEventHandler h 
)
bool KviKvsEventManager::addRawHandler ( unsigned int  uRawIdx,
KviKvsEventHandler h 
)
KviKvsEvent* KviKvsEventManager::appEvent ( unsigned int  uEvIdx)
inline
KviPointerList<KviKvsEventHandler>* KviKvsEventManager::appHandlers ( unsigned int  uEvIdx)
inline
void KviKvsEventManager::clear ( )

References clearAppEvents(), and clearRawEvents().

Referenced by ~KviKvsEventManager().

void KviKvsEventManager::clearAppEvents ( )

References i, and m_appEventTable.

Referenced by clear().

void KviKvsEventManager::clearRawEvents ( )

References i, and m_rawEventTable.

Referenced by clear().

void KviKvsEventManager::done ( )
static

References instance().

Referenced by KviKvs::done().

bool KviKvsEventManager::enableScriptAppHandler ( unsigned int  uEvIdx,
const QString &  szName,
bool  bEnable 
)
bool KviKvsEventManager::enableScriptRawHandler ( unsigned int  uEvIdx,
const QString &  szName,
bool  bEnable 
)
void KviKvsEventManager::eventHandlerDisabled ( const QString &  )
signal

Referenced by triggerHandlers().

KviKvsEvent * KviKvsEventManager::findAppEventByName ( const QString &  szName)
unsigned int KviKvsEventManager::findAppEventIndexByName ( const QString &  szName)
KviKvsScriptEventHandler * KviKvsEventManager::findScriptAppHandler ( unsigned int  uEvIdx,
const QString &  szName 
)
KviKvsScriptEventHandler * KviKvsEventManager::findScriptRawHandler ( unsigned int  uEvIdx,
const QString &  szName 
)
bool KviKvsEventManager::hasAppHandlers ( unsigned int  uEvIdx)
inline
bool KviKvsEventManager::hasRawHandlers ( unsigned int  uEvIdx)
inline
void KviKvsEventManager::init ( )
static

References instance(), and KviKvsEventManager().

Referenced by KviKvs::init().

static KviKvsEventManager* KviKvsEventManager::instance ( )
inlinestatic
bool KviKvsEventManager::isValidAppEvent ( unsigned int  uEvIdx)
inline
bool KviKvsEventManager::isValidRawEvent ( unsigned int  uEvIdx)
inline
void KviKvsEventManager::loadAppEvents ( const QString &  szFileName)
void KviKvsEventManager::loadRawEvents ( const QString &  szFileName)
KviPointerList<KviKvsEventHandler>* KviKvsEventManager::rawHandlers ( unsigned int  uEvIdx)
inline
void KviKvsEventManager::removeAllModuleAppHandlers ( KviKvsModuleInterface i)
void KviKvsEventManager::removeAllModuleHandlers ( KviKvsModuleInterface i)
void KviKvsEventManager::removeAllModuleRawHandlers ( KviKvsModuleInterface i)
void KviKvsEventManager::removeAllScriptAppHandlers ( )
void KviKvsEventManager::removeAllScriptRawHandlers ( )
bool KviKvsEventManager::removeModuleAppHandler ( unsigned int  uEvIdx,
KviKvsModuleInterface i 
)
bool KviKvsEventManager::removeModuleRawHandler ( unsigned int  uRawIdx,
KviKvsModuleInterface i 
)
bool KviKvsEventManager::removeScriptAppHandler ( unsigned int  uEvIdx,
const QString &  szName 
)
bool KviKvsEventManager::removeScriptRawHandler ( unsigned int  uEvIdx,
const QString &  szName 
)
void KviKvsEventManager::saveAppEvents ( const QString &  szFileName)
void KviKvsEventManager::saveRawEvents ( const QString &  szFileName)
bool KviKvsEventManager::trigger ( unsigned int  uEvIdx,
KviWindow pWnd,
KviKvsVariantList pParams 
)
inline
bool KviKvsEventManager::triggerDeleteParams ( unsigned int  uEvIdx,
KviWindow pWnd,
KviKvsVariantList pParams 
)
inline
bool KviKvsEventManager::triggerHandlers ( KviPointerList< KviKvsEventHandler > *  pHandlers,
KviWindow pWnd,
KviKvsVariantList pParams 
)
bool KviKvsEventManager::triggerRaw ( unsigned int  uEvIdx,
KviWindow pWnd,
KviKvsVariantList pParams 
)
inline

Friends And Related Function Documentation

friend class KviModule
friend

Member Data Documentation

KviKvsEvent KviKvsEventManager::m_appEventTable
staticprotected
KviKvsEventManager * KviKvsEventManager::m_pInstance = nullptr
staticprotected

Referenced by KviKvsEventManager().

KviPointerList<KviKvsEventHandler>* KviKvsEventManager::m_rawEventTable[KVI_KVS_NUM_RAW_EVENTS]
protected

The documentation for this class was generated from the following files: