summaryrefslogtreecommitdiffstats
path: root/libkcddb/httplookup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcddb/httplookup.cpp')
-rw-r--r--libkcddb/httplookup.cpp24
1 files changed, 12 insertions, 12 deletions
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 );