![]() |
KVIrc
4.9.2
DeveloperAPIs
|
#include "KviModule.h"#include "KviLocale.h"#include "KviQString.h"#include "KviWindow.h"#include "KviMainWindow.h"#include "KviConsoleWindow.h"#include "KviApplication.h"#include "KviIrcServer.h"#include "KviIrcNetwork.h"#include "KviIrcContext.h"#include "KviIrcConnection.h"#include "KviIrcConnectionServerInfo.h"#include "KviIrcConnectionUserInfo.h"#include "KviIrcConnectionTarget.h"#include "KviIrcConnectionStatistics.h"#include "KviIrcLink.h"#include "KviIrcSocket.h"Macros | |
| #define | GET_CONNECTION_FROM_STANDARD_PARAMS |
| #define | GET_CONSOLE_FROM_STANDARD_PARAMS |
| #define | STANDARD_IRC_CONNECTION_TARGET_PARAMETER(_fncName, _setCall) |
| #define | STANDARD_SERVERINFO_TARGET_PARAMETER(_fncName, _setCall) |
Functions | |
| static bool | context_kvs_cmd_clearQueue (KviKvsModuleCommandCall *c) |
| static bool | context_kvs_fnc_getSSLCertInfo (KviKvsModuleFunctionCall *c) |
| static bool | context_kvs_fnc_list (KviKvsModuleFunctionCall *c) |
| static bool | context_kvs_fnc_queueSize (KviKvsModuleFunctionCall *c) |
| static bool | context_module_cleanup (KviModule *) |
| static bool | context_module_init (KviModule *m) |
| c | returnValue () -> setString(pConnection->target() ->network() ->name())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverHostName, c->returnValue() ->setString(pConnection->currentServerName())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverdbServerHostName, c->returnValue() ->setString(pConnection->target() ->server() ->hostName())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverIpAddress, c->returnValue() ->setString(pConnection->target() ->server() ->ip())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverIsIPV6, c->returnValue() ->setBoolean(pConnection->target() ->server() ->isIPv6())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverIsSSL, c->returnValue() ->setBoolean(pConnection->target() ->server() ->useSSL())) STANDARD_SERVERINFO_TARGET_PARAMETER(context_kvs_fnc_serverSoftware, c->returnValue() ->setString(pConnection->serverInfo() ->software())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverPassword, c->returnValue() ->setString(pConnection->target() ->server() ->password())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverPort, c->returnValue() ->setInteger(pConnection->target() ->server() ->port())) static bool context_kvs_fnc_state(KviKvsModuleFunctionCall *c) |
| STANDARD_IRC_CONNECTION_TARGET_PARAMETER (context_kvs_fnc_networkName, c->returnValue() ->setString(pConnection->currentNetworkName())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverdbNetworkName | |
| STANDARD_IRC_CONNECTION_TARGET_PARAMETER (context_kvs_fnc_connectionStartTime, c->returnValue() ->setInteger((kvs_int_t)(pConnection->statistics() ->connectionStartTime()));) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_lastMessageTime | |
| #define GET_CONNECTION_FROM_STANDARD_PARAMS |
| #define GET_CONSOLE_FROM_STANDARD_PARAMS |
Referenced by returnValue().
| #define STANDARD_IRC_CONNECTION_TARGET_PARAMETER | ( | _fncName, | |
| _setCall | |||
| ) |
| #define STANDARD_SERVERINFO_TARGET_PARAMETER | ( | _fncName, | |
| _setCall | |||
| ) |
|
static |
|
static |
References __tr2qs, KviIrcContext::connection(), KviWindow::console(), KviConsoleWindow::context(), KviApplication::findConsole(), g_pApp, KVS_PF_OPTIONAL, KVS_PT_STRING, KVS_PT_UINT, KVSM_PARAMETER, KVSM_PARAMETERS_BEGIN, KVSM_PARAMETERS_END, KviIrcConnection::link(), KviKvsRunTimeCall::parameterCount(), KviKvsModuleFunctionCall::returnValue(), KviKvsVariant::setString(), KviIrcLink::socket(), KviIrcSocket::usingSSL(), KviKvsRunTimeCall::warning(), and KviKvsRunTimeCall::window().
Referenced by context_module_init().
|
static |
|
static |
References GET_CONNECTION_FROM_STANDARD_PARAMS, KviKvsModuleFunctionCall::returnValue(), and KviKvsVariant::setInteger().
Referenced by context_module_init().
|
static |
|
static |
| c returnValue | ( | ) | -> setString(pConnection->target() ->network() ->name())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverHostName, c->returnValue() ->setString(pConnection->currentServerName())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverdbServerHostName, c->returnValue() ->setString(pConnection->target() ->server() ->hostName())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverIpAddress, c->returnValue() ->setString(pConnection->target() ->server() ->ip())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverIsIPV6, c->returnValue() ->setBoolean(pConnection->target() ->server() ->isIPv6())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverIsSSL, c->returnValue() ->setBoolean(pConnection->target() ->server() ->useSSL())) STANDARD_SERVERINFO_TARGET_PARAMETER(context_kvs_fnc_serverSoftware, c->returnValue() ->setString(pConnection->serverInfo() ->software())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverPassword, c->returnValue() ->setString(pConnection->target() ->server() ->password())) STANDARD_IRC_CONNECTION_TARGET_PARAMETER(context_kvs_fnc_serverPort, c->returnValue() ->setInteger(pConnection->target() ->server() ->port())) static bool context_kvs_fnc_state(KviKvsModuleFunctionCall *c) |
| STANDARD_IRC_CONNECTION_TARGET_PARAMETER | ( | context_kvs_fnc_networkName | , |
| c-> | returnValue) ->setString(pConnection->currentNetworkName() | ||
| ) |
| STANDARD_IRC_CONNECTION_TARGET_PARAMETER | ( | context_kvs_fnc_connectionStartTime | , |
| c->returnValue() ->setInteger((kvs_int_t)(pConnection->statistics() ->connectionStartTime())); | |||
| ) |
1.8.7