summaryrefslogtreecommitdiffstats
path: root/libkcddb/cddb.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/cddb.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/cddb.cpp')
-rw-r--r--libkcddb/cddb.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/libkcddb/cddb.cpp b/libkcddb/cddb.cpp
index f1933cd5..f0ee84e0 100644
--- a/libkcddb/cddb.cpp
+++ b/libkcddb/cddb.cpp
@@ -19,8 +19,8 @@
Boston, MA 02110-1301, USA.
*/
-#include <qregexp.h>
-#include <qstringlist.h>
+#include <tqregexp.h>
+#include <tqstringlist.h>
#include <kdebug.h>
#include <kstringhandler.h>
@@ -71,34 +71,34 @@ namespace KCDDB
id = ( ( id % 255 ) << 24 ) | ( l << 8 ) | numTracks;
- return QString::number( id, 16 ).rightJustify( 8, '0' );
+ return TQString::number( id, 16 ).rightJustify( 8, '0' );
}
QString
CDDB::trackOffsetListToString()
{
- QString ret;
+ TQString ret;
uint numTracks = trackOffsetList_.count()-2;
// Disc start.
- ret.append( QString::number( numTracks ) );
+ ret.append( TQString::number( numTracks ) );
ret.append( " " );
for ( uint i = 0; i < numTracks; i++ )
{
- ret.append( QString::number( trackOffsetList_[ i ] ) );
+ ret.append( TQString::number( trackOffsetList_[ i ] ) );
ret.append( " " );
}
unsigned int discLengthInSec = ( trackOffsetList_[ numTracks+1 ] ) / 75;
- ret.append( QString::number( discLengthInSec ) );
+ ret.append( TQString::number( discLengthInSec ) );
return ret;
}
bool
- CDDB::parseGreeting( const QString & line )
+ CDDB::parseGreeting( const TQString & line )
{
uint serverStatus = statusCode( line );
@@ -121,7 +121,7 @@ namespace KCDDB
}
bool
- CDDB::parseHandshake( const QString & line )
+ CDDB::parseHandshake( const TQString & line )
{
uint serverStatus = statusCode( line );
@@ -137,9 +137,9 @@ namespace KCDDB
}
uint
- CDDB::statusCode( const QString & line )
+ CDDB::statusCode( const TQString & line )
{
- QStringList tokenList = QStringList::split( ' ', line );
+ TQStringList tokenList = TQStringList::split( ' ', line );
uint serverStatus = tokenList[ 0 ].toUInt();
@@ -147,7 +147,7 @@ namespace KCDDB
}
/* CDDB::Transport
- CDDB::stringToTransport(const QString & s)
+ CDDB::stringToTransport(const TQString & s)
{
if ("HTTP" == s )
return HTTP;