summaryrefslogtreecommitdiffstats
path: root/src/kqtempfile.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 19:00:37 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-29 19:00:37 +0000
commit25794f504692e5a36c490438814e9dfda8aaa2dd (patch)
tree8061e6d27b5bc9042afdff177872779c4e8c9015 /src/kqtempfile.h
parent35ff2a942f63b5201c04f41c3097e61cdd7817e9 (diff)
downloadkchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.tar.gz
kchmviewer-25794f504692e5a36c490438814e9dfda8aaa2dd.zip
TQt4 port kchmviewer
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kchmviewer@1234150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kqtempfile.h')
-rw-r--r--src/kqtempfile.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/kqtempfile.h b/src/kqtempfile.h
index 6440067..dda9f56 100644
--- a/src/kqtempfile.h
+++ b/src/kqtempfile.h
@@ -19,35 +19,35 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#ifndef KQTEMPFILE_H
-#define KQTEMPFILE_H
+#ifndef KTQTEMPFILE_H
+#define KTQTEMPFILE_H
-#include <qvaluevector.h>
-#include <qfile.h>
+#include <tqvaluevector.h>
+#include <tqfile.h>
/*
* This class generates temp file names in race condition-safe way,
- * returns QFile and filename pairs, keeps the track of opened temp files,
+ * returns TQFile and filename pairs, keeps the track of opened temp files,
* and deletes them when program exist.
*/
-class KQTempFileKeeper
+class KTQTempFileKeeper
{
public:
- KQTempFileKeeper();
- ~KQTempFileKeeper();
+ KTQTempFileKeeper();
+ ~KTQTempFileKeeper();
//! Generates a temporary file name, and creates it on disk at the same time.
//! Returns the file. If tempdir is not empty, it is used as temp directory.
- bool generateTempFile( QFile& file, const QString& tempdir = QString::null );
+ bool generateTempFile( TQFile& file, const TQString& tempdir = TQString() );
//! Closes and removes all the files from disk
void destroyTempFiles();
private:
- QValueVector<QString> m_tempFiles;
- QString m_tempDir;
+ TQValueVector<TQString> m_tempFiles;
+ TQString m_tempDir;
unsigned int m_fileNumber;
};
-#endif /* KQTEMPFILE_H */
+#endif /* KTQTEMPFILE_H */