summaryrefslogtreecommitdiffstats
path: root/src/app/theStream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/theStream.cpp')
-rw-r--r--src/app/theStream.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/app/theStream.cpp b/src/app/theStream.cpp
index 5d60d76..dac877e 100644
--- a/src/app/theStream.cpp
+++ b/src/app/theStream.cpp
@@ -16,7 +16,7 @@ namespace Codeine
{
//TODO a unique id for discs, and then even to also record chapters etc.
// if( url().protocol() == "dvd" )
-// return Codeine::config( QString( "dvd:/" ) + prettyTitle() );
+// return Codeine::config( TQString( "dvd:/" ) + prettyTitle() );
// else
return Codeine::config( url().prettyURL() );
}
@@ -38,12 +38,12 @@ namespace Codeine
TheStream::hasVideo()
{ return xine_get_stream_info( e->m_stream, XINE_STREAM_INFO_HAS_VIDEO ); }
- QSize
+ TQSize
TheStream::defaultVideoSize()
{
return !e->m_stream
- ? QSize()
- : QSize(
+ ? TQSize()
+ : TQSize(
xine_get_stream_info( e->m_stream, XINE_STREAM_INFO_VIDEO_WIDTH ),
xine_get_stream_info( e->m_stream, XINE_STREAM_INFO_VIDEO_HEIGHT ) );
}
@@ -57,35 +57,35 @@ namespace Codeine
int TheStream::audioChannel()
{ return xine_get_param( e->m_stream, XINE_PARAM_AUDIO_CHANNEL_LOGICAL ); }
- QString
+ TQString
TheStream::prettyTitle()
{
const KURL &url = e->m_url;
- const QString artist = QString::fromUtf8( xine_get_meta_info( e->m_stream, XINE_META_INFO_ARTIST ) );
- const QString title = QString::fromUtf8( xine_get_meta_info( e->m_stream, XINE_META_INFO_TITLE ) );
+ const TQString artist = TQString::fromUtf8( xine_get_meta_info( e->m_stream, XINE_META_INFO_ARTIST ) );
+ const TQString title = TQString::fromUtf8( xine_get_meta_info( e->m_stream, XINE_META_INFO_TITLE ) );
if (hasVideo() && !title.isEmpty())
return title;
else if (!title.isEmpty() && !artist.isEmpty())
return artist + " - " + title;
else if (url.protocol() != "http" && !url.fileName().isEmpty()) {
- const QString n = url.fileName();
+ const TQString n = url.fileName();
return KURL::decode_string( n.left( n.findRev( '.' ) ).replace( '_', ' ' ) ); }
else
return url.prettyURL();
}
- static inline QString
- entryHelper( const QString &plate, const QString &s1, const QString &s2 )
+ static inline TQString
+ entryHelper( const TQString &plate, const TQString &s1, const TQString &s2 )
{
return s2.isEmpty() ? s2 : plate.arg( s1 ).arg( s2 );
}
- static inline QString
- sectionHelper( const QString &sectionTitle, const QStringList &entries )
+ static inline TQString
+ sectionHelper( const TQString &sectionTitle, const TQStringList &entries )
{
- QString s;
+ TQString s;
foreach( entries )
if( !(*it).isEmpty() )
@@ -94,18 +94,18 @@ namespace Codeine
return s.isEmpty() ? s : "<h2>" + sectionTitle + "</h2>" + s;
}
- QString
+ TQString
TheStream::information()
{
#define meta( x ) xine_get_meta_info( e->m_stream, x )
#define info( x, y ) x.arg( xine_get_stream_info( e->m_stream, y ) )
- #define simple( x ) QString::number( xine_get_stream_info( e->m_stream, x ) )
+ #define simple( x ) TQString::number( xine_get_stream_info( e->m_stream, x ) )
- const QString plate = "<p><b>%1</b>: %2</p>";
- QString s;
+ const TQString plate = "<p><b>%1</b>: %2</p>";
+ TQString s;
s += sectionHelper( i18n("Metadata"),
- QStringList()
+ TQStringList()
<< entryHelper( plate, i18n("Title"), meta( XINE_META_INFO_TITLE ) )
<< entryHelper( plate, i18n("Comment"), meta( XINE_META_INFO_COMMENT ) )
<< entryHelper( plate, i18n("Artist"), meta( XINE_META_INFO_ARTIST ) )
@@ -114,19 +114,19 @@ namespace Codeine
<< entryHelper( plate, i18n("Year"), meta( XINE_META_INFO_YEAR ) ) );
s += sectionHelper( i18n("Audio Properties"),
- QStringList()
+ TQStringList()
<< entryHelper( plate, i18n("Bitrate"), info( i18n("%1 bps"), XINE_STREAM_INFO_AUDIO_BITRATE ) )
<< entryHelper( plate, i18n("Sample-rate"), info( i18n("%1 Hz"), XINE_STREAM_INFO_AUDIO_SAMPLERATE ) ) );
s += sectionHelper( i18n("Technical Information"),
- QStringList()
+ TQStringList()
<< entryHelper( plate, i18n("Video Codec"), meta( XINE_META_INFO_VIDEOCODEC ) )
<< entryHelper( plate, i18n("Audio Codec"), meta( XINE_META_INFO_AUDIOCODEC ) )
<< entryHelper( plate, i18n("System Layer"), meta( XINE_META_INFO_SYSTEMLAYER ) )
<< entryHelper( plate, i18n("Input Plugin"), meta( XINE_META_INFO_INPUT_PLUGIN ))
<< entryHelper( plate, i18n("CDINDEX_DISCID"), meta( XINE_META_INFO_CDINDEX_DISCID ) ) );
- QStringList texts;
+ TQStringList texts;
texts << "BITRATE" << "SEEKABLE" << "VIDEO_WIDTH" << "VIDEO_HEIGHT" << "VIDEO_RATIO" << "VIDEO_CHANNELS" << "VIDEO_STREAMS" << "VIDEO_BITRATE" << "VIDEO_FOURCC" << "VIDEO_HANDLED" << "FRAME_DURATION" << "AUDIO_CHANNELS" << "AUDIO_BITS" << "-AUDIO_SAMPLERATE" << "-AUDIO_BITRATE" << "AUDIO_FOURCC" << "AUDIO_HANDLED" << "HAS_CHAPTERS" << "HAS_VIDEO" << "HAS_AUDIO" << "-IGNORE_VIDEO" << "-IGNORE_AUDIO" << "-IGNORE_SPU" << "VIDEO_HAS_STILL" << "MAX_AUDIO_CHANNEL" << "MAX_SPU_CHANNEL" << "AUDIO_MODE" << "SKIPPED_FRAMES" << "DISCARDED_FRAMES";
s += "<h2>Other</h2>";