summaryrefslogtreecommitdiffstats
path: root/kioslave/audiocd/plugins/flac
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kioslave/audiocd/plugins/flac
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kioslave/audiocd/plugins/flac')
-rw-r--r--kioslave/audiocd/plugins/flac/encoderflac.cpp18
-rw-r--r--kioslave/audiocd/plugins/flac/encoderflac.h4
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();