KVIrc 5.2.6
Developer APIs
KvsObject_http.cpp File Reference
#include "KvsObject_http.h"
#include "kvi_debug.h"
#include "KviError.h"
#include "KviLocale.h"
#include <qhttp.h>
#include <QUrl>
#include <QSslError>

Functions

getDict clear ()
 
 connect (m_pHttp, SIGNAL(dataReadProgress(int, int)), this, SLOT(slotDataReadProgress(int, int)))
 
 connect (m_pHttp, SIGNAL(dataSendProgress(int, int)), this, SLOT(slotDataSendProgress(int, int)))
 
 connect (m_pHttp, SIGNAL(done(bool)), this, SLOT(slotDone(bool)))
 
 connect (m_pHttp, SIGNAL(readyRead(const QHttpResponseHeader &)), this, SLOT(slotReadyRead(const QHttpResponseHeader &)))
 
 connect (m_pHttp, SIGNAL(requestFinished(int, bool)), this, SLOT(slotRequestFinished(int, bool)))
 
 connect (m_pHttp, SIGNAL(requestStarted(int)), this, SLOT(slotRequestStarted(int)))
 
 connect (m_pHttp, SIGNAL(responseHeaderReceived(const QHttpResponseHeader &)), this, SLOT(slotResponseHeaderReceived(const QHttpResponseHeader &)))
 
 connect (m_pHttp, SIGNAL(sslErrors(const QList< QSslError > &)), this, SLOT(slotSslErrors(const QList< QSslError > &)))
 
 connect (m_pHttp, SIGNAL(stateChanged(int)), this, SLOT(slotStateChanged(int)))
 
QHashIterator< int, QFile * > t (getDict)
 
 while (t.hasNext())
 

Variables

 m_bAbort = false
 
 m_bEnableForceRedirect = false
 
 m_pHttp = new QHttp()
 
const char *const ssl_errors_tbl []
 

Function Documentation

◆ clear()

getDict clear ( )

◆ connect() [1/9]

connect ( m_pHttp ,
SIGNAL(dataReadProgress(int, int)) ,
this ,
SLOT(slotDataReadProgress(int, int))  )

◆ connect() [2/9]

connect ( m_pHttp ,
SIGNAL(dataSendProgress(int, int)) ,
this ,
SLOT(slotDataSendProgress(int, int))  )

◆ connect() [3/9]

connect ( m_pHttp ,
SIGNAL(done(bool)) ,
this ,
SLOT(slotDone(bool))  )

◆ connect() [4/9]

connect ( m_pHttp ,
SIGNAL(readyRead(const QHttpResponseHeader &)) ,
this ,
SLOT(slotReadyRead(const QHttpResponseHeader &))  )

◆ connect() [5/9]

connect ( m_pHttp ,
SIGNAL(requestFinished(int, bool)) ,
this ,
SLOT(slotRequestFinished(int, bool))  )

◆ connect() [6/9]

connect ( m_pHttp ,
SIGNAL(requestStarted(int)) ,
this ,
SLOT(slotRequestStarted(int))  )

◆ connect() [7/9]

connect ( m_pHttp ,
SIGNAL(responseHeaderReceived(const QHttpResponseHeader &)) ,
this ,
SLOT(slotResponseHeaderReceived(const QHttpResponseHeader &))  )

◆ connect() [8/9]

connect ( m_pHttp ,
SIGNAL(sslErrors(const QList< QSslError > &)) ,
this ,
SLOT(slotSslErrors(const QList< QSslError > &))  )

◆ connect() [9/9]

connect ( m_pHttp ,
SIGNAL(stateChanged(int)) ,
this ,
SLOT(slotStateChanged(int))  )

◆ t()

QHashIterator< int, QFile * > t ( getDict )

◆ while()

while ( t. hasNext())

References t.

Variable Documentation

◆ m_bAbort

m_bAbort = false

◆ m_bEnableForceRedirect

m_bEnableForceRedirect = false

◆ m_pHttp

delete m_pHttp = new QHttp()

◆ ssl_errors_tbl

const char* const ssl_errors_tbl[]
Initial value:
= {
"NoError",
"UnableToGetIssuerCertificate",
"UnableToDecryptCertificateSignature",
"UnableToDecodeIssuerPublicKey",
"CertificateSignatureFailed",
"CertificateNotYetValid",
"CertificateExpired",
"InvalidNotBeforeField",
"InvalidNotAfterField",
"SelfSignedCertificate",
"SelfSignedCertificateInChain",
"UnableToGetLocalIssuerCertificate",
"UnableToVerifyFirstCertificate",
"CertificateRevoked",
"InvalidCaCertificate",
"PathLengthExceeded",
"InvalidPurpose",
"CertificateUntrusted",
"CertificateRejected",
"SubjectIssuerMismatch",
"AuthorityIssuerSerialNumberMismatch",
"NoPeerCertificate",
"HostNameMismatch",
"UnspecifiedError",
"NoSslSupport"
}

Referenced by KvsObject_http::slotSslErrors().