]> git.saurik.com Git - wxWidgets.git/blame - include/wx/fs_zip.h
layout improvement on mac
[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
4e8e18e2
VZ
10#ifndef _WX_FS_ZIP_H_
11#define _WX_FS_ZIP_H_
5526e819
VS
12
13#ifdef __GNUG__
c3f4609e 14#pragma interface "fs_zip.h"
5526e819
VS
15#endif
16
ed58dbea 17#include "wx/wxprec.h"
5526e819
VS
18
19#ifdef __BORDLANDC__
20#pragma hdrstop
21#endif
22
24528b0c 23#if wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS
8a4df159 24
ed58dbea 25#include "wx/filesys.h"
5526e819 26
de0702d0
VS
27class WXDLLEXPORT wxHashTableLong;
28
5526e819
VS
29//--------------------------------------------------------------------------------
30// wxZipFSHandler
31//--------------------------------------------------------------------------------
32
d674cf6d 33class 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();
04dbb646 42
aaa66113
VS
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;
de0702d0 48 wxHashTableLong *m_DirsFound;
04dbb646 49
aaa66113 50 wxString DoFind();
5526e819
VS
51};
52
53
8a4df159 54#endif
24528b0c 55 // wxUSE_FILESYSTEM && wxUSE_FS_ZIP && wxUSE_STREAMS
5526e819 56
4e8e18e2
VZ
57#endif // _WX_FS_ZIP_H_
58