class wxFSFile : public wxObject
{
public:
+ %pythonAppend wxFSFile
+ "self.thisown = 0 # It will normally be deleted by the user of the wxFileSystem";
+
wxFSFile(wxInputStream *stream, const wxString& loc,
const wxString& mimetype, const wxString& anchor,
wxDateTime modif);
- ~wxFSFile();
+
+ ~wxFSFile();
wxInputStream *GetStream();
const wxString& GetMimeType();
%name(FileSystemHandler) class wxPyFileSystemHandler : public wxFileSystemHandler
{
public:
- %addtofunc wxPyFileSystemHandler "self._setCallbackInfo(self, FileSystemHandler)";
+ %pythonAppend wxPyFileSystemHandler "self._setCallbackInfo(self, FileSystemHandler)";
wxPyFileSystemHandler();
void _setCallbackInfo(PyObject* self, PyObject* _class);
bool CanOpen(const wxString& location);
+ %newobject OpenFile;
wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
wxString FindFirst(const wxString& spec, int flags = 0);
wxString FindNext();
wxFileSystem();
~wxFileSystem();
- void ChangePathTo(const wxString& location, bool is_dir = FALSE);
+ void ChangePathTo(const wxString& location, bool is_dir = False);
wxString GetPath();
+ %newobject OpenFile;
wxFSFile* OpenFile(const wxString& location);
wxString FindFirst(const wxString& spec, int flags = 0);
public:
wxInternetFSHandler();
bool CanOpen(const wxString& location);
+ %newobject OpenFile;
wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
};
wxZipFSHandler();
bool CanOpen(const wxString& location);
+ %newobject OpenFile;
wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
wxString FindFirst(const wxString& spec, int flags = 0);
wxString FindNext();
%pythoncode { AddFile = staticmethod(MemoryFSHandler_AddFile) }
bool CanOpen(const wxString& location);
+ %newobject OpenFile;
wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
wxString FindFirst(const wxString& spec, int flags = 0);
virtual wxString FindNext();