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