xCHM  1.23
chmfshandler.h
1 /*
2 
3  Copyright (C) 2003 - 2013 Razvan Cojocaru <rzvncj@gmail.com>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18  MA 02110-1301, USA.
19 
20 */
21 
22 
23 #ifndef __CHMFSHANDLER_H_
24 #define __CHMFSHANDLER_H_
25 
26 
27 #include <wx/filesys.h>
28 
29 
36 class CHMFSHandler : public wxFileSystemHandler
38 {
39 public:
44  CHMFSHandler();
45 
47  ~CHMFSHandler();
48 
56  virtual bool CanOpen(const wxString& location);
57 
64  virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
65 
66 private:
68  CHMFSHandler(const CHMFSHandler&);
69 
72 };
73 
74 
75 #endif // __CHMFSHANDLER_H_
76 
77 
78 /*
79  Local Variables:
80  mode: c++
81  c-basic-offset: 8
82  tab-width: 8
83  c-indent-comments-syntactically-p: t
84  c-tab-always-indent: t
85  indent-tabs-mode: t
86  End:
87 */
88 
89 // vim:shiftwidth=8:autoindent:tabstop=8:noexpandtab:softtabstop=8
90 
virtual wxFSFile * OpenFile(wxFileSystem &fs, const wxString &location)
Tries to open the file specified.
Definition: chmfshandler.cpp:49
CHMFSHandler & operator=(const CHMFSHandler &)
No assignment.
CHMFSHandler()
Doesn&#39;t do anything but needs to be here because of the private copy constructor. ...
Definition: chmfshandler.cpp:29
CHM filesystem handler class.
Definition: chmfshandler.h:37
virtual bool CanOpen(const wxString &location)
Checks if it can open the file passed in location.
Definition: chmfshandler.cpp:40
wxWidgets virtual filesystem handler class.
~CHMFSHandler()
Cleanup code. This calls CHMInputStream&#39;s Cleanup().
Definition: chmfshandler.cpp:34