KVIrc
4.9.2
DeveloperAPIs
|
#include <HttpFileTransfer.h>
Public Member Functions | |
virtual bool | active () |
virtual int | displayHeight (int iLineSpacing) |
virtual void | displayPaint (QPainter *p, int column, QRect rect) |
virtual void | fillContextPopup (QMenu *m) |
HttpFileTransfer () | |
virtual QString | localFileName () |
KviHttpRequest * | request () |
void | setAutoClean (bool bAutoClean) |
void | setCompletionCallback (const QString &szCallback) |
void | setMagicIdentifier (const KviKvsVariant &vIdentifier) |
void | setNoOutput (bool bNoOutput) |
void | setNotifyCompletion (bool bNotify) |
virtual bool | startDownload () |
virtual QString | tipText () |
~HttpFileTransfer () | |
Public Member Functions inherited from KviFileTransfer | |
virtual void | die () |
void | displayUpdate () |
int | id () |
void | invokeTransferWindow (bool bCreateMinimized=false, bool bNoRaise=false) |
KviFileTransfer () | |
KviFileTransferManager * | manager () |
KviWindow * | outputWindow () |
virtual QString | retryCommand () |
void | setDisplayItem (KviTalTableWidgetItemEx *i) |
bool | terminated () |
KviWindow * | transferWindow () |
~KviFileTransfer () | |
Static Public Member Functions | |
static void | done () |
static void | init () |
static unsigned int | runningTransfers () |
Protected Slots | |
void | abort () |
void | autoClean () |
void | connectionEstablished () |
void | contactingHost (const QString &ipandport) |
void | headersReceived (KviPointerHashTable< const char *, KviCString > *h) |
void | receivedResponse (const QString &response) |
void | requestSent (const QStringList &sl) |
void | resolvingHost (const QString &hostname) |
void | statusMessage (const QString &txt) |
void | transferTerminated (bool bSuccess) |
Private Types | |
enum | GeneralStatus { Initializing, Connecting, Downloading, Success, Failure } |
Private Attributes | |
bool | m_bAutoClean |
bool | m_bNoOutput |
bool | m_bNotifyCompletion |
GeneralStatus | m_eGeneralStatus |
QStringList | m_lHeaders |
QStringList | m_lRequest |
QTimer * | m_pAutoCleanTimer |
KviHttpRequest * | m_pHttpRequest |
QString | m_szCompletionCallback |
QString | m_szStatusString |
int | m_TimerId |
kvi_time_t | m_tStartTime |
kvi_time_t | m_tTransferEndTime |
kvi_time_t | m_tTransferStartTime |
KviKvsVariant | m_vMagicIdentifier |
Additional Inherited Members | |
Protected Attributes inherited from KviFileTransfer | |
int | m_iId |
KviTalTableWidgetItemEx * | m_pDisplayItem |
|
private |
HttpFileTransfer::HttpFileTransfer | ( | ) |
References __tr2qs_ctx(), KviPointerList< T >::append(), connect(), connectionEstablished(), contactingHost(), headersReceived(), init(), Initializing, kvi_unixTime, m_bAutoClean, m_bNoOutput, m_bNotifyCompletion, m_eGeneralStatus, m_pAutoCleanTimer, m_pHttpRequest, m_szStatusString, m_tStartTime, m_tTransferEndTime, m_tTransferStartTime, receivedResponse(), requestSent(), resolvingHost(), statusMessage(), KviFileTransfer::terminated(), and transferTerminated().
HttpFileTransfer::~HttpFileTransfer | ( | ) |
References m_pAutoCleanTimer, m_pHttpRequest, and KviPointerList< T >::removeRef().
|
protectedslot |
References KviHttpRequest::abort(), and m_pHttpRequest.
Referenced by fillContextPopup().
|
virtual |
Implements KviFileTransfer.
References Connecting, Downloading, and m_eGeneralStatus.
Referenced by fillContextPopup().
|
protectedslot |
References KviFileTransfer::die(), and m_TimerId.
Referenced by transferTerminated().
|
protectedslot |
References __tr2qs_ctx(), KviFileTransfer::displayUpdate(), and m_szStatusString.
Referenced by HttpFileTransfer().
|
protectedslot |
References __tr2qs_ctx(), KviFileTransfer::displayUpdate(), and m_szStatusString.
Referenced by HttpFileTransfer().
|
virtual |
Reimplemented from KviFileTransfer.
|
virtual |
Implements KviFileTransfer.
References __tr2qs_ctx(), COLUMN_FILEINFO, COLUMN_PROGRESS, COLUMN_TRANSFERTYPE, Connecting, Downloading, Failure, KviHttpRequest::fileName(), KviNetUtils::formatNetworkBandwidthString(), g_pHttpIcon, Initializing, kvi_timeSpan, kvi_unixTime, m_eGeneralStatus, m_pHttpRequest, m_szStatusString, m_tTransferEndTime, m_tTransferStartTime, KviQString::makeSizeReadable(), KviHttpRequest::receivedSize(), KviTimeUtils::secondsToDaysHoursMinsSecs(), Success, KviHttpRequest::totalSize(), KviUrl::url(), and KviHttpRequest::url().
|
static |
References KviPointerList< T >::first(), g_pHttpFileTransfers, g_pHttpIcon, and t().
Referenced by http_module_cleanup().
|
virtual |
Implements KviFileTransfer.
References __tr2qs_ctx(), abort(), and active().
|
protectedslot |
|
static |
References g_pHttpIcon, g_pIconManager, KviIconManager::getImage(), and KviPointerList< T >::setAutoDelete().
Referenced by http_module_init(), and HttpFileTransfer().
|
virtual |
Reimplemented from KviFileTransfer.
References KviHttpRequest::fileName(), and m_pHttpRequest.
|
protectedslot |
References __tr2qs_ctx(), KviFileTransfer::displayUpdate(), Downloading, kvi_unixTime, m_eGeneralStatus, m_lHeaders, m_szStatusString, and m_tTransferStartTime.
Referenced by HttpFileTransfer().
|
inline |
References m_pHttpRequest.
Referenced by http_kvs_complete_get().
|
protectedslot |
References __tr2qs_ctx(), KviFileTransfer::displayUpdate(), KVI_OUT_GENERICSTATUS, m_bNoOutput, m_lRequest, m_szStatusString, KviWindow::output(), and KviFileTransfer::transferWindow().
Referenced by HttpFileTransfer().
|
protectedslot |
References __tr2qs_ctx(), KviFileTransfer::displayUpdate(), and m_szStatusString.
Referenced by HttpFileTransfer().
|
static |
References KviPointerList< T >::count().
Referenced by http_module_can_unload().
|
inline |
References m_bAutoClean.
Referenced by http_kvs_complete_get().
|
inline |
References m_szCompletionCallback.
Referenced by http_kvs_complete_get().
|
inline |
References m_vMagicIdentifier.
Referenced by http_kvs_complete_get().
|
inline |
References m_bNoOutput.
Referenced by http_kvs_complete_get().
|
inline |
References m_bNotifyCompletion.
Referenced by http_kvs_complete_get().
|
virtual |
References Connecting, m_eGeneralStatus, m_pHttpRequest, and KviHttpRequest::start().
Referenced by http_kvs_complete_get().
|
protectedslot |
References KVI_OUT_GENERICSTATUS, m_bNoOutput, KviWindow::output(), and KviFileTransfer::transferWindow().
Referenced by HttpFileTransfer().
|
virtual |
Reimplemented from KviFileTransfer.
References m_lHeaders, m_lRequest, and s.
|
protectedslot |
References __tr2qs_ctx(), KviApplication::activeConsole(), KviKvsVariantList::append(), autoClean(), connect(), KviFileTransfer::displayUpdate(), Failure, KviApplication::fileDownloadTerminated(), KviHttpRequest::fileName(), g_pApp, KVI_OUT_GENERICERROR, KVI_OUT_GENERICSUCCESS, kvi_unixTime, KviEvent_OnHTTPGetTerminated, KVS_TRIGGER_EVENT, KviHttpRequest::lastError(), m_bAutoClean, m_bNoOutput, m_bNotifyCompletion, m_eGeneralStatus, m_pAutoCleanTimer, m_pHttpRequest, m_szCompletionCallback, m_szStatusString, m_TimerId, m_tTransferEndTime, m_vMagicIdentifier, KviWindow::output(), KviKvsScript::run(), Success, KviFileTransfer::transferWindow(), KviUrl::url(), and KviHttpRequest::url().
Referenced by HttpFileTransfer().
|
private |
Referenced by HttpFileTransfer(), setAutoClean(), and transferTerminated().
|
private |
Referenced by headersReceived(), HttpFileTransfer(), requestSent(), setNoOutput(), statusMessage(), and transferTerminated().
|
private |
Referenced by HttpFileTransfer(), setNotifyCompletion(), and transferTerminated().
|
private |
Referenced by active(), displayPaint(), HttpFileTransfer(), receivedResponse(), startDownload(), and transferTerminated().
|
private |
Referenced by headersReceived(), receivedResponse(), and tipText().
|
private |
Referenced by requestSent(), and tipText().
|
private |
Referenced by HttpFileTransfer(), transferTerminated(), and ~HttpFileTransfer().
|
private |
Referenced by abort(), displayPaint(), HttpFileTransfer(), localFileName(), request(), startDownload(), transferTerminated(), and ~HttpFileTransfer().
|
private |
Referenced by setCompletionCallback(), and transferTerminated().
|
private |
|
private |
Referenced by autoClean(), and transferTerminated().
|
private |
Referenced by HttpFileTransfer().
|
private |
Referenced by displayPaint(), HttpFileTransfer(), and transferTerminated().
|
private |
Referenced by displayPaint(), HttpFileTransfer(), and receivedResponse().
|
private |
Referenced by setMagicIdentifier(), and transferTerminated().