X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b0786bfbb9c8149368c8f1a79ae861dd1472d97..ab67e8874db324fab5223cc8d5dff8a8de3e2b77:/include/wx/msdos/mimetype.h diff --git a/include/wx/msdos/mimetype.h b/include/wx/msdos/mimetype.h index cd2d763f6e..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: @@ -12,10 +12,6 @@ #ifndef _MIMETYPE_IMPL_H #define _MIMETYPE_IMPL_H -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "mimetype.h" -#endif - #include "wx/defs.h" #include "wx/mimetype.h" @@ -24,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); @@ -39,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 @@ -66,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); } @@ -107,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;