]> git.saurik.com Git - wxWidgets.git/blob - include/wx/fs_filter.h
bd8924cc436dc2cb4af272c9c4b8168a1bebced6
[wxWidgets.git] / include / wx / fs_filter.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/fs_filter.h
3 // Purpose: Filter file system handler
4 // Author: Mike Wetherell
5 // Copyright: (c) 2006 Mike Wetherell
6 // CVS-ID: $Id$
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_FS_FILTER_H_
11 #define _WX_FS_FILTER_H_
12
13 #include "wx/defs.h"
14
15 #if wxUSE_FILESYSTEM
16
17 #include "wx/filesys.h"
18
19 //---------------------------------------------------------------------------
20 // wxFilterFSHandler
21 //---------------------------------------------------------------------------
22
23 class WXDLLIMPEXP_BASE wxFilterFSHandler : public wxFileSystemHandler
24 {
25 public:
26 wxFilterFSHandler() : wxFileSystemHandler() { }
27 virtual ~wxFilterFSHandler() { }
28
29 virtual bool CanOpen(const wxString& location);
30 virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
31
32 virtual wxString FindFirst(const wxString& spec, int flags = 0);
33 virtual wxString FindNext();
34
35 private:
36 DECLARE_NO_COPY_CLASS(wxFilterFSHandler)
37 };
38
39 #endif // wxUSE_FILESYSTEM
40
41 #endif // _WX_FS_FILTER_H_