summaryrefslogtreecommitdiffstats
path: root/src/common/global/pfile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/global/pfile.h')
-rw-r--r--src/common/global/pfile.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/common/global/pfile.h b/src/common/global/pfile.h
index d0955e7..477d7c0 100644
--- a/src/common/global/pfile.h
+++ b/src/common/global/pfile.h
@@ -9,7 +9,7 @@
#ifndef PFILE_H
#define PFILE_H
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include "purl.h"
namespace PURL
@@ -18,25 +18,25 @@ namespace PURL
class FileBase
{
public:
- FileBase(Log::Generic &log, const QString &extension);
+ FileBase(Log::Generic &log, const TQString &extension);
~FileBase();
- QFile *qfile();
- const QFile *qfile() const;
- QTextStream &stream();
- QString readText() { return stream().read(); }
- QString readLine() { return stream().readLine(); }
- QStringList readLines();
- QByteArray readAll();
- void appendText(const QString &text) { stream() << text; }
+ TQFile *qfile();
+ const TQFile *qfile() const;
+ TQTextStream &stream();
+ TQString readText() { return stream().read(); }
+ TQString readLine() { return stream().readLine(); }
+ TQStringList readLines();
+ TQByteArray readAll();
+ void appendText(const TQString &text) { stream() << text; }
void flush();
bool hasError() const;
- QString errorString() const;
+ TQString errorString() const;
protected:
KTempFile *_tmp;
- QFile *_file;
- QTextStream *_stream;
- QString _error, _extension;
+ TQFile *_file;
+ TQTextStream *_stream;
+ TQString _error, _extension;
Log::Generic &_log;
private: // disable copy constructor and operator =