X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f22e0c3c3f90510f1a92ab148f20b2453e338626..67b81440f079f88e6202a199fd5763af73bbac0f:/include/wx/filesys.h?ds=sidebyside diff --git a/include/wx/filesys.h b/include/wx/filesys.h index fa3d23d5db..30916ee6ef 100644 --- a/include/wx/filesys.h +++ b/include/wx/filesys.h @@ -19,9 +19,8 @@ #if (wxUSE_HTML || wxUSE_FS_INET || wxUSE_FS_ZIP) && wxUSE_STREAMS #include "wx/stream.h" -#include "wx/mimetype.h" #include "wx/url.h" - +#include "wx/datetime.h" class wxFSFile; class wxFileSystemHandler; @@ -41,14 +40,18 @@ class WXDLLEXPORT wxFSFile : public wxObject wxString m_Location; wxString m_MimeType; wxString m_Anchor; + wxDateTime m_Modif; public: - wxFSFile(wxInputStream *stream, const wxString& loc, const wxString& mimetype, const wxString& anchor) + wxFSFile(wxInputStream *stream, const wxString& loc, + const wxString& mimetype, const wxString& anchor, + wxDateTime modif) { m_Stream = stream; m_Location = loc; m_MimeType = mimetype; m_MimeType.MakeLower(); m_Anchor = anchor; + m_Modif = modif; } virtual ~wxFSFile() { @@ -66,6 +69,8 @@ class WXDLLEXPORT wxFSFile : public wxObject // returns the original location (aka filename) of the file const wxString& GetAnchor() const {return m_Anchor;} + + wxDateTime GetModificationTime() const {return m_Modif;} }; @@ -122,17 +127,6 @@ class WXDLLEXPORT wxFileSystemHandler : public wxObject wxString GetMimeTypeFromExt(const wxString& location); // Returns MIME type of the file - w/o need to open it // (default behaviour is that it returns type based on extension) - - public: - static void CleanUpStatics(); - // deletes static members (m_MimeMng). It can be called - // as many times as you wish because m_MimeMng is created - // on demand - - private: - static wxMimeTypesManager *m_MimeMng; - // MIME manager - // (it's static and thus shared by all instances and derived classes) };