home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / include / wx / protocol / file.h next >
C/C++ Source or Header  |  2002-08-31  |  1KB  |  43 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name:        file.h
  3. // Purpose:     File protocol
  4. // Author:      Guilhem Lavaux
  5. // Modified by:
  6. // Created:     1997
  7. // RCS-ID:      $Id: file.h,v 1.3 2002/08/31 11:29:13 GD Exp $
  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. #if defined(__GNUG__) && !defined(__APPLE__)
  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__
  43.