KVIrc  4.9.2
DeveloperAPIs
Macros | Functions
libkvichan.cpp File Reference
#include "KviModule.h"
#include "KviCString.h"
#include "KviApplication.h"
#include "KviChannelWindow.h"
#include "KviLocale.h"
#include "KviTopicWidget.h"
#include "KviIrcMask.h"
#include "KviMaskEditor.h"
#include "KviIrcUrl.h"
#include "KviIrcConnectionTarget.h"
#include "KviIrcConnection.h"

Macros

#define IS_KVS_FUNC(__clbkname, __chanfunc)
 
#define IS_ME_KVS_FUNC(__clbkname, __chanfunc)
 

Functions

static KviChannelWindowchan_kvs_find_channel (KviKvsModuleFunctionCall *c, QString &szChan, bool bNoWarnings=false)
 
static bool chan_kvs_fnc_admincount (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_bancount (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_banexceptioncount (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_banexceptionlist (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_banlist (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_common (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_getflag (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_getUrl (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_halfopcount (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_invitecount (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_invitelist (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_isdead (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_ison (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_key (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_limit (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_maskcount (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_masklist (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_matchban (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_matchbanexception (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_matchinvite (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_matchmask (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_matchqban (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_mode (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_modeParam (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_name (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_opcount (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_ownercount (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_topic (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_topicsetat (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_topicsetby (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_usercount (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_userjointime (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_userlastactiontime (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_usermodelevel (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_useropcount (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_users (KviKvsModuleFunctionCall *c)
 
static bool chan_kvs_fnc_voicecount (KviKvsModuleFunctionCall *c)
 
static bool chan_module_cleanup (KviModule *)
 
static bool chan_module_init (KviModule *m)
 

Macro Definition Documentation

#define IS_KVS_FUNC (   __clbkname,
  __chanfunc 
)
Value:
static bool __clbkname(KviKvsModuleFunctionCall * c) \
{ \
QString szId, szNick; \
KVSM_PARAMETER("nickname", KVS_PT_NONEMPTYSTRING, 0, szNick) \
KviChannelWindow * ch = chan_kvs_find_channel(c, szId); \
if(ch) \
c->returnValue()->setBoolean(ch->__chanfunc(szNick, true)); \
return true; \
}
Definition: KviKvsParameterProcessor.h:42
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
#define KVSM_PARAMETERS_BEGIN(pCall)
Definition: KviKvsModuleInterface.h:236
if(m_pFile) delete m_pFile
#define KVSM_PARAMETERS_END(pCall)
Definition: KviKvsModuleInterface.h:239
static KviChannelWindow * chan_kvs_find_channel(KviKvsModuleFunctionCall *c, QString &szChan, bool bNoWarnings=false)
Definition: libkvichan.cpp:39
Definition: KviKvsParameterProcessor.h:43
Definition: KviKvsModuleInterface.h:110
#define KVS_PF_OPTIONAL
Definition: KviKvsParameterProcessor.h:142
#define KVSM_PARAMETER(a, b, c, d)
Definition: KviKvsModuleInterface.h:233
#define IS_ME_KVS_FUNC (   __clbkname,
  __chanfunc 
)
Value:
static bool __clbkname(KviKvsModuleFunctionCall * c) \
{ \
QString szId; \
KviChannelWindow * ch = chan_kvs_find_channel(c, szId); \
if(ch) \
c->returnValue()->setBoolean(ch->__chanfunc(true)); \
return true; \
}
Definition: KviKvsParameterProcessor.h:42
char s char s char s s s s s char char c s *s c s s s d c s *s d c d d d d c
Definition: KviIrcNumericCodes.h:391
#define KVSM_PARAMETERS_BEGIN(pCall)
Definition: KviKvsModuleInterface.h:236
if(m_pFile) delete m_pFile
#define KVSM_PARAMETERS_END(pCall)
Definition: KviKvsModuleInterface.h:239
static KviChannelWindow * chan_kvs_find_channel(KviKvsModuleFunctionCall *c, QString &szChan, bool bNoWarnings=false)
Definition: libkvichan.cpp:39
Definition: KviKvsModuleInterface.h:110
#define KVS_PF_OPTIONAL
Definition: KviKvsParameterProcessor.h:142
#define KVSM_PARAMETER(a, b, c, d)
Definition: KviKvsModuleInterface.h:233

Function Documentation

static KviChannelWindow* chan_kvs_find_channel ( KviKvsModuleFunctionCall c,
QString &  szChan,
bool  bNoWarnings = false 
)
static
static bool chan_kvs_fnc_admincount ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_bancount ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_banexceptioncount ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_banexceptionlist ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_banlist ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_common ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_getflag ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_getUrl ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_halfopcount ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_invitecount ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_invitelist ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_isdead ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_ison ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_key ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_limit ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_maskcount ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_masklist ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_matchban ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_matchbanexception ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_matchinvite ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_matchmask ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_matchqban ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_mode ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_modeParam ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_name ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_opcount ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_ownercount ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_topic ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_topicsetat ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_topicsetby ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_usercount ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_userjointime ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_userlastactiontime ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_usermodelevel ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_useropcount ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_users ( KviKvsModuleFunctionCall c)
static
static bool chan_kvs_fnc_voicecount ( KviKvsModuleFunctionCall c)
static
static bool chan_module_cleanup ( KviModule )
static
static bool chan_module_init ( KviModule m)
static