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
28 #include "wx/filesys.h"
30 class WXDLLEXPORT wxHashTableLong
;
32 //--------------------------------------------------------------------------------
34 //--------------------------------------------------------------------------------
36 class WXDLLEXPORT wxZipFSHandler
: public wxFileSystemHandler
40 virtual bool CanOpen(const wxString
& location
);
41 virtual wxFSFile
* OpenFile(wxFileSystem
& fs
, const wxString
& location
);
42 virtual wxString
FindFirst(const wxString
& spec
, int flags
= 0);
43 virtual wxString
FindNext();
47 // these vars are used by FindFirst/Next:
49 wxString m_Pattern
, m_BaseDir
, m_ZipFile
;
50 bool m_AllowDirs
, m_AllowFiles
;
51 wxHashTableLong
*m_DirsFound
;
58 // wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS