diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdecore/ksavefile.h | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/ksavefile.h')
-rw-r--r-- | kdecore/ksavefile.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kdecore/ksavefile.h b/kdecore/ksavefile.h index 7e05aaa81..ae68b2d1f 100644 --- a/kdecore/ksavefile.h +++ b/kdecore/ksavefile.h @@ -20,7 +20,7 @@ #ifndef _KSAVEFILE_H_ #define _KSAVEFILE_H_ -#include <qstring.h> +#include <tqstring.h> #include <stdio.h> #include <errno.h> #include <ktempfile.h> @@ -46,7 +46,7 @@ public: * @param filename the path of the file * @param mode the mode of the file (see chmod(1)) */ - KSaveFile(const QString &filename, int mode = 0666 ); + KSaveFile(const TQString &filename, int mode = 0666 ); /** * The destructor closes the file. @@ -70,10 +70,10 @@ public: /** * The name of the file as passed to the constructor. - * @return The name of the file, or QString::null if opening the + * @return The name of the file, or TQString::null if opening the * file has failed **/ - QString name() const; + TQString name() const; /** * An integer file descriptor open for writing to the file. @@ -92,27 +92,27 @@ public: { return mTempFile.fstream(); } /** - * A QFile* open for writing to the file. - * @return A QFile open for writing to the file, or 0 if + * A TQFile* open for writing to the file. + * @return A TQFile open for writing to the file, or 0 if * opening the temporary file failed. **/ - QFile *file() + TQFile *file() { return mTempFile.file(); } /** - * A QTextStream* open for writing to the file. - * @return A QTextStream that is open for writing to the file, or 0 + * A TQTextStream* open for writing to the file. + * @return A TQTextStream that is open for writing to the file, or 0 * if opening the temporary file failed **/ - QTextStream *textStream() + TQTextStream *textStream() { return mTempFile.textStream(); } /** - * A QDataStream* open for writing to the file. - * @return A QDataStream that is open for writing to the file, or 0 + * A TQDataStream* open for writing to the file. + * @return A TQDataStream that is open for writing to the file, or 0 * if opening the file failed **/ - QDataStream *dataStream() + TQDataStream *dataStream() { return mTempFile.dataStream(); } /** @@ -138,12 +138,12 @@ public: * @param backupExtension the extension to append to @p filename, "~" by default. * @since 3.2 */ - static bool backupFile( const QString& filename, - const QString& backupDir = QString::null, - const QString& backupExtension = QString::fromLatin1( "~" ) ); + static bool backupFile( const TQString& filename, + const TQString& backupDir = TQString::null, + const TQString& backupExtension = TQString::fromLatin1( "~" ) ); private: - QString mFileName; + TQString mFileName; KTempFile mTempFile; KSaveFilePrivate *d; |