]> git.saurik.com Git - wxWidgets.git/blame - include/wx/protocol/file.h
Provide NSAutoreleasePool instances during initialization
[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
371a5b4e 9// Licence: wxWindows licence
f4ada568 10/////////////////////////////////////////////////////////////////////////////
a5d46b73 11
f4ada568
GL
12#ifndef __WX_PROTO_FILE_H__
13#define __WX_PROTO_FILE_H__
14
af49c4b8 15#if defined(__GNUG__) && !defined(__APPLE__)
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
26class WXDLLEXPORT wxFileProto: public wxProtocol {
27 DECLARE_DYNAMIC_CLASS(wxFileProto)
28 DECLARE_PROTOCOL(wxFileProto)
29protected:
30 wxProtocolError m_error;
31public:
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__