20 #ifndef _TDETEMPFILE_H_
21 #define _TDETEMPFILE_H_
26 #include "tdelibs_export.h"
32 class KTempFilePrivate;
71 KTempFile(TQString filePrefix=TQString::null,
72 TQString fileExtension=TQString::null,
122 TQString
name()
const;
195 bool create(
const TQString &filePrefix,
196 const TQString &fileExtension,
int mode);
198 void setError(
int error) { mError = error; }
205 TQTextStream *mTextStream;
206 TQDataStream *mDataStream;
The KSaveFile class has been made to write out changes to an existing file atomically.
TQString name() const
The name of the file as passed to the constructor.
int status() const
Returns the status of the file based on errno.
FILE * fstream()
A FILE* stream open for writing to the file.
TQFile * file()
A TQFile* open for writing to the file.
TQDataStream * dataStream()
A TQDataStream* open for writing to the file.
bool close()
Closes the file and makes the changes definitive.
TQTextStream * textStream()
A TQTextStream* open for writing to the file.
int handle() const
An integer file descriptor open for writing to the file.
The KTempFile class creates and opens a unique file for temporary use.
void setAutoDelete(bool autoDelete)
Turn automatic deletion on or off.