wxFileName::CreateTempFileName changes. Open the tempfiles read/write. Allow
self delting temp files to be created, where the OS supports it. Add support for opening wxFFile temp files. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -32,6 +32,10 @@
|
||||
class WXDLLIMPEXP_BASE wxFile;
|
||||
#endif
|
||||
|
||||
#if wxUSE_FFILE
|
||||
class WXDLLIMPEXP_BASE wxFFile;
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -266,15 +270,30 @@ public:
|
||||
void AssignHomeDir();
|
||||
static wxString GetHomeDir();
|
||||
|
||||
#if wxUSE_FILE || wxUSE_FFILE
|
||||
// get a temp file name starting with the specified prefix
|
||||
void AssignTempFileName(const wxString& prefix);
|
||||
static wxString CreateTempFileName(const wxString& prefix);
|
||||
#endif // wxUSE_FILE
|
||||
|
||||
#if wxUSE_FILE
|
||||
// get a temp file name starting with the specified prefix and open the
|
||||
// file passed to us using this name for writing (atomically if
|
||||
// possible)
|
||||
void AssignTempFileName(const wxString& prefix, wxFile *fileTemp = NULL);
|
||||
void AssignTempFileName(const wxString& prefix, wxFile *fileTemp);
|
||||
static wxString CreateTempFileName(const wxString& prefix,
|
||||
wxFile *fileTemp = NULL);
|
||||
wxFile *fileTemp);
|
||||
#endif // wxUSE_FILE
|
||||
|
||||
#if wxUSE_FFILE
|
||||
// get a temp file name starting with the specified prefix and open the
|
||||
// file passed to us using this name for writing (atomically if
|
||||
// possible)
|
||||
void AssignTempFileName(const wxString& prefix, wxFFile *fileTemp);
|
||||
static wxString CreateTempFileName(const wxString& prefix,
|
||||
wxFFile *fileTemp);
|
||||
#endif // wxUSE_FFILE
|
||||
|
||||
// directory creation and removal.
|
||||
bool Mkdir( int perm = 0777, int flags = 0);
|
||||
static bool Mkdir( const wxString &dir, int perm = 0777, int flags = 0 );
|
||||
|
Reference in New Issue
Block a user