X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..cee8636e94d49319b1c108d8b2d826e080e2e366:/include/wx/msdos/mimetype.h diff --git a/include/wx/msdos/mimetype.h b/include/wx/msdos/mimetype.h index fd8123844f..39a6ac6041 100644 --- a/include/wx/msdos/mimetype.h +++ b/include/wx/msdos/mimetype.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: wx/mac/mimetype.h +// Name: wx/msdos/mimetype.h // Purpose: classes and functions to manage MIME types // Author: Vadim Zeitlin // Modified by: @@ -20,7 +20,7 @@ class wxMimeTypesManagerImpl { public : wxMimeTypesManagerImpl() { } - + // load all data into memory - done when it is needed for the first time void Initialize(int mailcapStyles = wxMAILCAP_STANDARD, const wxString& extraDir = wxEmptyString); @@ -35,10 +35,6 @@ public : size_t EnumAllFileTypes(wxArrayString& mimetypes); - // this are NOPs under MacOS - bool ReadMailcap(const wxString& WXUNUSED(filename), bool WXUNUSED(fallback) = TRUE) { return TRUE; } - bool ReadMimeTypes(const wxString& WXUNUSED(filename)) { return TRUE; } - void AddFallback(const wxFileTypeInfo& ft) { m_fallbacks.Add(ft); } // create a new filetype association @@ -62,7 +58,7 @@ public: // index 1 the type / * match // if built with GetFileTypeFromExtension, index 0 has the mimetype for // the first extension found, index 1 for the second and so on - + void Init(wxMimeTypesManagerImpl *manager, size_t index) { m_manager = manager; m_index.Add(index); } @@ -103,7 +99,7 @@ public: private: // helper function bool GetCommand(wxString *command, const char *verb) const; - + wxMimeTypesManagerImpl *m_manager; wxArrayInt m_index; // in the wxMimeTypesManagerImpl arrays wxString m_strFileType, m_ext;