- bool IsOfType(const wxString& mimeType, const wxString& wildcard);
-
- /**
- These functions are the heart of this class: they allow to find a @ref
- overview_wxfiletype "file type" object
- from either file extension or MIME type.
- If the function is successful, it returns a pointer to the wxFileType object
- which @b must be deleted by the caller, otherwise @NULL will be returned.
- GetFileTypeFromMimeType()
-
- GetFileTypeFromExtension()
- */
-
-
- /**
- Load additional file containing information about MIME types and associated
- information in mailcap format. See metamail(1) and mailcap(5) for more
- information.
- @a fallback parameter may be used to load additional mailcap files without
- overriding the settings found in the standard files: normally, entries from
- files loaded with ReadMailcap will override the entries from files loaded
- previously (and the standard ones are loaded in the very beginning), but this
- will not happen if this parameter is set to @true (default is @false).
- The return value is @true if there were no errors in the file or @false
- otherwise.
- */
- bool ReadMailcap(const wxString& filename, bool fallback = false);