X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b70a2866d5dfc22a0888f874b4b9cd0b97a1760d..a69476643b44e06bab1090a92a29ce4faeb5402d:/include/wx/filename.h?ds=sidebyside diff --git a/include/wx/filename.h b/include/wx/filename.h index 762237b5ae..023366e020 100644 --- a/include/wx/filename.h +++ b/include/wx/filename.h @@ -27,13 +27,14 @@ #include "wx/filefn.h" #include "wx/datetime.h" #include "wx/intl.h" +#include "wx/longlong.h" #if wxUSE_FILE -class WXDLLIMPEXP_BASE wxFile; +class WXDLLIMPEXP_FWD_BASE wxFile; #endif #if wxUSE_FFILE -class WXDLLIMPEXP_BASE wxFFile; +class WXDLLIMPEXP_FWD_BASE wxFFile; #endif // ---------------------------------------------------------------------------- @@ -84,8 +85,10 @@ enum wxPATH_MKDIR_FULL = 0x0001 // create directories recursively }; +#if wxUSE_LONGLONG // error code of wxFileName::GetSize() -extern wxULongLong wxInvalidSize; +extern WXDLLIMPEXP_DATA_BASE(const wxULongLong) wxInvalidSize; +#endif // wxUSE_LONGLONG @@ -270,6 +273,9 @@ 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); @@ -386,7 +392,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? @@ -480,6 +486,7 @@ public: // Filesize +#if wxUSE_LONGLONG // returns the size of the given filename wxULongLong GetSize() const; static wxULongLong GetSize(const wxString &file); @@ -490,6 +497,7 @@ public: static wxString GetHumanReadableSize(const wxULongLong &sz, const wxString &nullsize = wxGetTranslation(_T("Not available")), int precision = 1); +#endif // wxUSE_LONGLONG // deprecated methods, don't use any more