diff options
| author | 2007-01-19 02:11:09 +0000 | |
|---|---|---|
| committer | 2007-01-19 02:11:09 +0000 | |
| commit | ecd49ed1192c79a3b55cdc4130bec1d4182f71b4 (patch) | |
| tree | 2ffd5b617136b4296e25eb3c66a5cd27180f21c8 /src/modules/http | |
| parent | *AUTOMATICALLY* updated KVI_SOURCES_DATE variable (diff) | |
| download | KVIrc-ecd49ed1192c79a3b55cdc4130bec1d4182f71b4.tar.gz KVIrc-ecd49ed1192c79a3b55cdc4130bec1d4182f71b4.tar.bz2 KVIrc-ecd49ed1192c79a3b55cdc4130bec1d4182f71b4.zip | |
More Qt 4.x port
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@195 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/http')
| -rw-r--r-- | src/modules/http/httpfiletransfer.cpp | 24 | ||||
| -rw-r--r-- | src/modules/http/httpfiletransfer.h | 10 |
2 files changed, 17 insertions, 17 deletions
diff --git a/src/modules/http/httpfiletransfer.cpp b/src/modules/http/httpfiletransfer.cpp index eab8608b0..37bb9a251 100644 --- a/src/modules/http/httpfiletransfer.cpp +++ b/src/modules/http/httpfiletransfer.cpp @@ -58,13 +58,13 @@ KviHttpFileTransfer::KviHttpFileTransfer() m_pHttpRequest = new KviHttpRequest(); - connect(m_pHttpRequest,SIGNAL(status(const char *)),this,SLOT(statusMessage(const char *))); + connect(m_pHttpRequest,SIGNAL(status(const QString &)),this,SLOT(statusMessage(const QString &))); connect(m_pHttpRequest,SIGNAL(terminated(bool)),this,SLOT(transferTerminated(bool))); - connect(m_pHttpRequest,SIGNAL(header(QAsciiDict<KviStr> *)),this,SLOT(headersReceived(QAsciiDict<KviStr> *))); - connect(m_pHttpRequest,SIGNAL(resolvingHost(const char *)),this,SLOT(resolvingHost(const char *))); + connect(m_pHttpRequest,SIGNAL(header(KviAsciiDict<KviStr> *)),this,SLOT(headersReceived(KviAsciiDict<KviStr> *))); + connect(m_pHttpRequest,SIGNAL(resolvingHost(const QString &)),this,SLOT(resolvingHost(const char *))); connect(m_pHttpRequest,SIGNAL(requestSent(const QStringList &)),this,SLOT(requestSent(const QStringList &))); - connect(m_pHttpRequest,SIGNAL(contactingHost(const char *)),this,SLOT(contactingHost(const char *))); - connect(m_pHttpRequest,SIGNAL(receivedResponse(const char *)),this,SLOT(receivedResponse(const char *))); + connect(m_pHttpRequest,SIGNAL(contactingHost(const QString &)),this,SLOT(contactingHost(const QString &))); + connect(m_pHttpRequest,SIGNAL(receivedResponse(const QString &)),this,SLOT(receivedResponse(const QString &))); connect(m_pHttpRequest,SIGNAL(connectionEstabilished()),this,SLOT(connectionEstabilished())); m_eGeneralStatus = Initializing; @@ -387,19 +387,19 @@ void KviHttpFileTransfer::connectionEstabilished() displayUpdate(); } -void KviHttpFileTransfer::resolvingHost(const char *hostname) +void KviHttpFileTransfer::resolvingHost(const QString &hostname) { m_szStatusString = __tr2qs_ctx("Resolving host %1","http").arg(hostname); displayUpdate(); } -void KviHttpFileTransfer::contactingHost(const char *ipandport) +void KviHttpFileTransfer::contactingHost(const QString &ipandport) { m_szStatusString = __tr2qs_ctx("Contacting host %1","http").arg(ipandport); displayUpdate(); } -void KviHttpFileTransfer::receivedResponse(const char * response) +void KviHttpFileTransfer::receivedResponse(const QString &response) { m_lHeaders.clear(); m_lHeaders.append(response); @@ -409,11 +409,11 @@ void KviHttpFileTransfer::receivedResponse(const char * response) displayUpdate(); } -void KviHttpFileTransfer::statusMessage(const char *txt) +void KviHttpFileTransfer::statusMessage(const QString &txt) { KviWindow * out = transferWindow(); if(out && (!m_bNoOutput)) - out->output(KVI_OUT_GENERICSTATUS,"[HTTP %d]: %s",id(),txt); + out->output(KVI_OUT_GENERICSTATUS,"[HTTP %d]: %Q",id(),&txt); } void KviHttpFileTransfer::transferTerminated(bool bSuccess) @@ -461,13 +461,13 @@ void KviHttpFileTransfer::transferTerminated(bool bSuccess) } } -void KviHttpFileTransfer::headersReceived(QAsciiDict<KviStr> *h) +void KviHttpFileTransfer::headersReceived(KviAsciiDict<KviStr> *h) { if(!h)return; KviWindow * out = transferWindow(); if(out && (!m_bNoOutput))out->output(KVI_OUT_GENERICSTATUS,__tr2qs_ctx("[HTTP %d]: Response headers:","http"),id()); - QAsciiDictIterator<KviStr> it(*h); + KviAsciiDictIterator<KviStr> it(*h); while(KviStr * s = it.current()) { QString szHeader = it.currentKey(); diff --git a/src/modules/http/httpfiletransfer.h b/src/modules/http/httpfiletransfer.h index 6c437b145..837e25e12 100644 --- a/src/modules/http/httpfiletransfer.h +++ b/src/modules/http/httpfiletransfer.h @@ -85,14 +85,14 @@ public: virtual QString tipText(); virtual QString localFileName(); protected slots: - void statusMessage(const char * txt); + void statusMessage(const QString &txt); void transferTerminated(bool bSuccess); - void headersReceived(QAsciiDict<KviStr> *h); + void headersReceived(KviAsciiDict<KviStr> *h); void requestSent(const QStringList &sl); - void resolvingHost(const char * hostname); - void contactingHost(const char * ipandport); - void receivedResponse(const char * response); + void resolvingHost(const QString &hostname); + void contactingHost(const QString &ipandport); + void receivedResponse(const QString &response); void connectionEstabilished(); void abort(); |
