X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c4728f63395c3641aa62f2b549ee693eb8be978..7e08bc5acd8ee4e2f0756f50bf98937a118f9951:/include/wx/protocol/file.h diff --git a/include/wx/protocol/file.h b/include/wx/protocol/file.h index f277beb912..b0e7e003a8 100644 --- a/include/wx/protocol/file.h +++ b/include/wx/protocol/file.h @@ -12,29 +12,26 @@ #ifndef __WX_PROTO_FILE_H__ #define __WX_PROTO_FILE_H__ -#if defined(__GNUG__) && !defined(__APPLE__) -#pragma interface "sckfile.h" -#endif - #include "wx/defs.h" #if wxUSE_PROTOCOL_FILE #include "wx/protocol/protocol.h" -#include "wx/url.h" -class WXDLLIMPEXP_NET wxFileProto: public wxProtocol { - DECLARE_DYNAMIC_CLASS_NO_COPY(wxFileProto) - DECLARE_PROTOCOL(wxFileProto) -protected: - wxProtocolError m_error; +class WXDLLIMPEXP_NET wxFileProto: public wxProtocol +{ public: - wxFileProto(); - ~wxFileProto(); + wxFileProto(); + virtual ~wxFileProto(); + + bool Abort() { return true; } + wxString GetContentType() const { return wxEmptyString; } - wxProtocolError GetError() { return m_error; } - bool Abort() { return TRUE; } - wxInputStream *GetInputStream(const wxString& path); + wxInputStream *GetInputStream(const wxString& path); + +protected: + DECLARE_DYNAMIC_CLASS_NO_COPY(wxFileProto) + DECLARE_PROTOCOL(wxFileProto) }; #endif // wxUSE_PROTOCOL_FILE