X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ff07edb0bc8969f580d543ee0de674df8325e16..8120bbc9166a16f95c03d0ee50974117429be9e0:/include/wx/filename.h diff --git a/include/wx/filename.h b/include/wx/filename.h index 801529327d..f78164d73e 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -32,6 +32,10 @@ class WXDLLIMPEXP_BASE wxFile; #endif +#if wxUSE_FFILE +class WXDLLIMPEXP_BASE wxFFile; +#endif + // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- @@ -266,15 +270,33 @@ public: void AssignHomeDir(); static wxString GetHomeDir(); + // get the system temporary directory + static wxString GetTempDir(); + +#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 );