KVIrc  4.9.2
DeveloperAPIs
Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Private Types | Private Attributes | List of all members
DccFileTransfer Class Reference

#include <DccFileTransfer.h>

+ Inheritance diagram for DccFileTransfer:

Public Slots

void abort ()
 
void retryDCC ()
 
void retryRevDCC ()
 
void retryTDCC ()
 

Public Member Functions

virtual bool active ()
 
unsigned int averageSpeed ()
 
int bandwidthLimit ()
 
 DccFileTransfer (DccDescriptor *dcc)
 
virtual const char * dccMarshalOutputContextString ()
 
virtual KviWindowdccMarshalOutputWindow ()
 
virtual int displayHeight (int iLineSpacing)
 
virtual void displayPaint (QPainter *p, int column, QRect rect)
 
bool doResume (const char *filename, const char *port, quint64 filePos)
 
virtual bool event (QEvent *e)
 
virtual void fillContextPopup (QMenu *m)
 
virtual void fillStatusString (QString &szBuffer)
 
virtual DccThreadgetSlaveThread ()
 
unsigned int instantSpeed ()
 
bool isFileUpload ()
 
virtual QString localFileName ()
 
bool resumeAccepted (const char *filename, const char *port, const char *szZeroPortTag)
 
void setBandwidthLimit (int iVal)
 
virtual QString tipText ()
 
unsigned int transferredBytes ()
 
 ~DccFileTransfer ()
 
- Public Member Functions inherited from KviFileTransfer
virtual void die ()
 
void displayUpdate ()
 
int id ()
 
void invokeTransferWindow (bool bCreateMinimized=false, bool bNoRaise=false)
 
 KviFileTransfer ()
 
KviFileTransferManagermanager ()
 
KviWindowoutputWindow ()
 
virtual QString retryCommand ()
 
void setDisplayItem (KviTalTableWidgetItemEx *i)
 
bool terminated ()
 
KviWindowtransferWindow ()
 
 ~KviFileTransfer ()
 
- Public Member Functions inherited from DccMarshalOutputContext
 DccMarshalOutputContext ()
 
virtual ~DccMarshalOutputContext ()
 

Static Public Member Functions

static void done ()
 
static bool handleResumeAccepted (const char *filename, const char *port, const char *szZeroPortTag)
 
static bool handleResumeRequest (const char *filename, const char *port, quint64 filePos)
 
static void init ()
 
static DccFileTransfernonFailedTransferWithLocalFileName (const QString &szLocalFileName)
 
static unsigned int runningTransfersCount ()
 
static unsigned int transferCount ()
 

Protected Slots

void bandwidthDialogDestroyed ()
 
void configureBandwidth ()
 
void connected ()
 
void connectionInProgress ()
 
void handleMarshalError (KviError::Code)
 
void resumeTimedOut ()
 
void sslError (const char *msg)
 
void startingSSLHandshake ()
 

Protected Member Functions

void addToTransferLog (const QString &s)
 
KviWindoweventWindow ()
 
void listenOrConnect ()
 
void outputAndLog (const QString &s)
 
void outputAndLog (int msgtype, const QString &s)
 
void startConnection ()
 

Private Types

enum  GeneralStatus { Connecting, Transferring, Success, Failure }
 

Private Attributes

GeneralStatus m_eGeneralStatus
 
DccFileTransferBandwidthDialogm_pBandwidthDialog
 
DccDescriptorm_pDescriptor
 
DccMarshalm_pMarshal
 
QTimer * m_pResumeTimer
 
DccRecvThreadm_pSlaveRecvThread
 
DccSendThreadm_pSlaveSendThread
 
KviCString m_szDccType
 
QString m_szStatusString
 
KviCString m_szTarget
 
QString m_szTransferIdString
 
QString m_szTransferLog
 
kvi_time_t m_tTransferEndTime
 
kvi_time_t m_tTransferStartTime
 
unsigned int m_uMaxBandwidth
 
quint64 m_uTotalFileSize
 

Additional Inherited Members

- Protected Attributes inherited from KviFileTransfer
int m_iId
 
KviTalTableWidgetItemExm_pDisplayItem
 

Member Enumeration Documentation

Enumerator
Connecting 
Transferring 
Success 
Failure 

Constructor & Destructor Documentation

DccFileTransfer::DccFileTransfer ( DccDescriptor dcc)
DccFileTransfer::~DccFileTransfer ( )

Member Function Documentation

void DccFileTransfer::abort ( )
slot
bool DccFileTransfer::active ( )
virtual

Implements KviFileTransfer.

References Connecting, m_eGeneralStatus, and Transferring.

Referenced by fillContextPopup().

void DccFileTransfer::addToTransferLog ( const QString &  s)
protected

References m_szTransferLog, and s.

Referenced by outputAndLog().

unsigned int DccFileTransfer::averageSpeed ( )
void DccFileTransfer::bandwidthDialogDestroyed ( )
protectedslot

References m_pBandwidthDialog.

Referenced by configureBandwidth().

int DccFileTransfer::bandwidthLimit ( )
void DccFileTransfer::configureBandwidth ( )
protectedslot
void DccFileTransfer::connected ( )
protectedslot

References __tr2qs_ctx(), DccDescriptor::bActive, _KviDccSendThreadOptions::bFastSend, _KviDccSendThreadOptions::bIsTdcc, DccDescriptor::bIsTdcc, _KviDccRecvThreadOptions::bIsTdcc, _KviDccSendThreadOptions::bNoAcks, _KviDccRecvThreadOptions::bNoAcks, DccDescriptor::bNoAcks, DccDescriptor::bRecvFile, _KviDccRecvThreadOptions::bResume, DccDescriptor::bResume, _KviDccRecvThreadOptions::bSend64BitAck, _KviDccRecvThreadOptions::bSendZeroAck, KviFileTransfer::displayUpdate(), eventWindow(), DccDescriptor::idString(), _KviDccSendThreadOptions::iIdleStepLengthInMSec, _KviDccRecvThreadOptions::iIdleStepLengthInMSec, _KviDccSendThreadOptions::iPacketSize, KVI_OPTION_BOOL, KVI_OPTION_UINT, kvi_unixTime, KviEvent_OnDCCFileTransferBegin, KviOption_boolDccSendForceIdleStep, KviOption_boolSend64BitAckInDccRecv, KviOption_boolSendZeroAckInDccRecv, KviOption_boolUseFastDccSend, KviOption_uintDccSendIdleStepInMSec, KviOption_uintDccSendPacketSize, KVS_TRIGGER_EVENT_1, DccMarshal::localIp(), DccMarshal::localPort(), m_eGeneralStatus, m_pDescriptor, m_pMarshal, m_pSlaveRecvThread, m_pSlaveSendThread, m_szStatusString, m_tTransferStartTime, m_uMaxBandwidth, o, outputAndLog(), DccMarshal::releaseSocket(), DccMarshal::remoteIp(), DccMarshal::remotePort(), s, KviThread::start(), _KviDccSendThreadOptions::szFileName, _KviDccRecvThreadOptions::szFileName, DccDescriptor::szFileSize, DccDescriptor::szHost, DccDescriptor::szIp, DccDescriptor::szLocalFileName, DccDescriptor::szPort, Transferring, _KviDccSendThreadOptions::uMaxBandwidth, _KviDccRecvThreadOptions::uMaxBandwidth, _KviDccSendThreadOptions::uStartPosition, and _KviDccRecvThreadOptions::uTotalFileSize.

Referenced by DccFileTransfer().

void DccFileTransfer::connectionInProgress ( )
protectedslot
const char * DccFileTransfer::dccMarshalOutputContextString ( )
virtual
KviWindow * DccFileTransfer::dccMarshalOutputWindow ( )
virtual
int DccFileTransfer::displayHeight ( int  iLineSpacing)
virtual

Reimplemented from KviFileTransfer.

