]>
Commit | Line | Data |
---|---|---|
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 | |
371a5b4e | 9 | // Licence: wxWindows licence |
f4ada568 | 10 | ///////////////////////////////////////////////////////////////////////////// |
a5d46b73 | 11 | |
f4ada568 GL |
12 | #ifndef __WX_PROTO_FILE_H__ |
13 | #define __WX_PROTO_FILE_H__ | |
14 | ||
12028905 | 15 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) |
f4ada568 GL |
16 | #pragma interface "sckfile.h" |
17 | #endif | |
18 | ||
a5d46b73 VZ |
19 | #include "wx/defs.h" |
20 | ||
21 | #if wxUSE_PROTOCOL_FILE | |
22 | ||
f4ada568 GL |
23 | #include "wx/protocol/protocol.h" |
24 | #include "wx/url.h" | |
25 | ||
7c4728f6 | 26 | class WXDLLIMPEXP_NET wxFileProto: public wxProtocol { |
fc7a2a60 | 27 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxFileProto) |
f4ada568 GL |
28 | DECLARE_PROTOCOL(wxFileProto) |
29 | protected: | |
30 | wxProtocolError m_error; | |
31 | public: | |
32 | wxFileProto(); | |
33 | ~wxFileProto(); | |
34 | ||
35 | wxProtocolError GetError() { return m_error; } | |
36 | bool Abort() { return TRUE; } | |
37 | wxInputStream *GetInputStream(const wxString& path); | |
38 | }; | |
39 | ||
a5d46b73 VZ |
40 | #endif // wxUSE_PROTOCOL_FILE |
41 | ||
42 | #endif // __WX_PROTO_FILE_H__ |