KVIrc  4.9.2
DeveloperAPIs
Macros
KviKvsEventTriggers.h File Reference
#include "kvi_settings.h"
#include "KviKvsEventTable.h"
#include "KviKvsEventManager.h"
#include "KviKvsVariantList.h"

Go to the source code of this file.

Macros

#define KVS_TRIGGER_EVENT(__idx, __wnd, __parms)
 
#define KVS_TRIGGER_EVENT_0(__idx, __wnd)
 
#define KVS_TRIGGER_EVENT_0_HALTED(__idx, __wnd)
 
#define KVS_TRIGGER_EVENT_1(__idx, __wnd, __param1)
 
#define KVS_TRIGGER_EVENT_1_HALTED(__idx, __wnd, __param1)
 
#define KVS_TRIGGER_EVENT_2(__idx, __wnd, __param1, __param2)
 
#define KVS_TRIGGER_EVENT_2_HALTED(__idx, __wnd, __param1, __param2)
 
#define KVS_TRIGGER_EVENT_3(__idx, __wnd, __param1, __param2, __param3)
 
#define KVS_TRIGGER_EVENT_3_HALTED(__idx, __wnd, __param1, __param2, __param3)
 
#define KVS_TRIGGER_EVENT_4(__idx, __wnd, __param1, __param2, __param3, __param4)
 
#define KVS_TRIGGER_EVENT_4_HALTED(__idx, __wnd, __param1, __param2, __param3, __param4)
 
#define KVS_TRIGGER_EVENT_5(__idx, __wnd, __param1, __param2, __param3, __param4, __param5)
 
#define KVS_TRIGGER_EVENT_5_HALTED(__idx, __wnd, __param1, __param2, __param3, __param4, __param5)
 
#define KVS_TRIGGER_EVENT_6(__idx, __wnd, __param1, __param2, __param3, __param4, __param5, __param6)
 
#define KVS_TRIGGER_EVENT_6_HALTED(__idx, __wnd, __param1, __param2, __param3, __param4, __param5, __param6)
 
#define KVS_TRIGGER_EVENT_7(__idx, __wnd, __param1, __param2, __param3, __param4, __param5, __param6, __param7)
 
#define KVS_TRIGGER_EVENT_7_HALTED(__idx, __wnd, __param1, __param2, __param3, __param4, __param5, __param6, __param7)
 
#define KVS_TRIGGER_EVENT_HALTED(__idx, __wnd, __parms)   (KviKvsEventManager::instance()->hasAppHandlers(__idx) ? KviKvsEventManager::instance()->trigger(__idx, __wnd, __parms) : false)
 

Macro Definition Documentation

