diff options
Diffstat (limited to 'plugins/decoder/libsndfile')
-rw-r--r-- | plugins/decoder/libsndfile/k3blibsndfiledecoder.cpp | 28 | ||||
-rw-r--r-- | plugins/decoder/libsndfile/k3blibsndfiledecoder.h | 10 |
2 files changed, 20 insertions, 18 deletions
diff --git a/plugins/decoder/libsndfile/k3blibsndfiledecoder.cpp b/plugins/decoder/libsndfile/k3blibsndfiledecoder.cpp index ea3d014..0f23d4e 100644 --- a/plugins/decoder/libsndfile/k3blibsndfiledecoder.cpp +++ b/plugins/decoder/libsndfile/k3blibsndfiledecoder.cpp @@ -20,8 +20,8 @@ #include <k3bpluginfactory.h> -#include <qfile.h> -#include <qstringlist.h> +#include <tqfile.h> +#include <tqstringlist.h> #include <kurl.h> #include <kdebug.h> @@ -57,8 +57,8 @@ public: -K3bLibsndfileDecoder::K3bLibsndfileDecoder( QObject* parent, const char* name ) - : K3bAudioDecoder( parent, name ) +K3bLibsndfileDecoder::K3bLibsndfileDecoder( TQObject* tqparent, const char* name ) + : K3bAudioDecoder( tqparent, name ) { d = new Private(); } @@ -70,10 +70,10 @@ K3bLibsndfileDecoder::~K3bLibsndfileDecoder() } -QString K3bLibsndfileDecoder::fileType() const +TQString K3bLibsndfileDecoder::fileType() const { if( d->format_info.name ) - return QString::fromLocal8Bit(d->format_info.name); + return TQString::fromLocal8Bit(d->format_info.name); else return "-"; } @@ -87,7 +87,7 @@ bool K3bLibsndfileDecoder::openFile() cleanup(); d->sndinfo.format = 0; - d->sndfile = sf_open (QFile::encodeName(filename()), SFM_READ, &d->sndinfo); + d->sndfile = sf_open (TQFile::encodeName(filename()), SFM_READ, &d->sndinfo); if ( !d->sndfile ) { kdDebug() << "(K3bLibsndfileDecoder::openLibsndfileFile) : " << sf_strerror(d->sndfile) << endl; return false; @@ -124,8 +124,8 @@ bool K3bLibsndfileDecoder::analyseFileInternal( K3b::Msf& frames, int& samplerat addMetaInfo( META_ARTIST, sf_get_string(d->sndfile, SF_STR_ARTIST) ); addMetaInfo( META_COMMENT, sf_get_string(d->sndfile, SF_STR_COMMENT) ); - addTechnicalInfo( i18n("Channels"), QString::number(d->sndinfo.channels) ); - addTechnicalInfo( i18n("Sampling Rate"), i18n("%1 Hz").arg(d->sndinfo.samplerate) ); + addTechnicalInfo( i18n("Channels"), TQString::number(d->sndinfo.channels) ); + addTechnicalInfo( i18n("Sampling Rate"), i18n("%1 Hz").tqarg(d->sndinfo.samplerate) ); frames = (unsigned long)ceil(d->sndinfo.frames / d->sndinfo.samplerate * 75.0); samplerate = d->sndinfo.samplerate; @@ -202,8 +202,8 @@ void K3bLibsndfileDecoder::cleanup() /********************************************************/ -K3bLibsndfileDecoderFactory::K3bLibsndfileDecoderFactory( QObject* parent, const char* name ) - : K3bAudioDecoderFactory( parent, name ) +K3bLibsndfileDecoderFactory::K3bLibsndfileDecoderFactory( TQObject* tqparent, const char* name ) + : K3bAudioDecoderFactory( tqparent, name ) { } @@ -213,10 +213,10 @@ K3bLibsndfileDecoderFactory::~K3bLibsndfileDecoderFactory() } -K3bAudioDecoder* K3bLibsndfileDecoderFactory::createDecoder( QObject* parent, +K3bAudioDecoder* K3bLibsndfileDecoderFactory::createDecoder( TQObject* tqparent, const char* name ) const { - return new K3bLibsndfileDecoder( parent, name ); + return new K3bLibsndfileDecoder( tqparent, name ); } @@ -224,7 +224,7 @@ bool K3bLibsndfileDecoderFactory::canDecode( const KURL& url ) { SF_INFO infos; infos.format = 0; - SNDFILE* sndfile = sf_open (QFile::encodeName(url.path()), SFM_READ, &infos); + SNDFILE* sndfile = sf_open (TQFile::encodeName(url.path()), SFM_READ, &infos); //is it supported by libsndfile? if ( !sndfile ) { diff --git a/plugins/decoder/libsndfile/k3blibsndfiledecoder.h b/plugins/decoder/libsndfile/k3blibsndfiledecoder.h index 7ffbe2d..005cb0b 100644 --- a/plugins/decoder/libsndfile/k3blibsndfiledecoder.h +++ b/plugins/decoder/libsndfile/k3blibsndfiledecoder.h @@ -25,9 +25,10 @@ class KURL; class K3bLibsndfileDecoderFactory : public K3bAudioDecoderFactory { Q_OBJECT + TQ_OBJECT public: - K3bLibsndfileDecoderFactory( QObject* parent = 0, const char* name = 0 ); + K3bLibsndfileDecoderFactory( TQObject* tqparent = 0, const char* name = 0 ); ~K3bLibsndfileDecoderFactory(); bool canDecode( const KURL& filename ); @@ -36,7 +37,7 @@ class K3bLibsndfileDecoderFactory : public K3bAudioDecoderFactory bool multiFormatDecoder() const { return true; } - K3bAudioDecoder* createDecoder( QObject* parent = 0, + K3bAudioDecoder* createDecoder( TQObject* tqparent = 0, const char* name = 0 ) const; }; @@ -44,12 +45,13 @@ class K3bLibsndfileDecoderFactory : public K3bAudioDecoderFactory class K3bLibsndfileDecoder : public K3bAudioDecoder { Q_OBJECT + TQ_OBJECT public: - K3bLibsndfileDecoder( QObject* parent = 0, const char* name = 0 ); + K3bLibsndfileDecoder( TQObject* tqparent = 0, const char* name = 0 ); ~K3bLibsndfileDecoder(); void cleanup(); - QString fileType() const; + TQString fileType() const; protected: bool analyseFileInternal( K3b::Msf& frames, int& samplerate, int& ch ); |