KVIrc  4.9.2
DeveloperAPIs
Classes | Macros | Typedefs | Functions | Variables
requests.cpp File Reference
#include "DccVoiceGsmCodec.h"
#include "DccBroker.h"
#include "DccVideoWindow.h"
#include "DccVoiceWindow.h"
#include "DccUtils.h"
#include "DccFileTransfer.h"
#include "kvi_debug.h"
#include "kvi_settings.h"
#include "KviCString.h"
#include "KviModule.h"
#include "KviIrcServerParser.h"
#include "KviLocale.h"
#include "kvi_out.h"
#include "KviConsoleWindow.h"
#include "KviNetUtils.h"
#include "KviMainWindow.h"
#include "KviError.h"
#include "KviOptions.h"
#include "kvi_defaults.h"
#include "KviSharedFilesManager.h"
#include "KviControlCodes.h"
#include "KviApplication.h"
#include "KviIrcConnection.h"
#include "KviIrcConnectionUserInfo.h"
#include <QFileInfo>

Classes

struct  _dccParseProcEntry
 

Macros

#define _KVI_DEBUG_CHECK_RANGE_
 
#define KVI_NUM_KNOWN_DCC_TYPES   28
 

Typedefs

typedef void(* dccParseProc )(KviDccRequest *)
 
typedef struct _dccParseProcEntry dccParseProcEntry
 

Functions

static void dcc_fill_local_nick_user_host (DccDescriptor *d, KviDccRequest *dcc)
 
static bool dcc_module_check_concurrent_transfers_limit (KviDccRequest *dcc)
 
static bool dcc_module_check_limits (KviDccRequest *dcc)
 
static bool dcc_module_normalize_target_data (KviDccRequest *dcc, KviCString &ipaddr, KviCString &port)
 
static void dcc_module_reply_errmsg (KviDccRequest *dcc, const QString &errText)
 
static void dcc_module_request_error (KviDccRequest *dcc, const QString &errText)
 
static void dcc_module_set_dcc_type (DccDescriptor *d, const char *szBaseType)
 
KVIMODULEEXPORTFUNC void dccModuleCtcpDccParseRoutine (KviDccRequest *dcc)
 
static void dccModuleParseDccAccept (KviDccRequest *dcc)
 
static void dccModuleParseDccCanvas (KviDccRequest *dcc)
 
static void dccModuleParseDccChat (KviDccRequest *dcc)
 
static void dccModuleParseDccGet (KviDccRequest *dcc)
 
static void dccModuleParseDccList (KviDccRequest *)
 
static void dccModuleParseDccRecv (KviDccRequest *dcc)
 
static void dccModuleParseDccResume (KviDccRequest *dcc)
 
static void dccModuleParseDccRSend (KviDccRequest *dcc)
 
static void dccModuleParseDccSend (KviDccRequest *dcc)
 
static void dccModuleParseDccVideo (KviDccRequest *dcc)
 
static void dccModuleParseDccVoice (KviDccRequest *dcc)
 

Variables

static dccParseProcEntry dccParseProcTable [KVI_NUM_KNOWN_DCC_TYPES]
 
DccBrokerg_pDccBroker
 
KVIRC_API KviSharedFilesManagerg_pSharedFilesManager
 

Macro Definition Documentation

#define _KVI_DEBUG_CHECK_RANGE_
#define KVI_NUM_KNOWN_DCC_TYPES   28

Typedef Documentation

typedef void(* dccParseProc)(KviDccRequest *)

Function Documentation

static void dcc_fill_local_nick_user_host ( DccDescriptor d,
KviDccRequest dcc 
)
static
static bool dcc_module_check_concurrent_transfers_limit ( KviDccRequest dcc)
static
static bool dcc_module_check_limits ( KviDccRequest dcc)
static
static bool dcc_module_normalize_target_data ( KviDccRequest dcc,
KviCString ipaddr,
KviCString port 
)
static
static void dcc_module_reply_errmsg ( KviDccRequest dcc,
const QString &  errText 
)
static
static void dcc_module_request_error ( KviDccRequest dcc,
const QString &  errText 
)
static
static void dcc_module_set_dcc_type ( DccDescriptor d,
const char *  szBaseType 
)
static
KVIMODULEEXPORTFUNC void dccModuleCtcpDccParseRoutine ( KviDccRequest dcc)
static void dccModuleParseDccAccept ( KviDccRequest dcc)
static
static void dccModuleParseDccCanvas ( KviDccRequest dcc)
static
static void dccModuleParseDccChat ( KviDccRequest dcc)
static
static void dccModuleParseDccGet ( KviDccRequest dcc)
static

COMPILE_SSL_SUPPORT

COMPILE_SSL_SUPPORT

