/**
@class wxFileSystem
- @wxheader{filesys.h}
This class provides an interface for opening files on different file systems.
It can handle absolute and/or local filenames.
/**
Returns the actual path (set by wxFileSystem::ChangePathTo).
*/
- wxString GetPath();
+ wxString GetPath() const;
/**
This static function returns @true if there is a registered handler which can
/**
@class wxFSFile
- @wxheader{filesys.h}
This class represents a single file opened by wxFileSystem.
It provides more information than wxWindow's input stream
not be empty in this case).
@param anchor
Anchor. See GetAnchor() for details.
+ @param modif
+ Modification date and time for this file.
*/
- wxFSFile(wxInputStream stream, const wxString& loc,
- const wxString& mimetype,
- const wxString& anchor, wxDateTime modif);
+ wxFSFile(wxInputStream* stream, const wxString& location,
+ const wxString& mimetype, const wxString& anchor,
+ wxDateTime modif);
/**
Detaches the stream from the wxFSFile object. That is, the
/**
@class wxFileSystemHandler
- @wxheader{filesys.h}
Classes derived from wxFileSystemHandler are used to access virtual file systems.
Must be overridden in derived handlers.
*/
- virtual bool CanOpen(const wxString& location);
+ virtual bool CanOpen(const wxString& location) = 0;
/**
Works like ::wxFindFirstFile().
@note the anchor is NOT part of the left location.
*/
- wxString GetAnchor(const wxString& location) const;
+ static wxString GetAnchor(const wxString& location);
/**
Returns the left location string extracted from @e location.
GetLeftLocation("file:myzipfile.zip#zip:index.htm") == "file:myzipfile.zip"
@endcode
*/
- wxString GetLeftLocation(const wxString& location) const;
+ static wxString GetLeftLocation(const wxString& location);
/**
Returns the MIME type based on @b extension of @a location.
GetMimeTypeFromExt("index.htm") == "text/html"
@endcode
*/
- wxString GetMimeTypeFromExt(const wxString& location);
+ static wxString GetMimeTypeFromExt(const wxString& location);
/**
Returns the protocol string extracted from @a location.
GetProtocol("file:myzipfile.zip#zip:index.htm") == "zip"
@endcode
*/
- wxString GetProtocol(const wxString& location) const;
+ static wxString GetProtocol(const wxString& location);
/**
Returns the right location string extracted from @a location.
GetRightLocation("file:myzipfile.zip#zip:index.htm") == "index.htm"
@endcode
*/
- wxString GetRightLocation(const wxString& location) const;
+ static wxString GetRightLocation(const wxString& location);
/**
Opens the file and returns wxFSFile pointer or @NULL if failed.