]> git.saurik.com Git - wxWidgets.git/blame - include/wx/protocol/file.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / protocol / file.h
CommitLineData
f4ada568 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/protocol/file.h
f4ada568
GL
3// Purpose: File protocol
4// Author: Guilhem Lavaux
5// Modified by:
6// Created: 1997
f4ada568 7// Copyright: (c) 1997, 1998 Guilhem Lavaux
65571936 8// Licence: wxWindows licence
f4ada568 9/////////////////////////////////////////////////////////////////////////////
a5d46b73 10
f4ada568
GL
11#ifndef __WX_PROTO_FILE_H__
12#define __WX_PROTO_FILE_H__
13
a5d46b73
VZ
14#include "wx/defs.h"
15
16#if wxUSE_PROTOCOL_FILE
17
f4ada568 18#include "wx/protocol/protocol.h"
f4ada568 19
730b772b
FM
20class WXDLLIMPEXP_NET wxFileProto: public wxProtocol
21{
f4ada568 22public:
730b772b
FM
23 wxFileProto();
24 virtual ~wxFileProto();
25
26 bool Abort() { return true; }
27 wxString GetContentType() const { return wxEmptyString; }
f4ada568 28
730b772b
FM
29 wxInputStream *GetInputStream(const wxString& path);
30
31protected:
32 DECLARE_DYNAMIC_CLASS_NO_COPY(wxFileProto)
33 DECLARE_PROTOCOL(wxFileProto)
f4ada568
GL
34};
35
a5d46b73
VZ
36#endif // wxUSE_PROTOCOL_FILE
37
38#endif // __WX_PROTO_FILE_H__