@param file
the name of the file to look for
*/
- bool FindFileInPath(wxString str, const wxString& path,
+ bool FindFileInPath(wxString* pStr, const wxString& path,
const wxString& file);
/**
/**
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
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
You will have to delete the stream yourself.
*/
- void DetachStream();
+ wxInputStream* DetachStream();
/**
Returns anchor (if present). The term of @b anchor can be easily
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.
@param location
The absolute location of file.
*/
- virtual wxFSFile* OpenFile(wxFileSystem& fs,
- const wxString& location);
+ virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location) = 0;
};