]> git.saurik.com Git - wxWidgets.git/commitdiff
Added method for mimietype implementation.
authorDavid Webster <Dave.Webster@bhmi.com>
Mon, 24 Jan 2000 22:50:28 +0000 (22:50 +0000)
committerDavid Webster <Dave.Webster@bhmi.com>
Mon, 24 Jan 2000 22:50:28 +0000 (22:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/os2/mimetype.h
src/os2/mimetype.cpp

index 9a22803f4877c77201fa21a223baf4a06b9c3647..e6a444059336d04a4b1e5c45c199d459740e0d9f 100644 (file)
@@ -1,7 +1,7 @@
 /////////////////////////////////////////////////////////////////////////////
 // Name:        wx/mimetype.h
 // Purpose:     classes and functions to manage MIME types
-// Author:      David Webster   
+// Author:      David Webster
 // Modified by:
 // Created:     01.21.99
 // RCS-ID:      $Id$
@@ -39,6 +39,7 @@ public:
     // implement accessor functions
     bool GetExtensions(wxArrayString& extensions);
     bool GetMimeType(wxString *mimeType) const;
+    bool GetMimeTypes(wxArrayString& mimeTypes) const;
     bool GetIcon(wxIcon *icon) const;
     bool GetDescription(wxString *desc) const;
     bool GetOpenCommand(wxString *openCmd,
index 28ba45db1fb581d316b7a0b4b224a26050ee1506..623d4f064469b1cdfd2bfe9b5c7beb740f357692 100644 (file)
@@ -229,6 +229,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