diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /noatun/library/ksaver.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-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 'noatun/library/ksaver.cpp')
-rw-r--r-- | noatun/library/ksaver.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/noatun/library/ksaver.cpp b/noatun/library/ksaver.cpp index f1cc6a61..40b3606c 100644 --- a/noatun/library/ksaver.cpp +++ b/noatun/library/ksaver.cpp @@ -39,11 +39,11 @@ public: KSaverPrivate() : isLocal(true), tempFile(0), file(0), textStream(0), dataStream(0) {}; bool isLocal; KTempFile *tempFile; - QFile *file; + TQFile *file; KURL url; - QString error; - QTextStream *textStream; - QDataStream *dataStream; + TQString error; + TQTextStream *textStream; + TQDataStream *dataStream; }; Noatun::KSaver::KSaver(const KURL &_target) @@ -54,7 +54,7 @@ Noatun::KSaver::KSaver(const KURL &_target) if(d->url.protocol() == "file") { d->isLocal = true; - d->file = new QFile(d->url.path()); + d->file = new TQFile(d->url.path()); } else { @@ -124,22 +124,22 @@ bool Noatun::KSaver::close(void) } } -QString Noatun::KSaver::error(void) +TQString Noatun::KSaver::error(void) { return d->error; } -QFile &Noatun::KSaver::file(void) +TQFile &Noatun::KSaver::file(void) { if(d->isLocal && d->file) return *d->file; else if(!d->isLocal && d->tempFile) return *d->tempFile->file(); else - return *static_cast<QFile *>(0); + return *static_cast<TQFile *>(0); } -QTextStream &Noatun::KSaver::textStream() +TQTextStream &Noatun::KSaver::textStream() { if(d->textStream) { @@ -147,7 +147,7 @@ QTextStream &Noatun::KSaver::textStream() } else if(d->isLocal && d->file) { - d->textStream = new QTextStream(d->file); + d->textStream = new TQTextStream(d->file); return *d->textStream; } else if(!d->isLocal && d->tempFile) @@ -157,11 +157,11 @@ QTextStream &Noatun::KSaver::textStream() } else { - return *static_cast<QTextStream *>(0); + return *static_cast<TQTextStream *>(0); } } -QDataStream &Noatun::KSaver::dataStream() +TQDataStream &Noatun::KSaver::dataStream() { if(d->dataStream) { @@ -169,7 +169,7 @@ QDataStream &Noatun::KSaver::dataStream() } else if(d->isLocal && d->file) { - d->dataStream = new QDataStream(d->file); + d->dataStream = new TQDataStream(d->file); return *d->dataStream; } else if(!d->isLocal && d->tempFile) @@ -179,6 +179,6 @@ QDataStream &Noatun::KSaver::dataStream() } else { - return *static_cast<QDataStream *>(0); + return *static_cast<TQDataStream *>(0); } } |