]> git.saurik.com Git - wxWidgets.git/blob - include/wx/webviewfshandler.h
wiring osx native notification during launch
[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 // Id: $Id$
6 // Copyright: (c) 2012 Steven Lamerton
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 // Based on webviewarchivehandler.h file by Steven Lamerton
11
12 #ifndef _WX_WEBVIEW_FS_HANDLER_H_
13 #define _WX_WEBVIEW_FS_HANDLER_H_
14
15 #include "wx/setup.h"
16
17 #if wxUSE_WEBVIEW
18
19 class wxFSFile;
20 class wxFileSystem;
21
22 #include "wx/webview.h"
23
24 //Loads from uris such as scheme:example.html
25
26 class WXDLLIMPEXP_WEBVIEW wxWebViewFSHandler : public wxWebViewHandler
27 {
28 public:
29 wxWebViewFSHandler(const wxString& scheme);
30 virtual ~wxWebViewFSHandler();
31 virtual wxFSFile* GetFile(const wxString &uri);
32 private:
33 wxFileSystem* m_fileSystem;
34 };
35
36 #endif // wxUSE_WEBVIEW
37
38 #endif // _WX_WEBVIEW_FS_HANDLER_H_