References __tr2qs_ctx(), __tr_ctx, KviSharedFile::absFilePath(), KviSharedFilesManager::addSharedFile(), DccDescriptor::bActive, DccDescriptor::bDoTimeout, DccDescriptor::bIsTdcc, DccDescriptor::bNoAcks, DccDescriptor::bOverrideMinimize, DccDescriptor::bRecvFile, DccDescriptor::bSendRequest, KviWindow::connection(), DccDescriptor::console(), KviIrcMessage::console(), KviCString::contains(), _KviDccRequest::ctcpMsg, KviCString::cutRight(), d, dcc_fill_local_nick_user_host(), dcc_kvs_get_listen_ip_address(), dcc_module_check_concurrent_transfers_limit(), dcc_module_check_limits(), dcc_module_request_error(), dcc_module_set_dcc_type(), KviWindow::decodeText(), KviIrcConnection::encodeText(), KviSharedFile::fileSize(), g_pSharedFilesManager, KviIrcMessage::haltOutput(), KviIrcMask::host(), KVI_OPTION_BOOL, KVI_OPTION_STRING, KVI_OUT_DCCMSG, KviOption_boolCantAcceptIncomingDccConnections, KviOption_boolDccSendFakeAddressByDefault, KviOption_stringDefaultDccFakeAddress, KviSharedFilesManager::lookupSharedFile(), KviIrcMask::mask(), _KviCtcpMessage::msg, KviSharedFile::name(), KviIrcMask::nick(), KviIrcMask::NickUserHost, o, KviWindow::output(), _KviDccRequest::pConsole, KviCString::prepend(), _KviCtcpMessage::pSource, KviCString::ptr(), DccBroker::sendFileExecute(), KviIrcConnection::sendFmtData(), DccDescriptor::szFakeIp, DccDescriptor::szHost, DccDescriptor::szIp, DccDescriptor::szListenIp, DccDescriptor::szListenPort, DccDescriptor::szLocalFileName, DccDescriptor::szNick, _KviDccRequest::szParam1, _KviDccRequest::szParam2, DccDescriptor::szPort, _KviDccRequest::szType, DccDescriptor::szType, DccDescriptor::szUser, KviCString::toUInt(), DccDescriptor::triggerCreationEvent(), and KviIrcMask::user().

static void dccModuleParseDccList ( KviDccRequest )
static
static void dccModuleParseDccRecv ( KviDccRequest dcc)
static

COMPILE_SSL_SUPPORT

COMPILE_SSL_SUPPORT

References __tr2qs_ctx(), KviSharedFile::absFilePath(), DccDescriptor::bActive, DccDescriptor::bAutoAccept, DccDescriptor::bDoTimeout, DccDescriptor::bIsIncomingAvatar, DccDescriptor::bIsTdcc, DccDescriptor::bNoAcks, KviControlCodes::Bold, DccDescriptor::bOverrideMinimize, DccDescriptor::bRecvFile, KviIrcMessage::console(), KviCString::contains(), _KviDccRequest::ctcpMsg, KviCString::cutRight(), KviCString::cutToLast(), d, dcc_fill_local_nick_user_host(), dcc_module_check_concurrent_transfers_limit(), dcc_module_check_limits(), dcc_module_normalize_target_data(), dcc_module_request_error(), dcc_module_set_dcc_type(), KviSharedFile::fileSize(), g_pSharedFilesManager, KviIrcMessage::haltOutput(), KviIrcMask::host(), KviCString::isUnsignedNum(), KVI_OUT_DCCMSG, KviSharedFilesManager::lookupSharedFile(), _KviCtcpMessage::msg, KviIrcMask::nick(), o, KviWindow::output(), KviWindow::outputNoFmt(), _KviDccRequest::pConsole, KviCString::prepend(), _KviCtcpMessage::pSource, KviCString::ptr(), DccBroker::sendFileExecute(), DccDescriptor::szFileName, DccDescriptor::szFileSize, DccDescriptor::szHost, DccDescriptor::szIp, DccDescriptor::szLocalFileName, DccDescriptor::szLocalFileSize, DccDescriptor::szNick, _KviDccRequest::szParam1, _KviDccRequest::szParam2, _KviDccRequest::szParam3, _KviDccRequest::szParam4, DccDescriptor::szPort, _KviDccRequest::szType, DccDescriptor::szUser, KviCString::toUInt(), DccDescriptor::triggerCreationEvent(), and KviIrcMask::user().

Referenced by dccModuleParseDccSend().

static void dccModuleParseDccResume ( KviDccRequest dcc)
static
static void dccModuleParseDccRSend ( KviDccRequest dcc)
static

COMPILE_SSL_SUPPORT

COMPILE_SSL_SUPPORT

