KVIrc 5.2.0
Developer APIs
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, const KviKvsEventHandler &h)
 
bool addRawHandler (unsigned int uRawIdx, KviKvsEventHandler *h)
 
KviKvsEventappEvent (unsigned int uEvIdx)
 
KviPointerList< KviKvsEventHandler > * appHandlers (unsigned int uEvIdx)
 
void cleanHandlerName (QString &szHandlerName)
 
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::KviKvsEventManager ( )
protected

References i, m_pInstance, and m_rawEventTable.

Referenced by init().

◆ ~KviKvsEventManager()

KviKvsEventManager::~KviKvsEventManager ( )
protected

References clear().

Member Function Documentation

◆ addAppHandler()

bool KviKvsEventManager::addAppHandler ( unsigned int  uEvIdx,
KviKvsEventHandler h 
)

◆ addRawHandler() [1/2]

bool KviKvsEventManager::addRawHandler ( unsigned int  uRawIdx,
const KviKvsEventHandler h 
)

◆ addRawHandler() [2/2]

bool KviKvsEventManager::addRawHandler ( unsigned int  uRawIdx,
KviKvsEventHandler h 
)

◆ appEvent()

KviKvsEvent * KviKvsEventManager::appEvent ( unsigned int  uEvIdx)
inline

◆ appHandlers()

KviPointerList< KviKvsEventHandler > * KviKvsEventManager::appHandlers ( unsigned int  uEvIdx)
inline

◆ cleanHandlerName()

void KviKvsEventManager::cleanHandlerName ( QString &  szHandlerName)

◆ clear()

void KviKvsEventManager::clear ( )

References clearAppEvents(), and clearRawEvents().

Referenced by ~KviKvsEventManager().

◆ clearAppEvents()

void KviKvsEventManager::clearAppEvents ( )

References i, and m_appEventTable.

Referenced by clear().

◆ clearRawEvents()

void KviKvsEventManager::clearRawEvents ( )

References i, and m_rawEventTable.

Referenced by clear().

◆ done()

void KviKvsEventManager::done ( )
static

References instance().

Referenced by KviKvs::done().

◆ enableScriptAppHandler()

bool KviKvsEventManager::enableScriptAppHandler ( unsigned int  uEvIdx,
const QString &  szName,
bool  bEnable 
)

References findScriptAppHandler(), and h.

◆ enableScriptRawHandler()

bool KviKvsEventManager::enableScriptRawHandler ( unsigned int  uEvIdx,
const QString &  szName,
bool  bEnable 
)

References findScriptRawHandler(), and h.

◆ eventHandlerDisabled

void KviKvsEventManager::eventHandlerDisabled ( const QString &  )
signal

Referenced by triggerHandlers().

◆ findAppEventByName()

KviKvsEvent * KviKvsEventManager::findAppEventByName ( const QString &  szName)

◆ findAppEventIndexByName()

unsigned int KviKvsEventManager::findAppEventIndexByName ( const QString &  szName)

◆ findScriptAppHandler()

KviKvsScriptEventHandler * KviKvsEventManager::findScriptAppHandler ( unsigned int  uEvIdx,
const QString &  szName 
)

◆ findScriptRawHandler()

KviKvsScriptEventHandler * KviKvsEventManager::findScriptRawHandler ( unsigned int  uEvIdx,
const QString &  szName 
)

◆ hasAppHandlers()

bool KviKvsEventManager::hasAppHandlers ( unsigned int  uEvIdx)
inline

◆ hasRawHandlers()

bool KviKvsEventManager::hasRawHandlers ( unsigned int  uEvIdx)
inline

◆ init()

void KviKvsEventManager::init ( )
static

References instance(), and KviKvsEventManager().

Referenced by KviKvs::init().

◆ instance()

static KviKvsEventManager * KviKvsEventManager::instance ( )
inlinestatic

◆ isValidAppEvent()

bool KviKvsEventManager::isValidAppEvent ( unsigned int  uEvIdx)
inline

◆ isValidRawEvent()

bool KviKvsEventManager::isValidRawEvent ( unsigned int  uEvIdx)
inline

◆ loadAppEvents()

void KviKvsEventManager::loadAppEvents ( const QString &  szFileName)

◆ loadRawEvents()

void KviKvsEventManager::loadRawEvents ( const QString &  szFileName)

◆ rawHandlers()

KviPointerList< KviKvsEventHandler > * KviKvsEventManager::rawHandlers ( unsigned int  uEvIdx)
inline

◆ removeAllModuleAppHandlers()

void KviKvsEventManager::removeAllModuleAppHandlers ( KviKvsModuleInterface i)

◆ removeAllModuleHandlers()

void KviKvsEventManager::removeAllModuleHandlers ( KviKvsModuleInterface i)

◆ removeAllModuleRawHandlers()

void KviKvsEventManager::removeAllModuleRawHandlers ( KviKvsModuleInterface i)

◆ removeAllScriptAppHandlers()

void KviKvsEventManager::removeAllScriptAppHandlers ( )

◆ removeAllScriptRawHandlers()

void KviKvsEventManager::removeAllScriptRawHandlers ( )

◆ removeModuleAppHandler()

bool KviKvsEventManager::removeModuleAppHandler ( unsigned int  uEvIdx,
KviKvsModuleInterface i 
)

◆ removeModuleRawHandler()

bool KviKvsEventManager::removeModuleRawHandler ( unsigned int  uRawIdx,
KviKvsModuleInterface i 
)

◆ removeScriptAppHandler()

bool KviKvsEventManager::removeScriptAppHandler ( unsigned int  uEvIdx,
const QString &  szName 
)

◆ removeScriptRawHandler()

bool KviKvsEventManager::removeScriptRawHandler ( unsigned int  uEvIdx,
const QString &  szName 
)

◆ saveAppEvents()

void KviKvsEventManager::saveAppEvents ( const QString &  szFileName)

◆ saveRawEvents()

void KviKvsEventManager::saveRawEvents ( const QString &  szFileName)

◆ trigger()

bool KviKvsEventManager::trigger ( unsigned int  uEvIdx,
KviWindow pWnd,
KviKvsVariantList pParams 
)
inline

◆ triggerDeleteParams()

bool KviKvsEventManager::triggerDeleteParams ( unsigned int  uEvIdx,
KviWindow pWnd,
KviKvsVariantList pParams 
)
inline

◆ triggerHandlers()

bool KviKvsEventManager::triggerHandlers ( KviPointerList< KviKvsEventHandler > *  pHandlers,
KviWindow pWnd,
KviKvsVariantList pParams 
)

◆ triggerRaw()

bool KviKvsEventManager::triggerRaw ( unsigned int  uEvIdx,
KviWindow pWnd,
KviKvsVariantList pParams 
)
inline

Friends And Related Symbol Documentation

◆ KviModule

friend class KviModule
friend

Member Data Documentation

◆ m_appEventTable

KviKvsEvent KviKvsEventManager::m_appEventTable
staticprotected

◆ m_pInstance

KviKvsEventManager * KviKvsEventManager::m_pInstance = nullptr
staticprotected

Referenced by KviKvsEventManager().

◆ m_rawEventTable

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

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