#include <KviHttpRequest.h>
Enumerator |
---|
Overwrite |
|
RenameIncoming |
|
RenameExisting |
|
Resume |
|
Enumerator |
---|
HeadersOnly |
|
WholeFile |
|
Blocks |
|
Lines |
|
StoreToFile |
|
KviHttpRequest::KviHttpRequest |
( |
| ) |
|
References KviHttpRequestPrivate::bIsSSL, m_bFollowRedirects, m_bHeaderProcessed, m_p, m_pPrivateData, m_uConnectionTimeout, m_uMaximumRedirectCount, m_uRedirectCount, KviHttpRequestPrivate::pBuffer, KviHttpRequestPrivate::pConnectTimeoutTimer, KviHttpRequestPrivate::pFile, KviHttpRequestPrivate::pSocket, resetData(), and resetStatus().
KviHttpRequest::~KviHttpRequest |
( |
| ) |
|
|
virtual |
void KviHttpRequest::abort |
( |
| ) |
|
void KviHttpRequest::closeSocket |
( |
| ) |
|
|
private |
void KviHttpRequest::connectionEstablished |
( |
| ) |
|
|
signal |
void KviHttpRequest::contactingHost |
( |
const QString & |
ipandport | ) |
|
|
signal |
unsigned int KviHttpRequest::contentOffset |
( |
| ) |
|
|
inline |
void KviHttpRequest::data |
( |
const KviCString & |
data | ) |
|
|
signal |
bool KviHttpRequest::doConnect |
( |
| ) |
|
|
private |
References KviHttpRequestPrivate::bIsSSL, closeSocket(), connect(), KviUrl::host(), m_connectionUrl, m_p, m_uConnectionTimeout, KviHttpRequestPrivate::pConnectTimeoutTimer, KviUrl::port(), KviHttpRequestPrivate::pSocket, resolvingHost(), slotConnectionTimedOut(), slotSocketConnected(), slotSocketDisconnected(), slotSocketError(), slotSocketHostResolved(), slotSocketReadDataReady(), and KviHttpRequestPrivate::uPort.
Referenced by start().
const QString& KviHttpRequest::fileName |
( |
| ) |
|
|
inline |
bool KviHttpRequest::followRedirects |
( |
| ) |
const |
|
inline |
const QString& KviHttpRequest::lastError |
( |
| ) |
|
|
inline |
unsigned int KviHttpRequest::maxContentLength |
( |
| ) |
|
|
inline |
bool KviHttpRequest::openFile |
( |
| ) |
|
|
private |
References __tr2qs, d, i, m_eExistingFileAction, m_eProcessingType, m_p, m_szFileName, m_szLastError, Overwrite, KviHttpRequestPrivate::pFile, RenameExisting, RenameIncoming, resetInternalStatus(), Resume, StoreToFile, and terminated().
Referenced by processData().
void* KviHttpRequest::privateData |
( |
| ) |
|
|
inline |
References __tr2qs, KviDataBuffer::append(), binaryData(), Blocks, KviDataBuffer::clear(), KviCString::cutFromFirst(), KviDataBuffer::data(), emitLines(), KviDataBuffer::find(), Lines, m_bChunkedTransferEncoding, m_bHeaderProcessed, m_bIgnoreRemainingData, m_eProcessingType, m_p, m_szLastError, m_uMaxContentLength, m_uReceivedSize, m_uRemainingChunkSize, m_uTotalSize, openFile(), KviHttpRequestPrivate::pBuffer, KviHttpRequestPrivate::pFile, processHeader(), KviCString::ptr(), KviDataBuffer::remove(), resetInternalStatus(), KviDataBuffer::size(), StoreToFile, and terminated().
Referenced by slotSocketReadDataReady().
bool KviHttpRequest::processHeader |
( |
KviCString & |
szHeader | ) |
|
|
private |
References __tr2qs, KviPointerList< T >::append(), KviCString::cutLeft(), KviCString::cutToFirst(), KviCString::equalsCI(), KviPointerHashTable< Key, T >::find(), KviCString::findFirstIdx(), KviPointerList< T >::first(), KviCString::hasData(), header(), HeadersOnly, kvi_strEqualCI(), kvi_strEqualCSN(), KviCString::left(), m_bChunkedTransferEncoding, m_bFollowRedirects, m_bGzip, m_connectionUrl, m_eProcessingType, m_szLastError, m_uMaxContentLength, m_uMaximumRedirectCount, m_uRedirectCount, m_uRemainingChunkSize, m_url, m_uTotalSize, KviPointerList< T >::next(), KviCString::ptr(), receivedResponse(), KviPointerHashTable< Key, T >::replace(), resetInternalStatus(), s, KviPointerHashTable< Key, T >::setAutoDelete(), KviPointerList< T >::setAutoDelete(), start(), status(), szR, terminated(), KviCString::toUInt(), KviCString::trim(), KviUrl::url(), and url().
Referenced by processData().
void KviHttpRequest::receivedResponse |
( |
const QString & |
response | ) |
|
|
signal |
unsigned int KviHttpRequest::receivedSize |
( |
| ) |
|
|
inline |
void KviHttpRequest::requestSent |
( |
const QStringList & |
request | ) |
|
|
signal |
void KviHttpRequest::reset |
( |
| ) |
|
void KviHttpRequest::resetData |
( |
| ) |
|
|
private |
References m_bChunkedTransferEncoding, m_bGzip, m_bIgnoreRemainingData, m_connectionUrl, m_eExistingFileAction, m_eProcessingType, m_szFileName, m_uContentOffset, m_uMaxContentLength, m_uRedirectCount, m_uRemainingChunkSize, m_url, RenameIncoming, and WholeFile.
Referenced by KviHttpRequest(), and reset().
void KviHttpRequest::resetInternalStatus |
( |
| ) |
|
|
private |
References KviDataBuffer::clear(), closeSocket(), m_bHeaderProcessed, m_p, KviHttpRequestPrivate::pBuffer, KviHttpRequestPrivate::pConnectTimeoutTimer, KviHttpRequestPrivate::pFile, and KviHttpRequestPrivate::pSocket.
Referenced by abort(), openFile(), processData(), processHeader(), reset(), slotConnectionTimedOut(), slotSocketConnected(), slotSocketDisconnected(), slotSocketError(), start(), and ~KviHttpRequest().
void KviHttpRequest::resetStatus |
( |
| ) |
|
|
private |
void KviHttpRequest::resolvingHost |
( |
const QString & |
hostname | ) |
|
|
signal |
void KviHttpRequest::setConnectionTimeout |
( |
unsigned int |
uConnectionTimeout | ) |
|
|
inline |
void KviHttpRequest::setContentOffset |
( |
int |
uContentOffset | ) |
|
|
inline |
void KviHttpRequest::setFileName |
( |
const QString & |
szFileName | ) |
|
|
inline |
void KviHttpRequest::setFollowRedirects |
( |
bool |
bFollow | ) |
|
|
inline |
void KviHttpRequest::setMaxContentLength |
( |
int |
uMaxContentLength | ) |
|
|
inline |
void KviHttpRequest::setMaximumRedirectCount |
( |
unsigned int |
uCount | ) |
|
|
inline |
void KviHttpRequest::setPostData |
( |
const QString & |
szPostData | ) |
|
|
inline |
void KviHttpRequest::setPrivateData |
( |
void * |
ptr | ) |
|
|
inline |
void KviHttpRequest::setUrl |
( |
const KviUrl & |
u | ) |
|
|
inline |
void KviHttpRequest::slotConnectionTimedOut |
( |
| ) |
|
|
privateslot |
void KviHttpRequest::slotSocketConnected |
( |
| ) |
|
|
privateslot |
References __tr2qs, KviCString::append(), connectionEstablished(), KviCString::Format, HeadersOnly, KviUrl::host(), m_connectionUrl, m_eProcessingType, m_p, m_szLastError, m_szPostData, m_uContentOffset, KviUrl::path(), KviHttpRequestPrivate::pConnectTimeoutTimer, KviHttpRequestPrivate::pSocket, KviCString::ptr(), requestSent(), resetInternalStatus(), status(), and terminated().
Referenced by closeSocket(), and doConnect().
void KviHttpRequest::slotSocketDisconnected |
( |
| ) |
|
|
privateslot |
References __tr2qs, binaryData(), Blocks, KviDataBuffer::data(), data(), Lines, m_eProcessingType, m_p, m_szLastError, KviHttpRequestPrivate::pBuffer, KviHttpRequestPrivate::pFile, resetInternalStatus(), KviDataBuffer::size(), StoreToFile, terminated(), and WholeFile.
Referenced by closeSocket(), doConnect(), slotSocketError(), and slotSocketReadDataReady().
void KviHttpRequest::slotSocketError |
( |
QAbstractSocket::SocketError |
socketError | ) |
|
|
privateslot |
void KviHttpRequest::slotSocketHostResolved |
( |
| ) |
|
|
privateslot |
void KviHttpRequest::slotSocketReadDataReady |
( |
| ) |
|
|
privateslot |
bool KviHttpRequest::start |
( |
| ) |
|
References __tr2qs, KviHttpRequestPrivate::bIsSSL, doConnect(), KviQString::equalCI(), KviUrl::host(), m_connectionUrl, m_eExistingFileAction, m_eProcessingType, m_p, m_szFileName, m_szLastError, m_uContentOffset, KviUrl::protocol(), resetInternalStatus(), resetStatus(), Resume, and StoreToFile.
Referenced by get(), processHeader(), and HttpFileTransfer::startDownload().
void KviHttpRequest::status |
( |
const QString & |
message | ) |
|
|
signal |
void KviHttpRequest::terminated |
( |
bool |
bSuccess | ) |
|
|
signal |
unsigned int KviHttpRequest::totalSize |
( |
| ) |
|
|
inline |
const KviUrl& KviHttpRequest::url |
( |
| ) |
|
|
inline |
bool KviHttpRequest::m_bChunkedTransferEncoding |
|
protected |
bool KviHttpRequest::m_bFollowRedirects |
|
protected |
bool KviHttpRequest::m_bGzip |
|
protected |
bool KviHttpRequest::m_bHeaderProcessed |
|
protected |
bool KviHttpRequest::m_bIgnoreRemainingData |
|
protected |
KviUrl KviHttpRequest::m_connectionUrl |
|
protected |
Referenced by closeSocket(), doConnect(), emitLines(), KviHttpRequest(), openFile(), processData(), resetInternalStatus(), slotSocketConnected(), slotSocketDisconnected(), slotSocketError(), slotSocketHostResolved(), slotSocketReadDataReady(), start(), and ~KviHttpRequest().
void* KviHttpRequest::m_pPrivateData |
|
protected |
QString KviHttpRequest::m_szFileName |
|
protected |
QString KviHttpRequest::m_szLastError |
|
protected |
QString KviHttpRequest::m_szPostData |
|
protected |
unsigned int KviHttpRequest::m_uConnectionTimeout |
|
protected |
unsigned int KviHttpRequest::m_uContentOffset |
|
protected |
unsigned int KviHttpRequest::m_uMaxContentLength |
|
protected |
unsigned int KviHttpRequest::m_uMaximumRedirectCount |
|
protected |
unsigned int KviHttpRequest::m_uReceivedSize |
|
protected |
unsigned int KviHttpRequest::m_uRedirectCount |
|
protected |
unsigned int KviHttpRequest::m_uRemainingChunkSize |
|
protected |
unsigned int KviHttpRequest::m_uTotalSize |
|
protected |
The documentation for this class was generated from the following files: