]> git.saurik.com Git - wxWidgets.git/blob - include/wx/protocol/file.h
fixed wxCheckListBox behaviour in presense of wxLB_SORT style (bug 529786)
[wxWidgets.git] / include / wx / protocol / file.h
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
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef __WX_PROTO_FILE_H__
13 #define __WX_PROTO_FILE_H__
14
15 #ifdef __GNUG__
16 #pragma interface "sckfile.h"
17 #endif
18
19 #include "wx/defs.h"
20
21 #if wxUSE_PROTOCOL_FILE
22
23 #include "wx/protocol/protocol.h"
24 #include "wx/url.h"
25
26 class WXDLLEXPORT wxFileProto: public wxProtocol {
27 DECLARE_DYNAMIC_CLASS(wxFileProto)
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
40 #endif // wxUSE_PROTOCOL_FILE
41
42 #endif // __WX_PROTO_FILE_H__