diff options
Diffstat (limited to 'kioslave/audiocd/plugins/flac')
-rw-r--r-- | kioslave/audiocd/plugins/flac/encoderflac.cpp | 18 | ||||
-rw-r--r-- | kioslave/audiocd/plugins/flac/encoderflac.h | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/kioslave/audiocd/plugins/flac/encoderflac.cpp b/kioslave/audiocd/plugins/flac/encoderflac.cpp index a787984b..86d30a89 100644 --- a/kioslave/audiocd/plugins/flac/encoderflac.cpp +++ b/kioslave/audiocd/plugins/flac/encoderflac.cpp @@ -32,7 +32,7 @@ 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 EncoderFLAC(slave)); } @@ -53,7 +53,7 @@ static FLAC__StreamEncoderWriteStatus WriteCallback(const FLAC__StreamEncoder *e d->data += bytes; - QByteArray output; + TQByteArray output; if (bytes) { output.setRawData((const char*)buffer, bytes); @@ -153,29 +153,29 @@ long EncoderFLAC::readCleanup() return 0; } -void EncoderFLAC::fillSongInfo( KCDDB::CDInfo info, int track, const QString &comment ) +void EncoderFLAC::fillSongInfo( KCDDB::CDInfo info, int track, const TQString &comment ) { d->metadata = new FLAC__StreamMetadata*[1]; d->metadata[0] = FLAC__metadata_object_new(FLAC__METADATA_TYPE_VORBIS_COMMENT); // d->metadata[1] = FLAC__metadata_object_new(FLAC__METADATA_TYPE_PADDING); // d->metadata[2] = FLAC__metadata_object_new(FLAC__METADATA_TYPE_SEEKTABLE) - typedef QPair<QString, QVariant> Comment; + typedef QPair<TQString, TQVariant> Comment; Comment comments[7] = { Comment("Title", info.trackInfoList[track].get("title")), Comment("Artist", info.get("artist")), Comment("Album", info.get("title")), Comment("Genre", info.get("genre")), - Comment("Tracknumber", QString::number(track+1)), + Comment("Tracknumber", TQString::number(track+1)), Comment("Comment", comment), - Comment("Date", QString::null )}; + Comment("Date", TQString::null )}; if (info.get("Year").toInt() > 0) { - QDateTime dt(QDate(info.get("Year").toInt(), 1, 1)); + TQDateTime dt(TQDate(info.get("Year").toInt(), 1, 1)); comments[6] = Comment("Date", dt.toString(Qt::ISODate)); } FLAC__StreamMetadata_VorbisComment_Entry entry; - QString field; - QCString cfield; + TQString field; + TQCString cfield; int num_comments = 0; for(int i=0; i<7; i++) { diff --git a/kioslave/audiocd/plugins/flac/encoderflac.h b/kioslave/audiocd/plugins/flac/encoderflac.h index 0dd285b8..9bec8bf4 100644 --- a/kioslave/audiocd/plugins/flac/encoderflac.h +++ b/kioslave/audiocd/plugins/flac/encoderflac.h @@ -38,13 +38,13 @@ public: EncoderFLAC(KIO::SlaveBase *slave); ~EncoderFLAC(); - virtual QString type() const { return "FLAC"; }; + virtual TQString type() const { return "FLAC"; }; virtual bool init(); virtual void loadSettings(); virtual unsigned long size(long time_secs) const; virtual const char * fileType() const { return "flac"; }; virtual const char * mimeType() const { return "audio/x-flac"; } - 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(); |