summaryrefslogtreecommitdiffstats
path: root/noatun/library/ksaver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/library/ksaver.cpp')
-rw-r--r--noatun/library/ksaver.cpp28
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);
}
}