summaryrefslogtreecommitdiffstats
path: root/src/network/qftp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/qftp.cpp')
-rw-r--r--src/network/qftp.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/network/qftp.cpp b/src/network/qftp.cpp
index 0183a7a..55db3bd 100644
--- a/src/network/qftp.cpp
+++ b/src/network/qftp.cpp
@@ -325,7 +325,7 @@ void QFtpDTP::writeData()
{
if ( is_ba ) {
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP::writeData: write %d bytes", data.ba->size() );
+ tqDebug( "QFtpDTP::writeData: write %d bytes", data.ba->size() );
#endif
if ( data.ba->size() == 0 )
emit dataTransferProgress( 0, bytesTotal );
@@ -340,7 +340,7 @@ void QFtpDTP::writeData()
while ( !data.dev->atEnd() && socket.bytesToWrite()==0 ) {
Q_LONG read = data.dev->readBlock( buf, blockSize );
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP::writeData: writeBlock() of size %d bytes", (int)read );
+ tqDebug( "QFtpDTP::writeData: writeBlock() of size %d bytes", (int)read );
#endif
socket.writeBlock( buf, read );
if ( !data.dev )
@@ -375,7 +375,7 @@ inline void QFtpDTP::clearError()
void QFtpDTP::abortConnection()
{
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP::abortConnection" );
+ tqDebug( "QFtpDTP::abortConnection" );
#endif
callWriteData = FALSE;
clearData();
@@ -526,7 +526,7 @@ void QFtpDTP::socketConnected()
bytesDone = 0;
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP::connectState( CsConnected )" );
+ tqDebug( "QFtpDTP::connectState( CsConnected )" );
#endif
emit connectState( QFtpDTP::CsConnected );
}
@@ -536,7 +536,7 @@ void QFtpDTP::socketReadyRead()
if ( pi->currentCommand().isEmpty() ) {
socket.close();
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP::connectState( CsClosed )" );
+ tqDebug( "QFtpDTP::connectState( CsClosed )" );
#endif
emit connectState( QFtpDTP::CsClosed );
return;
@@ -547,7 +547,7 @@ void QFtpDTP::socketReadyRead()
QUrlInfo i;
QString line = socket.readLine();
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP read (list): '%s'", line.latin1() );
+ tqDebug( "QFtpDTP read (list): '%s'", line.latin1() );
#endif
if ( parseDir( line, "", &i ) ) {
emit listInfo( i );
@@ -570,14 +570,14 @@ void QFtpDTP::socketReadyRead()
ba.resize( bytesRead );
bytesDone += bytesRead;
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP read: %d bytes (total %d bytes)", (int)bytesRead, bytesDone );
+ tqDebug( "QFtpDTP read: %d bytes (total %d bytes)", (int)bytesRead, bytesDone );
#endif
emit dataTransferProgress( bytesDone, bytesTotal );
if (data.dev) // make sure it wasn't deleted in the slot
data.dev->writeBlock( ba );
} else {
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP readyRead: %d bytes available (total %d bytes read)", (int)bytesAvailable(), bytesDone );
+ tqDebug( "QFtpDTP readyRead: %d bytes available (total %d bytes read)", (int)bytesAvailable(), bytesDone );
#endif
emit dataTransferProgress( bytesDone+socket.bytesAvailable(), bytesTotal );
emit readyRead();
@@ -589,12 +589,12 @@ void QFtpDTP::socketError( int e )
{
if ( e == QSocket::ErrHostNotFound ) {
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP::connectState( CsHostNotFound )" );
+ tqDebug( "QFtpDTP::connectState( CsHostNotFound )" );
#endif
emit connectState( QFtpDTP::CsHostNotFound );
} else if ( e == QSocket::ErrConnectionRefused ) {
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP::connectState( CsConnectionRefused )" );
+ tqDebug( "QFtpDTP::connectState( CsConnectionRefused )" );
#endif
emit connectState( QFtpDTP::CsConnectionRefused );
}
@@ -606,7 +606,7 @@ void QFtpDTP::socketConnectionClosed()
clearData();
}
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP::connectState( CsClosed )" );
+ tqDebug( "QFtpDTP::connectState( CsClosed )" );
#endif
emit connectState( QFtpDTP::CsClosed );
}
@@ -615,7 +615,7 @@ void QFtpDTP::socketBytesWritten( int bytes )
{
bytesDone += bytes;
#if defined(QFTPDTP_DEBUG)
- qDebug( "QFtpDTP::bytesWritten( %d )", bytesDone );
+ tqDebug( "QFtpDTP::bytesWritten( %d )", bytesDone );
#endif
emit dataTransferProgress( bytesDone, bytesTotal );
if ( callWriteData )
@@ -701,7 +701,7 @@ void QFtpPI::abort()
abortState = AbortStarted;
#if defined(QFTPPI_DEBUG)
- qDebug( "QFtpPI send: ABOR" );
+ tqDebug( "QFtpPI send: ABOR" );
#endif
commandSocket.writeBlock( "ABOR\r\n", 6 );
@@ -718,7 +718,7 @@ void QFtpPI::connected()
{
state = Begin;
#if defined(QFTPPI_DEBUG)
-// qDebug( "QFtpPI state: %d [connected()]", state );
+// tqDebug( "QFtpPI state: %d [connected()]", state );
#endif
emit connectState( QFtp::Connected );
}
@@ -807,11 +807,11 @@ void QFtpPI::readyRead()
bool QFtpPI::processReply()
{
#if defined(QFTPPI_DEBUG)
-// qDebug( "QFtpPI state: %d [processReply() begin]", state );
+// tqDebug( "QFtpPI state: %d [processReply() begin]", state );
if ( replyText.length() < 400 )
- qDebug( "QFtpPI recv: %d %s", 100*replyCode[0]+10*replyCode[1]+replyCode[2], replyText.latin1() );
+ tqDebug( "QFtpPI recv: %d %s", 100*replyCode[0]+10*replyCode[1]+replyCode[2], replyText.latin1() );
else
- qDebug( "QFtpPI recv: %d (text skipped)", 100*replyCode[0]+10*replyCode[1]+replyCode[2] );
+ tqDebug( "QFtpPI recv: %d (text skipped)", 100*replyCode[0]+10*replyCode[1]+replyCode[2] );
#endif
// process 226 replies ("Closing Data Connection") only when the data
@@ -861,7 +861,7 @@ bool QFtpPI::processReply()
return TRUE;
}
#if defined(QFTPPI_DEBUG)
-// qDebug( "QFtpPI state: %d [processReply() intermediate]", state );
+// tqDebug( "QFtpPI state: %d [processReply() intermediate]", state );
#endif
// special actions on certain replies
@@ -878,7 +878,7 @@ bool QFtpPI::processReply()
QRegExp addrPortPattern("(\\d+),(\\d+),(\\d+),(\\d+),(\\d+),(\\d+)");
if (addrPortPattern.search(replyText) == -1) {
#if defined(QFTPPI_DEBUG)
- qDebug( "QFtp: bad 227 response -- address and port information missing" );
+ tqDebug( "QFtp: bad 227 response -- address and port information missing" );
#endif
// ### error handling
} else {
@@ -930,7 +930,7 @@ bool QFtpPI::processReply()
break;
}
#if defined(QFTPPI_DEBUG)
-// qDebug( "QFtpPI state: %d [processReply() end]", state );
+// tqDebug( "QFtpPI state: %d [processReply() end]", state );
#endif
return TRUE;
}
@@ -951,7 +951,7 @@ bool QFtpPI::startNextCmd()
#if defined(QFTPPI_DEBUG)
if ( state != Idle )
- qDebug( "QFtpPI startNextCmd: Internal error! QFtpPI called in non-Idle state %d", state );
+ tqDebug( "QFtpPI startNextCmd: Internal error! QFtpPI called in non-Idle state %d", state );
#endif
if ( pendingCommands.isEmpty() ) {
currentCmd = QString::null;
@@ -961,7 +961,7 @@ bool QFtpPI::startNextCmd()
currentCmd = pendingCommands.first();
pendingCommands.pop_front();
#if defined(QFTPPI_DEBUG)
- qDebug( "QFtpPI send: %s", currentCmd.left( currentCmd.length()-2 ).latin1() );
+ tqDebug( "QFtpPI send: %s", currentCmd.left( currentCmd.length()-2 ).latin1() );
#endif
state = Waiting;
#ifndef QT_NO_TEXTCODEC
@@ -1042,7 +1042,7 @@ static QFtpPrivate* d( const QFtp* foo )
if ( !d_ptr ) {
d_ptr = new QPtrDict<QFtpPrivate>;
d_ptr->setAutoDelete( TRUE );
- qAddPostRoutine( cleanup_d_ptr );
+ tqAddPostRoutine( cleanup_d_ptr );
}
QFtpPrivate* ret = d_ptr->find( (void*)foo );
if ( ! ret ) {
@@ -1093,7 +1093,7 @@ static void delete_d( const QFtp* foo )
\endcode
This code will only work if the QFtp class is registered; to
- register the class, you must call qInitNetworkProtocols() before
+ register the class, you must call tqInitNetworkProtocols() before
using a QUrlOperator with QFtp.
The rest of this descrption describes the direct interface to FTP.