summaryrefslogtreecommitdiffstats
path: root/src/network/qhttp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/qhttp.cpp')
-rw-r--r--src/network/qhttp.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/network/qhttp.cpp b/src/network/qhttp.cpp
index b0a7ff5..f5a77d7 100644
--- a/src/network/qhttp.cpp
+++ b/src/network/qhttp.cpp
@@ -1039,7 +1039,7 @@ QString QHttpRequestHeader::toString() const
\endcode
This code will only work if the QHttp class is registered; to
- register the class, you must call qInitNetworkProtocols() before
+ register the class, you must call tqInitNetworkProtocols() before
using a QUrlOperator with HTTP.
The QNetworkProtocol interface for HTTP only supports the
@@ -1435,7 +1435,7 @@ void QHttp::abort()
Q_ULONG QHttp::bytesAvailable() const
{
#if defined(QHTTP_DEBUG)
- qDebug( "QHttp::bytesAvailable(): %d bytes", (int)d->rba.size() );
+ tqDebug( "QHttp::bytesAvailable(): %d bytes", (int)d->rba.size() );
#endif
return d->rba.size();
}
@@ -1450,7 +1450,7 @@ Q_LONG QHttp::readBlock( char *data, Q_ULONG maxlen )
{
if ( data == 0 && maxlen != 0 ) {
#if defined(QT_CHECK_NULL)
- qWarning( "QHttp::readBlock: Null pointer error" );
+ tqWarning( "QHttp::readBlock: Null pointer error" );
#endif
return -1;
}
@@ -1460,7 +1460,7 @@ Q_LONG QHttp::readBlock( char *data, Q_ULONG maxlen )
d->bytesDone += maxlen;
#if defined(QHTTP_DEBUG)
- qDebug( "QHttp::readBlock(): read %d bytes (%d bytes done)", (int)maxlen, d->bytesDone );
+ tqDebug( "QHttp::readBlock(): read %d bytes (%d bytes done)", (int)maxlen, d->bytesDone );
#endif
return maxlen;
}
@@ -1880,7 +1880,7 @@ void QHttp::slotConnected()
d->bytesTotal = str.length();
d->socket.writeBlock( str.latin1(), d->bytesTotal );
#if defined(QHTTP_DEBUG)
- qDebug( "QHttp: write request header:\n---{\n%s}---", str.latin1() );
+ tqDebug( "QHttp: write request header:\n---{\n%s}---", str.latin1() );
#endif
if ( d->postDevice ) {
@@ -1927,7 +1927,7 @@ void QHttp::slotBytesWritten( int written )
int n = d->postDevice->readBlock( arr.data(), max );
if ( n != max ) {
- qWarning("Could not read enough bytes from the device");
+ tqWarning("Could not read enough bytes from the device");
close();
return;
}
@@ -1965,12 +1965,12 @@ void QHttp::slotReadyRead()
return;
#if defined(QHTTP_DEBUG)
- qDebug( "QHttp: read response header:\n---{\n%s}---", d->headerStr.latin1() );
+ tqDebug( "QHttp: read response header:\n---{\n%s}---", d->headerStr.latin1() );
#endif
d->response = QHttpResponseHeader( d->headerStr );
d->headerStr = "";
#if defined(QHTTP_DEBUG)
- qDebug( "QHttp: read response header:\n---{\n%s}---", d->response.toString().latin1() );
+ tqDebug( "QHttp: read response header:\n---{\n%s}---", d->response.toString().latin1() );
#endif
// Check header
if ( !d->response.isValid() ) {
@@ -2089,7 +2089,7 @@ void QHttp::slotReadyRead()
delete arr;
d->bytesDone += n;
#if defined(QHTTP_DEBUG)
- qDebug( "QHttp::slotReadyRead(): read %ld bytes (%d bytes done)", n, d->bytesDone );
+ tqDebug( "QHttp::slotReadyRead(): read %ld bytes (%d bytes done)", n, d->bytesDone );
#endif
if ( d->response.hasContentLength() )
emit dataReadProgress( d->bytesDone, d->response.contentLength() );
@@ -2098,7 +2098,7 @@ void QHttp::slotReadyRead()
} else {
d->rba.append( arr );
#if defined(QHTTP_DEBUG)
- qDebug( "QHttp::slotReadyRead(): read %ld bytes (%ld bytes done)", n, d->bytesDone + bytesAvailable() );
+ tqDebug( "QHttp::slotReadyRead(): read %ld bytes (%ld bytes done)", n, d->bytesDone + bytesAvailable() );
#endif
if ( d->response.hasContentLength() )
emit dataReadProgress( d->bytesDone + bytesAvailable(), d->response.contentLength() );
@@ -2185,7 +2185,7 @@ void QHttp::killIdleTimer()
void QHttp::setState( int s )
{
#if defined(QHTTP_DEBUG)
- qDebug( "QHttp state changed %d -> %d", d->state, s );
+ tqDebug( "QHttp state changed %d -> %d", d->state, s );
#endif
d->state = (State)s;
emit stateChanged( s );