summaryrefslogtreecommitdiffstats
path: root/src/network/qftp.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-02 02:11:59 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-02 02:11:59 -0600
commit9a75b154bf0732aa3a501b6e31e566e06c5f8a31 (patch)
treedf1e10cc7504665622d096f9ba80dc9e56f3afb8 /src/network/qftp.cpp
parenta830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0 (diff)
downloadqt3-9a75b154bf0732aa3a501b6e31e566e06c5f8a31.tar.gz
qt3-9a75b154bf0732aa3a501b6e31e566e06c5f8a31.zip
Undo prior accidental commit
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 55db3bd..0183a7a 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)
- tqDebug( "QFtpDTP::writeData: write %d bytes", data.ba->size() );
+ qDebug( "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)
- tqDebug( "QFtpDTP::writeData: writeBlock() of size %d bytes", (int)read );
+ qDebug( "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)
- tqDebug( "QFtpDTP::abortConnection" );
+ qDebug( "QFtpDTP::abortConnection" );
#endif
callWriteData = FALSE;
clearData();
@@ -526,7 +526,7 @@ void QFtpDTP::socketConnected()
bytesDone = 0;
#if defined(QFTPDTP_DEBUG)
- tqDebug( "QFtpDTP::connectState( CsConnected )" );
+ qDebug( "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)
- tqDebug( "QFtpDTP::connectState( CsClosed )" );
+ qDebug( "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)
- tqDebug( "QFtpDTP read (list): '%s'", line.latin1() );
+ qDebug( "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)
- tqDebug( "QFtpDTP read: %d bytes (total %d bytes)", (int)bytesRead, bytesDone );
+ qDebug( "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)
- tqDebug( "QFtpDTP readyRead: %d bytes available (total %d bytes read)", (int)bytesAvailable(), bytesDone );
+ qDebug( "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)
- tqDebug( "QFtpDTP::connectState( CsHostNotFound )" );
+ qDebug( "QFtpDTP::connectState( CsHostNotFound )" );
#endif
emit connectState( QFtpDTP::CsHostNotFound );
} else if ( e == QSocket::ErrConnectionRefused ) {
#if defined(QFTPDTP_DEBUG)
- tqDebug( "QFtpDTP::connectState( CsConnectionRefused )" );
+ qDebug( "QFtpDTP::connectState( CsConnectionRefused )" );
#endif
emit connectState( QFtpDTP::CsConnectionRefused );
}
@@ -606,7 +606,7 @@ void QFtpDTP::socketConnectionClosed()
clearData();
}
#if defined(QFTPDTP_DEBUG)
- tqDebug( "QFtpDTP::connectState( CsClosed )" );
+ qDebug( "QFtpDTP::connectState( CsClosed )" );
#endif
emit connectState( QFtpDTP::CsClosed );
}
@@ -615,7 +615,7 @@ void QFtpDTP::socketBytesWritten( int bytes )
{
bytesDone += bytes;
#if defined(QFTPDTP_DEBUG)
- tqDebug( "QFtpDTP::bytesWritten( %d )", bytesDone );
+ qDebug( "QFtpDTP::bytesWritten( %d )", bytesDone );
#endif
emit dataTransferProgress( bytesDone, bytesTotal );
if ( callWriteData )
@@ -701,7 +701,7 @@ void QFtpPI::abort()
abortState = AbortStarted;
#if defined(QFTPPI_DEBUG)
- tqDebug( "QFtpPI send: ABOR" );
+ qDebug( "QFtpPI send: ABOR" );
#endif
commandSocket.writeBlock( "ABOR\r\n", 6 );
@@ -718,7 +718,7 @@ void QFtpPI::connected()
{
state = Begin;
#if defined(QFTPPI_DEBUG)
-// tqDebug( "QFtpPI state: %d [connected()]", state );
+// qDebug( "QFtpPI state: %d [connected()]", state );
#endif
emit connectState( QFtp::Connected );
}
@@ -807,11 +807,11 @@ void QFtpPI::readyRead()
bool QFtpPI::processReply()
{
#if defined(QFTPPI_DEBUG)
-// tqDebug( "QFtpPI state: %d [processReply() begin]", state );
+// qDebug( "QFtpPI state: %d [processReply() begin]", state );
if ( replyText.length() < 400 )
- tqDebug( "QFtpPI recv: %d %s", 100*replyCode[0]+10*replyCode[1]+replyCode[2], replyText.latin1() );
+ qDebug( "QFtpPI recv: %d %s", 100*replyCode[0]+10*replyCode[1]+replyCode[2], replyText.latin1() );
else
- tqDebug( "QFtpPI recv: %d (text skipped)", 100*replyCode[0]+10*replyCode[1]+replyCode[2] );
+ qDebug( "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)
-// tqDebug( "QFtpPI state: %d [processReply() intermediate]", state );
+// qDebug( "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)
- tqDebug( "QFtp: bad 227 response -- address and port information missing" );
+ qDebug( "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)
-// tqDebug( "QFtpPI state: %d [processReply() end]", state );
+// qDebug( "QFtpPI state: %d [processReply() end]", state );
#endif
return TRUE;
}
@@ -951,7 +951,7 @@ bool QFtpPI::startNextCmd()
#if defined(QFTPPI_DEBUG)
if ( state != Idle )
- tqDebug( "QFtpPI startNextCmd: Internal error! QFtpPI called in non-Idle state %d", state );
+ qDebug( "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)
- tqDebug( "QFtpPI send: %s", currentCmd.left( currentCmd.length()-2 ).latin1() );
+ qDebug( "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 );
- tqAddPostRoutine( cleanup_d_ptr );
+ qAddPostRoutine( 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 tqInitNetworkProtocols() before
+ register the class, you must call qInitNetworkProtocols() before
using a QUrlOperator with QFtp.
The rest of this descrption describes the direct interface to FTP.