X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/af49c4b8a2d3553e733e71c7dd3911881f4c1a2a..d9b21c9f47f59f36d73220270002b55a7babfdfc:/include/wx/filesys.h diff --git a/include/wx/filesys.h b/include/wx/filesys.h index b8e5da0927..f648962080 100644 --- a/include/wx/filesys.h +++ b/include/wx/filesys.h @@ -29,6 +29,7 @@ #include "wx/stream.h" #include "wx/url.h" #include "wx/datetime.h" +#include "wx/filename.h" class wxFSFile; class wxFileSystemHandler; @@ -78,6 +79,7 @@ private: wxDateTime m_Modif; DECLARE_ABSTRACT_CLASS(wxFSFile) + DECLARE_NO_COPY_CLASS(wxFSFile) }; @@ -180,6 +182,13 @@ public: // remove all items from the m_Handlers list static void CleanUpHandlers(); + // Returns the native path for a file URL + static wxFileName URLToFileName(const wxString& url); + + // Returns the file URL for a native path + static wxString FileNameToURL(const wxFileName& filename); + + protected: wxString m_Path; // the path (location) we are currently in @@ -194,6 +203,7 @@ protected: // handler that succeed in FindFirst query DECLARE_DYNAMIC_CLASS(wxFileSystem) + DECLARE_NO_COPY_CLASS(wxFileSystem) };