diff options
Diffstat (limited to 'libkcddb/synccddbplookup.cpp')
-rw-r--r-- | libkcddb/synccddbplookup.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libkcddb/synccddbplookup.cpp b/libkcddb/synccddbplookup.cpp index 6e769d48..b2be7618 100644 --- a/libkcddb/synccddbplookup.cpp +++ b/libkcddb/synccddbplookup.cpp @@ -19,7 +19,7 @@ Boston, MA 02110-1301, USA. */ -#include <qstringlist.h> +#include <tqstringlist.h> #include <kdebug.h> #include "synccddbplookup.h" @@ -39,7 +39,7 @@ namespace KCDDB CDDB::Result SyncCDDBPLookup::lookup ( - const QString & hostName, + const TQString & hostName, uint port, const TrackOffsetList & trackOffsetList ) @@ -49,7 +49,7 @@ namespace KCDDB trackOffsetList_ = trackOffsetList; - socket_ = new KNetwork::KBufferedSocket(hostName, QString::number(port)); + socket_ = new KNetwork::KBufferedSocket(hostName, TQString::number(port)); socket_->setTimeout( 30000 ); socket_->setOutputBuffering(false); @@ -117,7 +117,7 @@ namespace KCDDB CDDB::Result SyncCDDBPLookup::shakeHands() { - QString line = readLine(); + TQString line = readLine(); if ( !parseGreeting( line ) ) return ServerError; @@ -144,7 +144,7 @@ namespace KCDDB sendQuery(); - QString line = readLine(); + TQString line = readLine(); result = parseQuery( line ); if ( ServerError == result ) @@ -170,13 +170,13 @@ namespace KCDDB { sendRead( match ); - QString line = readLine(); + TQString line = readLine(); Result result = parseRead( line ); if ( Success != result ) return result; - QStringList lineList; + TQStringList lineList; line = readLine(); while ( !line.startsWith(".") && !line.isNull() ) @@ -202,7 +202,7 @@ namespace KCDDB if ( !isConnected() ) { kdDebug(60010) << "socket status: " << socket_->state() << endl; - return QString::null; + return TQString::null; } if (!socket_->canReadLine()) @@ -212,10 +212,10 @@ namespace KCDDB socket_->waitForMore(-1,&timeout); if (timeout) - return QString::null; + return TQString::null; } - return QString::fromUtf8(socket_->readLine()); + return TQString::fromUtf8(socket_->readLine()); } } |