X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42e2bbb9e149c589ab03cf6d2adec0617a9f0f24..9ac884500ce30c58e24b0a6af1288b576d2e03e4:/wxPython/src/_filesys.i?ds=sidebyside diff --git a/wxPython/src/_filesys.i b/wxPython/src/_filesys.i index 4291d52077..8975133d3d 100644 --- a/wxPython/src/_filesys.i +++ b/wxPython/src/_filesys.i @@ -38,6 +38,8 @@ public: ~wxFSFile(); wxInputStream *GetStream(); + void DetachStream(); + const wxString& GetMimeType(); const wxString& GetLocation(); const wxString& GetAnchor(); @@ -142,9 +144,15 @@ public: class wxFileSystem : public wxObject { public: + // turn off this typemap + %typemap(out) wxFileSystem*; + wxFileSystem(); ~wxFileSystem(); + // Turn it back on again + %typemap(out) wxFileSystem* { $result = wxPyMake_wxObject($1, $owner); } + void ChangePathTo(const wxString& location, bool is_dir = false); wxString GetPath(); @@ -158,6 +166,10 @@ public: static void AddHandler(wxFileSystemHandler *handler); %cleardisown(wxFileSystemHandler *handler); + // Removes FS handler + %newobject RemoveHandler; + static wxFileSystemHandler* RemoveHandler(wxFileSystemHandler *handler); + static void CleanUpHandlers(); // Returns the file URL for a native path