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
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.
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.