]> git.saurik.com Git - wxWidgets.git/blob - include/wx/webviewfshandler.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / webviewfshandler.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: webviewfshandler.h
3 // Purpose: Custom webview handler for virtual file system
4 // Author: Nick Matthews
5 // Copyright: (c) 2012 Steven Lamerton
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 // Based on webviewarchivehandler.h file by Steven Lamerton
10
11 #ifndef _WX_WEBVIEW_FS_HANDLER_H_
12 #define _WX_WEBVIEW_FS_HANDLER_H_
13
14 #include "wx/setup.h"
15
16 #if wxUSE_WEBVIEW
17
18 class wxFSFile;
19 class wxFileSystem;
20
21 #include "wx/webview.h"
22
23 //Loads from uris such as scheme:example.html
24
25 class WXDLLIMPEXP_WEBVIEW wxWebViewFSHandler : public wxWebViewHandler
26 {
27 public:
28 wxWebViewFSHandler(const wxString& scheme);
29 virtual ~wxWebViewFSHandler();
30 virtual wxFSFile* GetFile(const wxString &uri);
31 private:
32 wxFileSystem* m_fileSystem;
33 };
34
35 #endif // wxUSE_WEBVIEW
36
37 #endif // _WX_WEBVIEW_FS_HANDLER_H_