References __tr2qs_ctx(), __tr_ctx, DccDescriptor::bActive, DccDescriptor::bAutoAccept, DccDescriptor::bIsIncomingAvatar, DccDescriptor::bIsTdcc, DccDescriptor::bNoAcks, DccDescriptor::bOverrideMinimize, DccDescriptor::bRecvFile, DccDescriptor::bResume, DccDescriptor::bSendRequest, DccDescriptor::console(), KviIrcMessage::console(), KviCString::contains(), _KviDccRequest::ctcpMsg, KviCString::cutRight(), KviCString::cutToLast(), d, dcc_fill_local_nick_user_host(), dcc_kvs_get_listen_ip_address(), dcc_module_check_concurrent_transfers_limit(), dcc_module_check_limits(), dcc_module_request_error(), dcc_module_set_dcc_type(), KviWindow::decodeText(), KviApplication::findPendingAvatarChange(), g_pApp, KviIrcMessage::haltOutput(), KviIrcMask::host(), KviCString::isUnsignedNum(), KVI_OPTION_BOOL, KVI_OPTION_STRING, KVI_OUT_DCCMSG, KviOption_boolAutoAcceptDccSend, KviOption_boolAutoAcceptIncomingAvatars, KviOption_boolDccSendFakeAddressByDefault, KviOption_stringDefaultDccFakeAddress, _KviCtcpMessage::msg, KviIrcMask::nick(), KviWindow::output(), _KviDccRequest::pConsole, _KviCtcpMessage::pSource, KviCString::ptr(), DccBroker::recvFileManage(), DccDescriptor::szFakeIp, DccDescriptor::szFileName, DccDescriptor::szFileSize, DccDescriptor::szHost, DccDescriptor::szIp, DccDescriptor::szListenIp, DccDescriptor::szListenPort, DccDescriptor::szNick, _KviDccRequest::szParam1, _KviDccRequest::szParam2, DccDescriptor::szPort, _KviDccRequest::szType, DccDescriptor::szUser, DccDescriptor::triggerCreationEvent(), and KviIrcMask::user().

static void dccModuleParseDccSend ( KviDccRequest dcc)
static

COMPILE_SSL_SUPPORT

COMPILE_SSL_SUPPORT

References __tr2qs_ctx(), DccDescriptor::bActive, DccDescriptor::bAutoAccept, DccDescriptor::bIsIncomingAvatar, DccDescriptor::bIsTdcc, DccDescriptor::bNoAcks, DccDescriptor::bOverrideMinimize, DccDescriptor::bRecvFile, DccDescriptor::bResume, DccDescriptor::bSendRequest, DccDescriptor::console(), KviIrcMessage::console(), KviCString::contains(), _KviDccRequest::ctcpMsg, KviCString::cutRight(), KviCString::cutToLast(), d, dcc_fill_local_nick_user_host(), dcc_kvs_get_listen_ip_address(), dcc_module_check_concurrent_transfers_limit(), dcc_module_check_limits(), dcc_module_normalize_target_data(), dcc_module_request_error(), dcc_module_set_dcc_type(), dccModuleParseDccRecv(), KviWindow::decodeText(), KviApplication::findPendingAvatarChange(), DccBroker::findZeroPortTag(), g_pApp, KviIrcMessage::haltOutput(), KviCString::hasData(), KviIrcMask::host(), KviCString::isUnsignedNum(), DccDescriptor::isZeroPortRequest(), KVI_OPTION_BOOL, KVI_OPTION_STRING, KVI_OUT_DCCMSG, kvi_strEqualCS(), KviOption_boolAutoAcceptDccSend, KviOption_boolAutoAcceptIncomingAvatars, KviOption_boolDccSendFakeAddressByDefault, KviOption_stringDefaultDccFakeAddress, KviDccZeroPortTag::m_uResumePosition, _KviCtcpMessage::msg, KviIrcMask::nick(), KviWindow::output(), _KviDccRequest::pConsole, _KviCtcpMessage::pSource, KviCString::ptr(), DccBroker::recvFileManage(), DccBroker::removeZeroPortTag(), DccDescriptor::setZeroPortRequestTag(), KviCString::sprintf(), DccDescriptor::szFakeIp, DccDescriptor::szFileName, DccDescriptor::szFileSize, DccDescriptor::szHost, DccDescriptor::szIp, DccDescriptor::szListenIp, DccDescriptor::szListenPort, DccDescriptor::szLocalFileSize, DccDescriptor::szNick, _KviDccRequest::szParam1, _KviDccRequest::szParam2, _KviDccRequest::szParam3, _KviDccRequest::szParam4, _KviDccRequest::szParam5, DccDescriptor::szPort, _KviDccRequest::szType, DccDescriptor::szUser, t(), DccDescriptor::triggerCreationEvent(), and KviIrcMask::user().

static void dccModuleParseDccVideo ( KviDccRequest dcc)
static
static void dccModuleParseDccVoice ( KviDccRequest dcc)
static

Variable Documentation

dccParseProcEntry dccParseProcTable[KVI_NUM_KNOWN_DCC_TYPES]
static
DccBroker* g_pDccBroker

Referenced by dcc_module_cleanup().

KVIRC_API KviSharedFilesManager* g_pSharedFilesManager