/////////////////////////////////////////////////////////////////////////////
-// Name: wx/mac/mimetype.h
+// Name: wx/msdos/mimetype.h
// Purpose: classes and functions to manage MIME types
// Author: Vadim Zeitlin
// Modified by:
#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"
{
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);
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
// 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); }
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;