]> git.saurik.com Git - wxWidgets.git/blame - include/wx/fs_zip.h
Changed the wxPlatform syntax as per Vadim's suggestions
[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$
65571936 7// Licence: wxWindows licence
5526e819
VS
8/////////////////////////////////////////////////////////////////////////////
9
4e8e18e2
VZ
10#ifndef _WX_FS_ZIP_H_
11#define _WX_FS_ZIP_H_
5526e819 12
372c511b 13#include "wx/defs.h"
5526e819 14
24528b0c 15#if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS
8a4df159 16
ed58dbea 17#include "wx/filesys.h"
bdcade0a 18#include "wx/hashmap.h"
5526e819 19
62d9eab6 20
3f5c62f9 21WX_DECLARE_STRING_HASH_MAP(int, wxZipFilenameHashMap);
62d9eab6
VZ
22
23
bdcade0a 24//---------------------------------------------------------------------------
5526e819 25// wxZipFSHandler
bdcade0a 26//---------------------------------------------------------------------------
5526e819 27
bddd7a8d 28class WXDLLIMPEXP_BASE wxZipFSHandler : public wxFileSystemHandler
5526e819
VS
29{
30 public:
aaa66113 31 wxZipFSHandler();
5526e819
VS
32 virtual bool CanOpen(const wxString& location);
33 virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
aaa66113
VS
34 virtual wxString FindFirst(const wxString& spec, int flags = 0);
35 virtual wxString FindNext();
f60b1d82 36 void Cleanup();
5526e819 37 ~wxZipFSHandler();
04dbb646 38
aaa66113
VS
39 private:
40 // these vars are used by FindFirst/Next:
00375592 41 class wxZipInputStream *m_Archive;
aaa66113
VS
42 wxString m_Pattern, m_BaseDir, m_ZipFile;
43 bool m_AllowDirs, m_AllowFiles;
62d9eab6 44 wxZipFilenameHashMap *m_DirsFound;
04dbb646 45
aaa66113 46 wxString DoFind();
22f3361e
VZ
47
48 DECLARE_NO_COPY_CLASS(wxZipFSHandler)
5526e819
VS
49};
50
51
8a4df159 52#endif
24528b0c 53 // wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS
5526e819 54
4e8e18e2
VZ
55#endif // _WX_FS_ZIP_H_
56