X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3ff07edb0bc8969f580d543ee0de674df8325e16..235751501d3bb4141424cc08a7d88dd506746d18:/include/wx/filename.h diff --git a/include/wx/filename.h b/include/wx/filename.h index 801529327d..d56d2a2d90 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 ); @@ -367,7 +389,7 @@ public: static wxString GetPathTerminators(wxPathFormat format = wxPATH_NATIVE); // get the canonical path separator for this format - static wxChar GetPathSeparator(wxPathFormat format = wxPATH_NATIVE) + static wxUniChar GetPathSeparator(wxPathFormat format = wxPATH_NATIVE) { return GetPathSeparators(format)[0u]; } // is the char a path separator for this format?