1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: ZIP file system
4 // Author: Vaclav Slavik
5 // Copyright: (c) 1999 Vaclav Slavik
7 // Licence: wxWindows Licence
8 /////////////////////////////////////////////////////////////////////////////
12 #pragma interface "fs_zip.h"
15 #include "wx/wxprec.h"
21 #if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS
23 #include "wx/filesys.h"
25 class WXDLLEXPORT wxHashTableLong
;
27 //--------------------------------------------------------------------------------
29 //--------------------------------------------------------------------------------
31 class WXDLLEXPORT wxZipFSHandler
: public wxFileSystemHandler
35 virtual bool CanOpen(const wxString
& location
);
36 virtual wxFSFile
* OpenFile(wxFileSystem
& fs
, const wxString
& location
);
37 virtual wxString
FindFirst(const wxString
& spec
, int flags
= 0);
38 virtual wxString
FindNext();
42 // these vars are used by FindFirst/Next:
44 wxString m_Pattern
, m_BaseDir
, m_ZipFile
;
45 bool m_AllowDirs
, m_AllowFiles
;
46 wxHashTableLong
*m_DirsFound
;
53 // wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS