Qt 4.8
|
#include "qtemporaryfile.h"
#include "qplatformdefs.h"
#include "private/qfile_p.h"
#include "private/qfsfileengine_p.h"
#include "private/qsystemerror_p.h"
#include "private/qfilesystemengine_p.h"
Go to the source code of this file.
Classes | |
class | QTemporaryFileEngine |
class | QTemporaryFilePrivate |
Typedefs | |
typedef ushort | Char |
typedef HANDLE | NativeFileHandle |
Functions | |
static bool | createFileFromTemplate (NativeFileHandle &file, QFileSystemEntry::NativePath &path, size_t pos, size_t length, QSystemError &error) |
Generates a unique file path and returns a native handle to the open file. More... | |
static Char | Latin1Char (char ch) |
Definition at line 68 of file qtemporaryfile.cpp.
typedef HANDLE NativeFileHandle |
Definition at line 76 of file qtemporaryfile.cpp.
|
static |
Generates a unique file path and returns a native handle to the open file.
path is used as a template when generating unique paths, pos identifies the position of the first character that will be replaced in the template and length the number of characters that may be substituted.
Returns an open handle to the newly created file if successful, an invalid handle otherwise. In both cases, the string in path will be changed and contain the generated path name.
Definition at line 135 of file qtemporaryfile.cpp.
Referenced by QTemporaryFileEngine::open().
|
inlinestatic |
Definition at line 70 of file qtemporaryfile.cpp.
Referenced by createFileFromTemplate(), and QTemporaryFileEngine::open().