diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /libkcddb/synccddbplookup.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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()); } } |