]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/private/filename.h
3ed734b4b76cf04d135eb6fc67faf7890838dcf9
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/private/filename.h
3 // Purpose: Internal declarations for src/common/filename.cpp
4 // Author: Mike Wetherell
8 // Copyright: (c) 2006 Mike Wetherell
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PRIVATE_FILENAME_H_
13 #define _WX_PRIVATE_FILENAME_H_
18 // Self deleting temp files aren't supported on all platforms. Therefore
19 // rather than let these be in the API, they can be used internally to
20 // implement classes (e.g. wxTempFileStream), that will do the clean up when
21 // the OS doesn't support it.
23 // Same usage as wxFileName::CreateTempFileName() with the extra parameter
24 // deleteOnClose. *deleteOnClose true on entry requests a file created with a
25 // delete on close flag, on exit the value of *deleteOnClose indicates whether
29 wxString
wxCreateTempFileName(const wxString
& prefix
,
31 bool *deleteOnClose
= NULL
);
35 wxString
wxCreateTempFileName(const wxString
& prefix
,
37 bool *deleteOnClose
= NULL
);
40 // Returns an open temp file, if possible either an unlinked open file or one
41 // that will delete on close. Only returns the filename if neither was
42 // possible, so that the caller can delete the file when done.
45 bool wxCreateTempFile(const wxString
& prefix
,
51 bool wxCreateTempFile(const wxString
& prefix
,
56 #endif // _WX_PRIVATE_FILENAME_H_