X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/31eacdaf44bb5ace84b48abd946aaf96a429e5e6..4311588bfe40e15dc83154b9653ebc432b42baeb:/interface/wx/filename.h diff --git a/interface/wx/filename.h b/interface/wx/filename.h index be88a2631e..3f40781ab7 100644 --- a/interface/wx/filename.h +++ b/interface/wx/filename.h @@ -819,6 +819,24 @@ public: static bool IsPathSeparator(wxChar ch, wxPathFormat format = wxPATH_NATIVE); + /** + Returns @true if the volume part of the path is a unique volume name. + + This function will always return @false if the path format is not + wxPATH_DOS. + + Unique volume names are Windows volume identifiers which remain the same + regardless of where the volume is actually mounted. Example of a path + using a volume name could be + @code + \\?\Volume{8089d7d7-d0ac-11db-9dd0-806d6172696f}\Program Files\setup.exe + @endcode + + @since 2.9.1 + */ + static bool IsMSWUniqueVolumeNamePath(const wxString& path, + wxPathFormat format = wxPATH_NATIVE); + /** Returns @true if this filename is not absolute. */ @@ -1074,6 +1092,16 @@ public: */ void SetName(const wxString& name); + /** + Sets the full path. + + The @a path argument includes both the path (and the volume, if + supported by @a format) and the name and extension. + + @see GetPath() + */ + void SetPath(const wxString& path, wxPathFormat format = wxPATH_NATIVE); + /** Sets the file creation and last access/modification times (any of the pointers may be @NULL).