]> git.saurik.com Git - wxWidgets.git/blame - include/wx/fs_zip.h
Window management and sizer layout corrections
[wxWidgets.git] / include / wx / fs_zip.h
CommitLineData
5526e819
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: fs_zip.h
3// Purpose: ZIP file system
4// Author: Vaclav Slavik
5// Copyright: (c) 1999 Vaclav Slavik
de0702d0 6// CVS-ID: $Id$
5526e819
VS
7// Licence: wxWindows Licence
8/////////////////////////////////////////////////////////////////////////////
9
10
11#ifdef __GNUG__
c3f4609e 12#pragma interface "fs_zip.h"
5526e819
VS
13#endif
14
ed58dbea 15#include "wx/wxprec.h"
5526e819
VS
16
17#ifdef __BORDLANDC__
18#pragma hdrstop
19#endif
20
24528b0c 21#if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS
8a4df159 22
ed58dbea 23#include "wx/filesys.h"
5526e819 24
de0702d0
VS
25class WXDLLEXPORT wxHashTableLong;
26
5526e819
VS
27//--------------------------------------------------------------------------------
28// wxZipFSHandler
29//--------------------------------------------------------------------------------
30
d674cf6d 31class WXDLLEXPORT wxZipFSHandler : public wxFileSystemHandler
5526e819
VS
32{
33 public:
aaa66113 34 wxZipFSHandler();
5526e819
VS
35 virtual bool CanOpen(const wxString& location);
36 virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
aaa66113
VS
37 virtual wxString FindFirst(const wxString& spec, int flags = 0);
38 virtual wxString FindNext();
5526e819 39 ~wxZipFSHandler();
04dbb646 40
aaa66113
VS
41 private:
42 // these vars are used by FindFirst/Next:
43 void *m_Archive;
44 wxString m_Pattern, m_BaseDir, m_ZipFile;
45 bool m_AllowDirs, m_AllowFiles;
de0702d0 46 wxHashTableLong *m_DirsFound;
04dbb646 47
aaa66113 48 wxString DoFind();
5526e819
VS
49};
50
51
8a4df159 52#endif
24528b0c 53 // wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS
5526e819 54