From e654398e46e37abf457b2b1122ab898d2c51c49f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:43:15 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcddb/httplookup.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'libkcddb/httplookup.cpp') diff --git a/libkcddb/httplookup.cpp b/libkcddb/httplookup.cpp index db72d23b..c360c423 100644 --- a/libkcddb/httplookup.cpp +++ b/libkcddb/httplookup.cpp @@ -39,7 +39,7 @@ namespace KCDDB CDDB::Result HTTPLookup::sendQuery() { - QString cmd = QString( "cddb query %1 %2" ) + TQString cmd = TQString( "cddb query %1 %2" ) .arg( trackOffsetListToId(), trackOffsetListToString() ) ; makeURL( cmd ); @@ -52,9 +52,9 @@ namespace KCDDB HTTPLookup::sendRead( const CDDBMatch & match ) { category_ = match.first; - QString discid = match.second; + TQString discid = match.second; - QString cmd = QString( "cddb read %1 %2" ) + TQString cmd = TQString( "cddb read %1 %2" ) .arg( category_, discid ); makeURL( cmd ); @@ -64,7 +64,7 @@ namespace KCDDB } void - HTTPLookup::initURL( const QString & hostName, uint port ) + HTTPLookup::initURL( const TQString & hostName, uint port ) { cgiURL_.setProtocol( "http" ); cgiURL_.setHost( hostName ); @@ -75,14 +75,14 @@ namespace KCDDB } void - HTTPLookup::makeURL( const QString & cmd ) + HTTPLookup::makeURL( const TQString & cmd ) { // The whole query has to constructed each time as the // CDDB CGI script expects the parameters in strict order - cgiURL_.setQuery( QString::null ); + cgiURL_.setQuery( TQString::null ); - QString hello = QString("%1 %2 %3 %4") + TQString hello = TQString("%1 %2 %3 %4") .arg(user_, localHostName_, clientName(), clientVersion()); cgiURL_.addQueryItem( "cmd", cmd ); @@ -93,8 +93,8 @@ namespace KCDDB void HTTPLookup::jobFinished() { - QStringList lineList = QStringList::split( "\n", QString::fromUtf8(data_, data_.size()) ); - QStringList::ConstIterator it = lineList.begin(); + TQStringList lineList = TQStringList::split( "\n", TQString::fromUtf8(data_, data_.size()) ); + TQStringList::ConstIterator it = lineList.begin(); switch ( state_ ) { @@ -102,7 +102,7 @@ namespace KCDDB if ( it != lineList.end() ) { - QString line( *it ); + TQString line( *it ); result_ = parseQuery( line ); @@ -119,7 +119,7 @@ namespace KCDDB ++it; while ( it != lineList.end() ) { - QString line( *it ); + TQString line( *it ); if ( '.' == line[ 0 ] ) { @@ -158,7 +158,7 @@ namespace KCDDB { CDInfo info; - if ( info.load( QString::fromUtf8(data_,data_.size()) ) ) + if ( info.load( TQString::fromUtf8(data_,data_.size()) ) ) { info.category = category_; cdInfoList_.append( info ); -- cgit v1.2.1