// Created: 01.21.00
// RCS-ID: $Id$
// Copyright: Adopted from msw port --(c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence: wxWindows license (part of wxExtra library)
+// Licence: wxWindows licence (part of wxExtra library)
/////////////////////////////////////////////////////////////////////////////
#define INCL_DOS
#include "wx/dynarray.h"
#include "wx/confbase.h"
+#if wxUSE_FILE
+
#include "wx/os2/mimetype.h"
// other standard headers
return FALSE;
}
-bool wxFileTypeImpl::GetIcon(wxIcon *icon) const
+bool wxFileTypeImpl::GetMimeTypes(wxArrayString& mimeTypes) const
+{
+ wxString s;
+
+ if (GetMimeType(&s))
+ {
+ mimeTypes.Clear();
+ mimeTypes.Add(s);
+ return TRUE;
+ }
+ else
+ return FALSE;
+}
+
+bool wxFileTypeImpl::GetIcon(wxIcon *icon, wxString* psCommand, int* pnIndex) const
{
#if wxUSE_GUI
if ( m_info ) {
return 0;
}
+#endif //wxUSE_FILE