]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/protocol/file.h | |
3 | // Purpose: File protocol | |
4 | // Author: Guilhem Lavaux | |
5 | // Modified by: | |
6 | // Created: 1997 | |
7 | // Copyright: (c) 1997, 1998 Guilhem Lavaux | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef __WX_PROTO_FILE_H__ | |
12 | #define __WX_PROTO_FILE_H__ | |
13 | ||
14 | #include "wx/defs.h" | |
15 | ||
16 | #if wxUSE_PROTOCOL_FILE | |
17 | ||
18 | #include "wx/protocol/protocol.h" | |
19 | ||
20 | class WXDLLIMPEXP_NET wxFileProto: public wxProtocol | |
21 | { | |
22 | public: | |
23 | wxFileProto(); | |
24 | virtual ~wxFileProto(); | |
25 | ||
26 | bool Abort() { return true; } | |
27 | wxString GetContentType() const { return wxEmptyString; } | |
28 | ||
29 | wxInputStream *GetInputStream(const wxString& path); | |
30 | ||
31 | protected: | |
32 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxFileProto) | |
33 | DECLARE_PROTOCOL(wxFileProto) | |
34 | }; | |
35 | ||
36 | #endif // wxUSE_PROTOCOL_FILE | |
37 | ||
38 | #endif // __WX_PROTO_FILE_H__ |