#define KVS_TRIGGER_EVENT (   __idx,
  __wnd,
  __parms 
)
Value:
if(KviKvsEventManager::instance()->hasAppHandlers(__idx)) \
KviKvsEventManager::instance()->trigger(__idx, __wnd, __parms);
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54
bool trigger(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:95

Referenced by KviIrcView::mouseDoubleClickEvent(), HttpFileTransfer::transferTerminated(), and KviIrcView::triggerMouseRelatedKvsEvents().

#define KVS_TRIGGER_EVENT_0 (   __idx,
  __wnd 
)
#define KVS_TRIGGER_EVENT_0_HALTED (   __idx,
  __wnd 
)
Value:
( \
__idx, \
__wnd, \
: false)
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
bool triggerDeleteParams(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:105
bool hasAppHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:60
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54

Referenced by KviIrcContext::connectionEstablished(), KviIrcContext::connectionTerminated(), KviIrcConnection::loginComplete(), and KviIrcServerParser::parseLiteralJoin().

#define KVS_TRIGGER_EVENT_1 (   __idx,
  __wnd,
  __param1 
)
#define KVS_TRIGGER_EVENT_1_HALTED (   __idx,
  __wnd,
  __param1 
)
Value:
( \
__idx, \
__wnd, \
new KviKvsVariant(__param1))) \
: false)
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
bool triggerDeleteParams(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:105
bool hasAppHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:60
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54

Referenced by KviChannelWindow::checkChannelSync(), DccChatWindow::connected(), KviNotifyListManager::notifyOffLine(), KviNotifyListManager::notifyOnLine(), KviUserInput::parse(), KviIrcServerParser::parseLiteralPart(), and KviIrcServerParser::parseNumericAway().

#define KVS_TRIGGER_EVENT_2 (   __idx,
  __wnd,
  __param1,
  __param2 
)
Value:
if(KviKvsEventManager::instance()->hasAppHandlers(__idx)) \
{ \
KviKvsVariantList _vLocalParamList( \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2)); \
KviKvsEventManager::instance()->trigger(__idx, __wnd, &_vLocalParamList); \
}
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54
bool trigger(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:95

Referenced by DccFileTransfer::event().

#define KVS_TRIGGER_EVENT_2_HALTED (   __idx,
  __wnd,
  __param1,
  __param2 
)
Value:
( \
__idx, \
__wnd, \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2))) \
: false)
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
bool triggerDeleteParams(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:105
bool hasAppHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:60
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54

Referenced by DccChatWindow::event(), DccVideoWindow::event(), DccChatWindow::handleMarshalError(), KviQueryWindow::ownAction(), KviChannelWindow::ownAction(), KviIrcServerParser::parseLiteralError(), KviIrcServerParser::parseLiteralNick(), KviIrcServerParser::parseLiteralNotice(), KviIrcServerParser::parseLiteralPing(), KviIrcServerParser::parseLiteralPong(), KviIrcServerParser::parseLiteralQuit(), KviIrcServerParser::parseNumericBackFromAway(), KviIrcServerParser::parseNumericHiddenHost(), KviInputEditor::pasteClipboardWithConfirmation(), KviInputEditor::pasteSelectionWithConfirmation(), DccChatWindow::sslError(), KviLagMeter::timerEvent(), and KviWindow::updateCaption().

#define KVS_TRIGGER_EVENT_3 (   __idx,
  __wnd,
  __param1,
  __param2,
  __param3 
)
Value:
if(KviKvsEventManager::instance()->hasAppHandlers(__idx)) \
{ \
KviKvsVariantList _vLocalParamList( \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2), \
new KviKvsVariant(__param3)); \
KviKvsEventManager::instance()->trigger(__idx, __wnd, &_vLocalParamList); \
}
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54
bool trigger(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:95

Referenced by DccFileTransfer::abort(), DccFileTransfer::event(), DccFileTransfer::handleMarshalError(), and KviQueryWindow::setTarget().

#define KVS_TRIGGER_EVENT_3_HALTED (   __idx,
  __wnd,
  __param1,
  __param2,
  __param3 
)
Value:
( \
__idx, \
__wnd, \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2), \
new KviKvsVariant(__param3))) \
: false)
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
bool triggerDeleteParams(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:105
bool hasAppHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:60
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54

Referenced by KviIrcServerParser::parseChannelMode(), and KviIrcServerParser::parseLiteralJoin().

#define KVS_TRIGGER_EVENT_4 (   __idx,
  __wnd,
  __param1,
  __param2,
  __param3,
  __param4 
)
Value:
if(KviKvsEventManager::instance()->hasAppHandlers(__idx)) \
{ \
KviKvsVariantList _vLocalParamList( \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2), \
new KviKvsVariant(__param3), \
new KviKvsVariant(__param4)); \
KviKvsEventManager::instance()->trigger(__idx, __wnd, &_vLocalParamList); \
}
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54
bool trigger(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:95
#define KVS_TRIGGER_EVENT_4_HALTED (   __idx,
  __wnd,
  __param1,
  __param2,
  __param3,
  __param4 
)
Value:
( \
__idx, \
__wnd, \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2), \
new KviKvsVariant(__param3), \
new KviKvsVariant(__param4))) \
: false)
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
bool triggerDeleteParams(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:105
bool hasAppHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:60
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54

Referenced by KviIrcServerParser::parseChannelMode(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralAccount(), KviIrcServerParser::parseLiteralAway(), KviIrcServerParser::parseLiteralInvite(), KviIrcServerParser::parseLiteralKick(), KviIrcServerParser::parseLiteralNick(), KviIrcServerParser::parseLiteralPart(), KviIrcServerParser::parseLiteralTopic(), and KviIrcServerParser::parseLiteralWallops().

#define KVS_TRIGGER_EVENT_5 (   __idx,
  __wnd,
  __param1,
  __param2,
  __param3,
  __param4,
  __param5 
)
Value:
if(KviKvsEventManager::instance()->hasAppHandlers(__idx)) \
{ \
KviKvsVariantList _vLocalParamList( \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2), \
new KviKvsVariant(__param3), \
new KviKvsVariant(__param4), \
new KviKvsVariant(__param5)); \
KviKvsEventManager::instance()->trigger(__idx, __wnd, &_vLocalParamList); \
}
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54
bool trigger(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:95
#define KVS_TRIGGER_EVENT_5_HALTED (   __idx,
  __wnd,
  __param1,
  __param2,
  __param3,
  __param4,
  __param5 
)
Value:
( \
__idx, \
__wnd, \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2), \
new KviKvsVariant(__param3), \
new KviKvsVariant(__param4), \
new KviKvsVariant(__param5))) \
: false)
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
bool triggerDeleteParams(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:105
bool hasAppHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:60
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54

Referenced by KviIrcServerParser::parseChannelMode(), KviIrcServerParser::parseLiteralChghost(), KviIrcServerParser::parseLiteralKick(), KviIrcServerParser::parseLiteralNotice(), and KviIrcServerParser::parseLiteralPrivmsg().

#define KVS_TRIGGER_EVENT_6 (   __idx,
  __wnd,
  __param1,
  __param2,
  __param3,
  __param4,
  __param5,
  __param6 
)
Value:
if(KviKvsEventManager::instance()->hasAppHandlers(__idx)) \
{ \
KviKvsVariantList _vLocalParamList( \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2), \
new KviKvsVariant(__param3), \
new KviKvsVariant(__param4), \
new KviKvsVariant(__param5), \
new KviKvsVariant(__param6)); \
KviKvsEventManager::instance()->trigger(__idx, __wnd, &_vLocalParamList); \
}
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54
bool trigger(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:95
#define KVS_TRIGGER_EVENT_6_HALTED (   __idx,
  __wnd,
  __param1,
  __param2,
  __param3,
  __param4,
  __param5,
  __param6 
)
Value:
( \
__idx, \
__wnd, \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2), \
new KviKvsVariant(__param3), \
new KviKvsVariant(__param4), \
new KviKvsVariant(__param5), \
new KviKvsVariant(__param6))) \
: false)
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
bool triggerDeleteParams(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:105
bool hasAppHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:60
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54

Referenced by KviIrcServerParser::echoCtcpRequest(), KviIrcServerParser::parseCtcpReply(), KviIrcServerParser::parseCtcpRequest(), KviIrcServerParser::parseCtcpRequestAction(), KviIrcServerParser::parseLiteralNotice(), and KviIrcServerParser::parseLiteralPrivmsg().

#define KVS_TRIGGER_EVENT_7 (   __idx,
  __wnd,
  __param1,
  __param2,
  __param3,
  __param4,
  __param5,
  __param6,
  __param7 
)
Value:
if(KviKvsEventManager::instance()->hasAppHandlers(__idx)) \
{ \
KviKvsVariantList _vLocalParamList( \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2), \
new KviKvsVariant(__param3), \
new KviKvsVariant(__param4), \
new KviKvsVariant(__param5), \
new KviKvsVariant(__param6), \
new KviKvsVariant(__param7)); \
KviKvsEventManager::instance()->trigger(__idx, __wnd, &_vLocalParamList); \
}
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54
bool trigger(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:95
#define KVS_TRIGGER_EVENT_7_HALTED (   __idx,
  __wnd,
  __param1,
  __param2,
  __param3,
  __param4,
  __param5,
  __param6,
  __param7 
)
Value:
( \
__idx, \
__wnd, \
new KviKvsVariant(__param1), \
new KviKvsVariant(__param2), \
new KviKvsVariant(__param3), \
new KviKvsVariant(__param4), \
new KviKvsVariant(__param5), \
new KviKvsVariant(__param6), \
new KviKvsVariant(__param7))) \
: false)
This class defines a new data type which contains variant data.
Definition: KviKvsVariant.h:351
Class to handle variant variables lists.
Definition: KviKvsVariantList.h:41
bool triggerDeleteParams(unsigned int uEvIdx, KviWindow *pWnd, KviKvsVariantList *pParams)
Definition: KviKvsEventManager.h:105
bool hasAppHandlers(unsigned int uEvIdx)
Definition: KviKvsEventManager.h:60
static KviKvsEventManager * instance()
Definition: KviKvsEventManager.h:54

Referenced by KviIrcServerParser::parseLiteralPrivmsg(), and KviConsoleWindow::triggerOnHighlight().

#define KVS_TRIGGER_EVENT_HALTED (   __idx,
  __wnd,
  __parms 
)    (KviKvsEventManager::instance()->hasAppHandlers(__idx) ? KviKvsEventManager::instance()->trigger(__idx, __wnd, __parms) : false)