]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/mimetype.cpp
corrected path splitting for mac relative paths
[wxWidgets.git] / src / os2 / mimetype.cpp
index 28ba45db1fb581d316b7a0b4b224a26050ee1506..cd51d499dc41e9a07ede4596e5b941ddbdf8306f 100644 (file)
@@ -27,6 +27,8 @@
 #include "wx/dynarray.h"
 #include "wx/confbase.h"
 
+#if wxUSE_FILE
+
 #include "wx/os2/mimetype.h"
 
 // other standard headers
@@ -229,6 +231,20 @@ bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const
   return FALSE;
 }
 
+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) const
 {
 #if wxUSE_GUI
@@ -436,3 +452,4 @@ size_t wxMimeTypesManagerImpl::EnumAllFileTypes(wxArrayString& mimetypes)
   return 0;
 }
 
+#endif //wxUSE_FILE