KVIrc  4.9.2
DeveloperAPIs
Macros | Functions
libkviuserlist.cpp File Reference
#include "KviModule.h"
#include "KviLocale.h"
#include "KviChannelWindow.h"
#include "KviUserListView.h"

Macros

#define GET_KVS_FNC_WINDOW_ID
 
#define GET_KVS_WINDOW_ID_AND_NICK
 

Functions

static bool userlist_kvs_cmd_ensureVisible (KviKvsModuleCommandCall *c)
 
static bool userlist_kvs_cmd_select (KviKvsModuleCommandCall *c)
 
static bool userlist_kvs_fnc_selected (KviKvsModuleFunctionCall *c)
 
static bool userlist_module_can_unload (KviModule *)
 
static bool userlist_module_cleanup (KviModule *)
 
static bool userlist_module_init (KviModule *m)
 

Macro Definition Documentation

#define GET_KVS_FNC_WINDOW_ID
Value:
QString szWnd; \
KviWindow * pWnd; \
if(c->parameterList()->count() == 0) \
{ \
pWnd = c->window(); \
} \
else \
{ \
pWnd = g_pApp->findWindow(szWnd.toUtf8().data()); \
if(!pWnd) \
return true; \
} \
if(!pWnd) \
{ \
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
KVIRC_API KviApplication * g_pApp
Definition: KviApplication.cpp:151
#define KVSM_PARAMETERS_END(pCall)
Definition: KviKvsModuleInterface.h:239
#define KVS_PF_OPTIONAL
Definition: KviKvsParameterProcessor.h:142
#define KVSM_PARAMETER(a, b, c, d)
Definition: KviKvsModuleInterface.h:233
KviWindow * findWindow(const QString &windowId)
Definition: KviApplication.cpp:1807

Referenced by userlist_kvs_fnc_selected().

#define GET_KVS_WINDOW_ID_AND_NICK
Value:
QString szWnd, szNick; \
KviWindow * pWnd; \
if(c->parameterList()->count() == 1) \
{ \
pWnd = c->window(); \
} \
else \
{ \
pWnd = g_pApp->findWindow(szWnd.toUtf8().data()); \
if(!pWnd) \
{ \
if(!c->hasSwitch('q', "quiet")) \
c->warning(__tr2qs("The window with ID '%s' doesn't exist"), szWnd.toUtf8().data()); \
return true; \
} \
} \
if(!pWnd) \
return true;
#define __tr2qs(__text__)
Definition: KviLocale.h:224
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
KVIRC_API KviApplication * g_pApp
Definition: KviApplication.cpp:151
#define KVSM_PARAMETERS_END(pCall)
Definition: KviKvsModuleInterface.h:239
Definition: KviKvsParameterProcessor.h:43
#define KVS_PF_OPTIONAL
Definition: KviKvsParameterProcessor.h:142
#define KVSM_PARAMETER(a, b, c, d)
Definition: KviKvsModuleInterface.h:233
KviWindow * findWindow(const QString &windowId)
Definition: KviApplication.cpp:1807

Referenced by userlist_kvs_cmd_ensureVisible(), and userlist_kvs_cmd_select().

Function Documentation

static bool userlist_kvs_cmd_ensureVisible ( KviKvsModuleCommandCall c)
static
static bool userlist_kvs_cmd_select ( KviKvsModuleCommandCall c)
static
static bool userlist_kvs_fnc_selected ( KviKvsModuleFunctionCall c)
static
static bool userlist_module_can_unload ( KviModule )
static
static bool userlist_module_cleanup ( KviModule )
static
static bool userlist_module_init ( KviModule m)
static