]>
Commit | Line | Data |
---|---|---|
5526e819 VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: fs_zip.h | |
3 | // Purpose: ZIP file system | |
4 | // Author: Vaclav Slavik | |
5 | // Copyright: (c) 1999 Vaclav Slavik | |
6 | // Licence: wxWindows Licence | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | ||
10 | #ifdef __GNUG__ | |
11 | #pragma implementation | |
12 | #endif | |
13 | ||
ed58dbea | 14 | #include "wx/wxprec.h" |
5526e819 VS |
15 | |
16 | #ifdef __BORDLANDC__ | |
17 | #pragma hdrstop | |
18 | #endif | |
19 | ||
8a4df159 RR |
20 | #if wxUSE_FS_ZIP && wxUSE_STREAMS |
21 | ||
22 | ||
5526e819 | 23 | #ifndef WXPRECOMP |
ed58dbea | 24 | #include "wx/wx.h" |
5526e819 VS |
25 | #endif |
26 | ||
ed58dbea | 27 | #include "wx/filesys.h" |
5526e819 VS |
28 | |
29 | //-------------------------------------------------------------------------------- | |
30 | // wxZipFSHandler | |
31 | //-------------------------------------------------------------------------------- | |
32 | ||
d674cf6d | 33 | class WXDLLEXPORT wxZipFSHandler : public wxFileSystemHandler |
5526e819 VS |
34 | { |
35 | public: | |
aaa66113 | 36 | wxZipFSHandler(); |
5526e819 VS |
37 | virtual bool CanOpen(const wxString& location); |
38 | virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location); | |
aaa66113 VS |
39 | virtual wxString FindFirst(const wxString& spec, int flags = 0); |
40 | virtual wxString FindNext(); | |
5526e819 | 41 | ~wxZipFSHandler(); |
aaa66113 VS |
42 | |
43 | private: | |
44 | // these vars are used by FindFirst/Next: | |
45 | void *m_Archive; | |
46 | wxString m_Pattern, m_BaseDir, m_ZipFile; | |
47 | bool m_AllowDirs, m_AllowFiles; | |
48 | ||
49 | wxString DoFind(); | |
5526e819 VS |
50 | }; |
51 | ||
52 | ||
8a4df159 RR |
53 | #endif |
54 | // wxUSE_FS_ZIP && wxUSE_STREAMS | |
5526e819 | 55 |