X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8a4df1595bc8ce70286afe99f122f64916790ad4..674ac8b919eecbc201b5f23b470a567cd0565e10:/include/wx/fs_zip.h diff --git a/include/wx/fs_zip.h b/include/wx/fs_zip.h index c0161fec70..53d866fd81 100644 --- a/include/wx/fs_zip.h +++ b/include/wx/fs_zip.h @@ -11,7 +11,7 @@ #pragma implementation #endif -#include +#include "wx/wxprec.h" #ifdef __BORDLANDC__ #pragma hdrstop @@ -21,23 +21,32 @@ #ifndef WXPRECOMP -#include +#include "wx/wx.h" #endif -#include - - +#include "wx/filesys.h" //-------------------------------------------------------------------------------- // wxZipFSHandler //-------------------------------------------------------------------------------- -class wxZipFSHandler : public wxFileSystemHandler +class WXDLLEXPORT wxZipFSHandler : public wxFileSystemHandler { public: + wxZipFSHandler(); virtual bool CanOpen(const wxString& location); virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location); + virtual wxString FindFirst(const wxString& spec, int flags = 0); + virtual wxString FindNext(); ~wxZipFSHandler(); + + private: + // these vars are used by FindFirst/Next: + void *m_Archive; + wxString m_Pattern, m_BaseDir, m_ZipFile; + bool m_AllowDirs, m_AllowFiles; + + wxString DoFind(); };