summaryrefslogtreecommitdiffstats
path: root/libkcddb/synccddbplookup.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /libkcddb/synccddbplookup.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-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.cpp20
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());
}
}