void DccFileTransfer::displayPaint ( QPainter *  p,
int  column,
QRect  rect 
)
virtual
void DccFileTransfer::done ( )
static
bool DccFileTransfer::doResume ( const char *  filename,
const char *  port,
quint64  filePos 
)
bool DccFileTransfer::event ( QEvent *  e)
virtual
KviWindow * DccFileTransfer::eventWindow ( )
protected
void DccFileTransfer::fillContextPopup ( QMenu *  m)
virtual
void DccFileTransfer::fillStatusString ( QString &  szBuffer)
virtual
DccThread * DccFileTransfer::getSlaveThread ( )
virtual
void DccFileTransfer::handleMarshalError ( KviError::Code  eError)
protectedslot
bool DccFileTransfer::handleResumeAccepted ( const char *  filename,
const char *  port,
const char *  szZeroPortTag 
)
static
bool DccFileTransfer::handleResumeRequest ( const char *  filename,
const char *  port,
quint64  filePos 
)
static
void DccFileTransfer::init ( )
static
unsigned int DccFileTransfer::instantSpeed ( )
bool DccFileTransfer::isFileUpload ( )
inline
void DccFileTransfer::listenOrConnect ( )
protected
QString DccFileTransfer::localFileName ( )
virtual

Reimplemented from KviFileTransfer.

References m_pDescriptor, and DccDescriptor::szLocalFileName.

DccFileTransfer * DccFileTransfer::nonFailedTransferWithLocalFileName ( const QString &  szLocalFileName)
static
void DccFileTransfer::outputAndLog ( const QString &  s)
protected
void DccFileTransfer::outputAndLog ( int  msgtype,
const QString &  s 
)
protected
bool DccFileTransfer::resumeAccepted ( const char *  filename,
const char *  port,
const char *  szZeroPortTag 
)
void DccFileTransfer::resumeTimedOut ( )
protectedslot
void DccFileTransfer::retryDCC ( )
slot
void DccFileTransfer::retryRevDCC ( )
slot
void DccFileTransfer::retryTDCC ( )
slot
unsigned int DccFileTransfer::runningTransfersCount ( )
static
void DccFileTransfer::setBandwidthLimit ( int  iVal)
void DccFileTransfer::sslError ( const char *  msg)
protectedslot
void DccFileTransfer::startConnection ( )
protected
void DccFileTransfer::startingSSLHandshake ( )
protectedslot

References __tr2qs_ctx(), KVI_OUT_SSL, and outputAndLog().

Referenced by DccFileTransfer().

QString DccFileTransfer::tipText ( )
virtual
unsigned int DccFileTransfer::transferCount ( )
static
unsigned int DccFileTransfer::transferredBytes ( )

Member Data Documentation

GeneralStatus DccFileTransfer::m_eGeneralStatus
private
DccFileTransferBandwidthDialog* DccFileTransfer::m_pBandwidthDialog
private
DccDescriptor* DccFileTransfer::m_pDescriptor
private
DccMarshal* DccFileTransfer::m_pMarshal
private
QTimer* DccFileTransfer::m_pResumeTimer
private
DccRecvThread* DccFileTransfer::m_pSlaveRecvThread
private
DccSendThread* DccFileTransfer::m_pSlaveSendThread
private
KviCString DccFileTransfer::m_szDccType
private
QString DccFileTransfer::m_szStatusString
private
KviCString DccFileTransfer::m_szTarget
private
QString DccFileTransfer::m_szTransferIdString
private
QString DccFileTransfer::m_szTransferLog
private

Referenced by addToTransferLog(), and tipText().

kvi_time_t DccFileTransfer::m_tTransferEndTime
private
kvi_time_t DccFileTransfer::m_tTransferStartTime
private
unsigned int DccFileTransfer::m_uMaxBandwidth
private
quint64 DccFileTransfer::m_uTotalFileSize
private

Referenced by DccFileTransfer(), and displayPaint().


The documentation for this class was generated from the following files: