~wxFSFile();
wxInputStream *GetStream();
+ void DetachStream();
+
const wxString& GetMimeType();
const wxString& GetLocation();
const wxString& GetAnchor();
class wxPyFileSystemHandler : public wxFileSystemHandler
{
public:
- %pythonAppend wxPyFileSystemHandler "self._setCallbackInfo(self, FileSystemHandler)";
+ %pythonAppend wxPyFileSystemHandler setCallbackInfo(FileSystemHandler)
wxPyFileSystemHandler();
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();
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