fs_inet.h 1013 B

123456789101112131415161718192021222324252627282930313233
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/fs_inet.h
  3. // Purpose: HTTP and FTP file system
  4. // Author: Vaclav Slavik
  5. // Copyright: (c) 1999 Vaclav Slavik
  6. // Licence: wxWindows licence
  7. /////////////////////////////////////////////////////////////////////////////
  8. #ifndef _WX_FS_INET_H_
  9. #define _WX_FS_INET_H_
  10. #include "wx/defs.h"
  11. #if wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
  12. #include "wx/filesys.h"
  13. // ----------------------------------------------------------------------------
  14. // wxInternetFSHandler
  15. // ----------------------------------------------------------------------------
  16. class WXDLLIMPEXP_NET wxInternetFSHandler : public wxFileSystemHandler
  17. {
  18. public:
  19. virtual bool CanOpen(const wxString& location);
  20. virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
  21. };
  22. #endif
  23. // wxUSE_FILESYSTEM && wxUSE_FS_INET && wxUSE_STREAMS && wxUSE_SOCKETS
  24. #endif // _WX_FS_INET_H_