diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-02-28 22:31:39 -0600 |
commit | 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 (patch) | |
tree | 6d4d5407c000add30aa78630e009c0e5d633e440 /src/network/qhttp.cpp | |
parent | 1740cd279522c060e738bbbffacab83355d2b794 (diff) | |
download | tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.tar.gz tqt3-41bb408dde90e755b07cd2ab8a9bdec7548c84b0.zip |
Automated conversion from qt3
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 b8a110e58..1962557bb 100644 --- a/src/network/qhttp.cpp +++ b/src/network/qhttp.cpp @@ -1039,7 +1039,7 @@ TQString TQHttpRequestHeader::toString() const \endcode This code will only work if the TQHttp class is registered; to - register the class, you must call qInitNetworkProtocols() before + register the class, you must call tqInitNetworkProtocols() before using a TQUrlOperator with HTTP. The TQNetworkProtocol interface for HTTP only supports the @@ -1435,7 +1435,7 @@ void TQHttp::abort() Q_ULONG TQHttp::bytesAvailable() const { #if defined(TQHTTP_DEBUG) - qDebug( "TQHttp::bytesAvailable(): %d bytes", (int)d->rba.size() ); + tqDebug( "TQHttp::bytesAvailable(): %d bytes", (int)d->rba.size() ); #endif return d->rba.size(); } @@ -1450,7 +1450,7 @@ Q_LONG TQHttp::readBlock( char *data, Q_ULONG maxlen ) { if ( data == 0 && maxlen != 0 ) { #if defined(QT_CHECK_NULL) - qWarning( "TQHttp::readBlock: Null pointer error" ); + tqWarning( "TQHttp::readBlock: Null pointer error" ); #endif return -1; } @@ -1460,7 +1460,7 @@ Q_LONG TQHttp::readBlock( char *data, Q_ULONG maxlen ) d->bytesDone += maxlen; #if defined(TQHTTP_DEBUG) - qDebug( "TQHttp::readBlock(): read %d bytes (%d bytes done)", (int)maxlen, d->bytesDone ); + tqDebug( "TQHttp::readBlock(): read %d bytes (%d bytes done)", (int)maxlen, d->bytesDone ); #endif return maxlen; } @@ -1880,7 +1880,7 @@ void TQHttp::slotConnected() d->bytesTotal = str.length(); d->socket.writeBlock( str.latin1(), d->bytesTotal ); #if defined(TQHTTP_DEBUG) - qDebug( "TQHttp: write request header:\n---{\n%s}---", str.latin1() ); + tqDebug( "TQHttp: write request header:\n---{\n%s}---", str.latin1() ); #endif if ( d->postDevice ) { @@ -1927,7 +1927,7 @@ void TQHttp::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 TQHttp::slotReadyRead() return; #if defined(TQHTTP_DEBUG) - qDebug( "TQHttp: read response header:\n---{\n%s}---", d->headerStr.latin1() ); + tqDebug( "TQHttp: read response header:\n---{\n%s}---", d->headerStr.latin1() ); #endif d->response = TQHttpResponseHeader( d->headerStr ); d->headerStr = ""; #if defined(TQHTTP_DEBUG) - qDebug( "TQHttp: read response header:\n---{\n%s}---", d->response.toString().latin1() ); + tqDebug( "TQHttp: read response header:\n---{\n%s}---", d->response.toString().latin1() ); #endif // Check header if ( !d->response.isValid() ) { @@ -2089,7 +2089,7 @@ void TQHttp::slotReadyRead() delete arr; d->bytesDone += n; #if defined(TQHTTP_DEBUG) - qDebug( "TQHttp::slotReadyRead(): read %ld bytes (%d bytes done)", n, d->bytesDone ); + tqDebug( "TQHttp::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 TQHttp::slotReadyRead() } else { d->rba.append( arr ); #if defined(TQHTTP_DEBUG) - qDebug( "TQHttp::slotReadyRead(): read %ld bytes (%ld bytes done)", n, d->bytesDone + bytesAvailable() ); + tqDebug( "TQHttp::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 TQHttp::killIdleTimer() void TQHttp::setState( int s ) { #if defined(TQHTTP_DEBUG) - qDebug( "TQHttp state changed %d -> %d", d->state, s ); + tqDebug( "TQHttp state changed %d -> %d", d->state, s ); #endif d->state = (State)s; emit stateChanged( s ); |