diff options
author | Timothy Pearson <[email protected]> | 2012-03-02 02:11:59 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-03-02 02:11:59 -0600 |
commit | 9a75b154bf0732aa3a501b6e31e566e06c5f8a31 (patch) | |
tree | df1e10cc7504665622d096f9ba80dc9e56f3afb8 /src/network/qhttp.cpp | |
parent | a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0 (diff) | |
download | qt3-9a75b154bf0732aa3a501b6e31e566e06c5f8a31.tar.gz qt3-9a75b154bf0732aa3a501b6e31e566e06c5f8a31.zip |
Undo prior accidental commit
Diffstat (limited to 'src/network/qhttp.cpp')
-rw-r--r-- | src/network/qhttp.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/network/qhttp.cpp b/src/network/qhttp.cpp index f5a77d7..b0a7ff5 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 tqInitNetworkProtocols() before + register the class, you must call qInitNetworkProtocols() 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) - tqDebug( "QHttp::bytesAvailable(): %d bytes", (int)d->rba.size() ); + qDebug( "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) - tqWarning( "QHttp::readBlock: Null pointer error" ); + qWarning( "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) - tqDebug( "QHttp::readBlock(): read %d bytes (%d bytes done)", (int)maxlen, d->bytesDone ); + qDebug( "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) - tqDebug( "QHttp: write request header:\n---{\n%s}---", str.latin1() ); + qDebug( "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 ) { - tqWarning("Could not read enough bytes from the device"); + qWarning("Could not read enough bytes from the device"); close(); return; } @@ -1965,12 +1965,12 @@ void QHttp::slotReadyRead() return; #if defined(QHTTP_DEBUG) - tqDebug( "QHttp: read response header:\n---{\n%s}---", d->headerStr.latin1() ); + qDebug( "QHttp: read response header:\n---{\n%s}---", d->headerStr.latin1() ); #endif d->response = QHttpResponseHeader( d->headerStr ); d->headerStr = ""; #if defined(QHTTP_DEBUG) - tqDebug( "QHttp: read response header:\n---{\n%s}---", d->response.toString().latin1() ); + qDebug( "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) - tqDebug( "QHttp::slotReadyRead(): read %ld bytes (%d bytes done)", n, d->bytesDone ); + qDebug( "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) - tqDebug( "QHttp::slotReadyRead(): read %ld bytes (%ld bytes done)", n, d->bytesDone + bytesAvailable() ); + qDebug( "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) - tqDebug( "QHttp state changed %d -> %d", d->state, s ); + qDebug( "QHttp state changed %d -> %d", d->state, s ); #endif d->state = (State)s; emit stateChanged( s ); |