file.h 932 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef __WX_PROTO_FILE_H__
  11. #define __WX_PROTO_FILE_H__
  12. #include "wx/defs.h"
  13. #if wxUSE_PROTOCOL_FILE
  14. #include "wx/protocol/protocol.h"
  15. class WXDLLIMPEXP_NET wxFileProto: public wxProtocol
  16. {
  17. public:
  18. wxFileProto();
  19. virtual ~wxFileProto();
  20. bool Abort() { return true; }
  21. wxString GetContentType() const { return wxEmptyString; }
  22. wxInputStream *GetInputStream(const wxString& path);
  23. protected:
  24. DECLARE_DYNAMIC_CLASS_NO_COPY(wxFileProto)
  25. DECLARE_PROTOCOL(wxFileProto)
  26. };
  27. #endif // wxUSE_PROTOCOL_FILE
  28. #endif // __WX_PROTO_FILE_H__