]> git.saurik.com Git - wxWidgets.git/blame - include/wx/protocol/file.h
adding constants
[wxWidgets.git] / include / wx / protocol / file.h
CommitLineData
f4ada568
GL
1/////////////////////////////////////////////////////////////////////////////
2// Name: file.h
3// Purpose: File protocol
4// Author: Guilhem Lavaux
5// Modified by:
6// Created: 1997
7// RCS-ID: $Id$
8// Copyright: (c) 1997, 1998 Guilhem Lavaux
65571936 9// Licence: wxWindows licence
f4ada568 10/////////////////////////////////////////////////////////////////////////////
a5d46b73 11
f4ada568
GL
12#ifndef __WX_PROTO_FILE_H__
13#define __WX_PROTO_FILE_H__
14
a5d46b73
VZ
15#include "wx/defs.h"
16
17#if wxUSE_PROTOCOL_FILE
18
f4ada568
GL
19#include "wx/protocol/protocol.h"
20#include "wx/url.h"
21
7c4728f6 22class WXDLLIMPEXP_NET wxFileProto: public wxProtocol {
fc7a2a60 23 DECLARE_DYNAMIC_CLASS_NO_COPY(wxFileProto)
f4ada568
GL
24 DECLARE_PROTOCOL(wxFileProto)
25protected:
26 wxProtocolError m_error;
27public:
28 wxFileProto();
29 ~wxFileProto();
30
31 wxProtocolError GetError() { return m_error; }
32 bool Abort() { return TRUE; }
33 wxInputStream *GetInputStream(const wxString& path);
34};
35
a5d46b73
VZ
36#endif // wxUSE_PROTOCOL_FILE
37
38#endif // __WX_PROTO_FILE_H__