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

#include <HttpFileTransfer.h>

+ Inheritance diagram for HttpFileTransfer:

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 ()
 
KviHttpRequestrequest ()
 
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 ()
 
KviFileTransferManagermanager ()
 
KviWindowoutputWindow ()
 
virtual QString retryCommand ()
 
void setDisplayItem (KviTalTableWidgetItemEx *i)
 
bool terminated ()
 
KviWindowtransferWindow ()
 
 ~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
 
KviHttpRequestm_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
 
KviTalTableWidgetItemExm_pDisplayItem
 

Member Enumeration Documentation

Enumerator
Initializing 
Connecting 
Downloading 
Success 
Failure 

Constructor & Destructor Documentation

HttpFileTransfer::HttpFileTransfer ( )
HttpFileTransfer::~HttpFileTransfer ( )

Member Function Documentation

void HttpFileTransfer::abort ( )
protectedslot
bool HttpFileTransfer::active ( )
virtual

Implements KviFileTransfer.

References Connecting, Downloading, and m_eGeneralStatus.

Referenced by fillContextPopup().

void HttpFileTransfer::autoClean ( )
protectedslot

References KviFileTransfer::die(), and m_TimerId.

Referenced by transferTerminated().

void HttpFileTransfer::connectionEstablished ( )
protectedslot
void HttpFileTransfer::contactingHost ( const QString &  ipandport)
protectedslot
int HttpFileTransfer::displayHeight ( int  iLineSpacing)
virtual

Reimplemented from KviFileTransfer.

void HttpFileTransfer::displayPaint ( QPainter *  p,
int  column,
QRect  rect 
)
virtual
void HttpFileTransfer::done ( )
static
void HttpFileTransfer::fillContextPopup ( QMenu *  m)
virtual

Implements KviFileTransfer.

References __tr2qs_ctx(), abort(), and active().

void HttpFileTransfer::headersReceived ( KviPointerHashTable< const char *, KviCString > *  h)
protectedslot
void HttpFileTransfer::init ( )
static
QString HttpFileTransfer::localFileName ( )
virtual

Reimplemented from KviFileTransfer.

References KviHttpRequest::fileName(), and m_pHttpRequest.

void HttpFileTransfer::receivedResponse ( const QString &  response)
protectedslot
KviHttpRequest* HttpFileTransfer::request ( )
inline

References m_pHttpRequest.

Referenced by http_kvs_complete_get().

void HttpFileTransfer::requestSent ( const QStringList &  sl)
protectedslot
void HttpFileTransfer::resolvingHost ( const QString &  hostname)
protectedslot
unsigned int HttpFileTransfer::runningTransfers ( )
static
void HttpFileTransfer::setAutoClean ( bool  bAutoClean)
inline

References m_bAutoClean.

Referenced by http_kvs_complete_get().

void HttpFileTransfer::setCompletionCallback ( const QString &  szCallback)
inline

References m_szCompletionCallback.

Referenced by http_kvs_complete_get().

void HttpFileTransfer::setMagicIdentifier ( const KviKvsVariant vIdentifier)
inline

References m_vMagicIdentifier.

Referenced by http_kvs_complete_get().

void HttpFileTransfer::setNoOutput ( bool  bNoOutput)
inline

References m_bNoOutput.

Referenced by http_kvs_complete_get().

void HttpFileTransfer::setNotifyCompletion ( bool  bNotify)
inline

References m_bNotifyCompletion.

Referenced by http_kvs_complete_get().

bool HttpFileTransfer::startDownload ( )
virtual
void HttpFileTransfer::statusMessage ( const QString &  txt)
protectedslot
QString HttpFileTransfer::tipText ( )
virtual

Reimplemented from KviFileTransfer.

References m_lHeaders, m_lRequest, and s.

void HttpFileTransfer::transferTerminated ( bool  bSuccess)
protectedslot

Member Data Documentation

bool HttpFileTransfer::m_bAutoClean
private
bool HttpFileTransfer::m_bNoOutput
private
bool HttpFileTransfer::m_bNotifyCompletion
private
GeneralStatus HttpFileTransfer::m_eGeneralStatus
private
QStringList HttpFileTransfer::m_lHeaders
private
QStringList HttpFileTransfer::m_lRequest
private

Referenced by requestSent(), and tipText().

QTimer* HttpFileTransfer::m_pAutoCleanTimer
private
KviHttpRequest* HttpFileTransfer::m_pHttpRequest
private
QString HttpFileTransfer::m_szCompletionCallback
private
QString HttpFileTransfer::m_szStatusString
private
int HttpFileTransfer::m_TimerId
private

Referenced by autoClean(), and transferTerminated().

kvi_time_t HttpFileTransfer::m_tStartTime
private

Referenced by HttpFileTransfer().

kvi_time_t HttpFileTransfer::m_tTransferEndTime
private
kvi_time_t HttpFileTransfer::m_tTransferStartTime
private
KviKvsVariant HttpFileTransfer::m_vMagicIdentifier
private

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