]> git.saurik.com Git - wxWidgets.git/blame - include/wx/webviewfilehandler.h
Overhaul wxWebHandler naming to try and make it consistent with the rest of wxWidgets...
[wxWidgets.git] / include / wx / webviewfilehandler.h
CommitLineData
9e3d4a32
SL
1/////////////////////////////////////////////////////////////////////////////
2// Name: webviewfilehandler.h
3// Purpose: Custom handler for the file scheme to allow archive browsing
4// Author: Steven Lamerton
5// Id: $Id$
6// Copyright: (c) 2011 Steven Lamerton
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_WEB_VIEW_FILE_HANDLER_H_
11#define _WX_WEB_VIEW_FILE_HANDLER_H_
12
13#include "wx/setup.h"
14
15#if wxUSE_WEB
16
17class wxFSFile;
18class wxFileSystem;
19
20#include "wx/webview.h"
21
22//Loads from uris such as file:///C:/example/example.html or archives such as
23//file:///C:/example/example.zip?protocol=zip;path=example.html
24
25class WXDLLIMPEXP_WEB wxWebFileHandler : public wxWebHandler
26{
27public:
28 wxWebFileHandler();
29 virtual wxString GetName() const { return m_name; }
30 virtual wxFSFile* GetFile(const wxString &uri);
31 virtual wxString CombineURIs(const wxString &baseuri, const wxString &newuri);
32private:
33 wxString m_name;
34 wxFileSystem* m_fileSystem;
35};
36
37#endif
38
39#endif // _WX_WEB_VIEW_FILE_HANDLER_H_