diff options
Diffstat (limited to 'kioslave/audiocd/plugins/vorbis')
-rw-r--r-- | kioslave/audiocd/plugins/vorbis/encodervorbis.cpp | 22 | ||||
-rw-r--r-- | kioslave/audiocd/plugins/vorbis/encodervorbis.h | 6 |
2 files changed, 14 insertions, 14 deletions
diff --git a/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp b/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp index 5b61f6ea..739e1c8f 100644 --- a/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp +++ b/kioslave/audiocd/plugins/vorbis/encodervorbis.cpp @@ -33,14 +33,14 @@ #include <stdlib.h> #include <kconfig.h> #include <knuminput.h> -#include <qgroupbox.h> +#include <tqgroupbox.h> #include <kglobal.h> #include <klocale.h> extern "C" { - KDE_EXPORT void create_audiocd_encoders(KIO::SlaveBase *slave, QPtrList<AudioCDEncoder> &encoders) + KDE_EXPORT void create_audiocd_encoders(KIO::SlaveBase *slave, TQPtrList<AudioCDEncoder> &encoders) { encoders.append(new EncoderVorbis(slave)); } @@ -79,7 +79,7 @@ EncoderVorbis::~EncoderVorbis(){ delete d; } -QWidget* EncoderVorbis::getConfigureWidget(KConfigSkeleton** manager) const { +TQWidget* EncoderVorbis::getConfigureWidget(KConfigSkeleton** manager) const { (*manager) = Settings::self(); KGlobal::locale()->insertCatalogue("audiocd_encoder_vorbis"); EncoderVorbisConfig *config = new EncoderVorbisConfig(); @@ -170,7 +170,7 @@ long EncoderVorbis::flush_vorbis(void) { while(int result=ogg_stream_pageout(&d->os,&d->og)) { if (!result) break; - QByteArray output; + TQByteArray output; char * oggheader = reinterpret_cast<char *>(d->og.header); char * oggbody = reinterpret_cast<char *>(d->og.body); @@ -250,7 +250,7 @@ long EncoderVorbis::readInit(long /*size*/){ if (!result) break; - QByteArray output; + TQByteArray output; char * oggheader = reinterpret_cast<char *>(d->og.header); char * oggbody = reinterpret_cast<char *>(d->og.body); @@ -296,27 +296,27 @@ long EncoderVorbis::readCleanup(){ return processed; } -void EncoderVorbis::fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment ) +void EncoderVorbis::fillSongInfo( KCDDB::CDInfo info, int track, const TQString &comment ) { if( !d->write_vorbis_comments ) return; - typedef QPair<QCString, QVariant> CommentField; - QValueList<CommentField> commentFields; + typedef QPair<TQCString, TQVariant> CommentField; + TQValueList<CommentField> commentFields; commentFields.append(CommentField("title", info.trackInfoList[track].get("title"))); commentFields.append(CommentField("artist", info.get("artist"))); commentFields.append(CommentField("album", info.get("title"))); commentFields.append(CommentField("genre", info.get("genre"))); - commentFields.append(CommentField("tracknumber", QString::number(track+1))); + commentFields.append(CommentField("tracknumber", TQString::number(track+1))); commentFields.append(CommentField("comment", comment)); if (info.get("year").toInt() > 0) { - QDateTime dt(QDate(info.get("year").toInt(), 1, 1)); + TQDateTime dt(TQDate(info.get("year").toInt(), 1, 1)); commentFields.append(CommentField("date", dt.toString(Qt::ISODate).utf8().data())); } - for(QValueListIterator<CommentField> it = commentFields.begin(); it != commentFields.end(); ++it) { + for(TQValueListIterator<CommentField> it = commentFields.begin(); it != commentFields.end(); ++it) { // if the value is not empty if(!(*it).second.toString().isEmpty()) { diff --git a/kioslave/audiocd/plugins/vorbis/encodervorbis.h b/kioslave/audiocd/plugins/vorbis/encodervorbis.h index a6ad22ff..fbf649c7 100644 --- a/kioslave/audiocd/plugins/vorbis/encodervorbis.h +++ b/kioslave/audiocd/plugins/vorbis/encodervorbis.h @@ -42,17 +42,17 @@ public: EncoderVorbis(KIO::SlaveBase *slave); ~EncoderVorbis(); - virtual QString type() const { return "Ogg Vorbis"; }; + virtual TQString type() const { return "Ogg Vorbis"; }; virtual bool init(); virtual void loadSettings(); virtual unsigned long size(long time_secs) const; virtual const char * fileType() const { return "ogg"; }; virtual const char * mimeType() const; - virtual void fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment ); + virtual void fillSongInfo( KCDDB::CDInfo info, int track, const TQString &comment ); virtual long readInit(long size); virtual long read(int16_t * buf, int frames); virtual long readCleanup(); - virtual QWidget* getConfigureWidget(KConfigSkeleton** manager) const; + virtual TQWidget* getConfigureWidget(KConfigSkeleton** manager) const; private: long flush_vorbis(); |