diff options
author | gregory guy <[email protected]> | 2020-06-13 16:09:24 +0200 |
---|---|---|
committer | gregory guy <[email protected]> | 2020-06-13 16:09:24 +0200 |
commit | 2c9bc9b806f533df7b8f5349467d0f4be95314a4 (patch) | |
tree | 15f82ae94dd430374f3d939958912c4fb2855326 /src/app/playlistFile.cpp | |
parent | 38eaf7209a322a622e1b898eaa5477568ca9c6b6 (diff) | |
download | codeine-2c9bc9b806f533df7b8f5349467d0f4be95314a4.tar.gz codeine-2c9bc9b806f533df7b8f5349467d0f4be95314a4.zip |
Conversion qt3 -> tqt3
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'src/app/playlistFile.cpp')
-rw-r--r-- | src/app/playlistFile.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/app/playlistFile.cpp b/src/app/playlistFile.cpp index 19acd30..323643d 100644 --- a/src/app/playlistFile.cpp +++ b/src/app/playlistFile.cpp @@ -9,8 +9,8 @@ #include "debug.h" #include <kio/netaccess.h> #include "playlistFile.h" -#include <qfile.h> -#include <qtextstream.h> +#include <ntqfile.h> +#include <ntqtextstream.h> #include <mxcl.library.h> @@ -21,7 +21,7 @@ PlaylistFile::PlaylistFile( const KURL &url ) { mxcl::WaitCursor allocateOnStack; - QString &path = m_path = url.path(); + TQString &path = m_path = url.path(); if( path.endsWith( ".pls", false ) ) m_type = PLS; else @@ -34,16 +34,16 @@ PlaylistFile::PlaylistFile( const KURL &url ) } if( m_isRemoteFile ) { - path = QString(); + path = TQString(); if( !KIO::NetAccess::download( url, path, Codeine::mainWindow() ) ) { m_error = i18n( "Codeine could not download the remote playlist: %1" ).arg( url.prettyURL() ); return; } } - QFile file( path ); + TQFile file( path ); if( file.open( IO_ReadOnly ) ) { - QTextStream stream( &file ); + TQTextStream stream( &file ); switch( m_type ) { case M3U: parseM3uFile( stream ); break; case PLS: parsePlsFile( stream ); break; @@ -67,15 +67,15 @@ PlaylistFile::~PlaylistFile() void -PlaylistFile::parsePlsFile( QTextStream &stream ) +PlaylistFile::parsePlsFile( TQTextStream &stream ) { DEBUG_BLOCK - for( QString line = stream.readLine(); !line.isNull(); ) + for( TQString line = stream.readLine(); !line.isNull(); ) { if( line.startsWith( "File" ) ) { const KURL url = line.section( '=', -1 ); - const QString title = stream.readLine().section( '=', -1 ); + const TQString title = stream.readLine().section( '=', -1 ); debug() << url << endl << title << endl; @@ -90,11 +90,11 @@ PlaylistFile::parsePlsFile( QTextStream &stream ) void -PlaylistFile::parseM3uFile( QTextStream &stream ) +PlaylistFile::parseM3uFile( TQTextStream &stream ) { DEBUG_BLOCK - for( QString line; !stream.atEnd(); ) + for( TQString line; !stream.atEnd(); ) { line = stream.readLine(); |