]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mimetype.h
wxChoice derives from wxChoiceBase; renamed Append to DoAppend
[wxWidgets.git] / include / wx / mimetype.h
index 2b7219d771b81ebd3e7aa142bfdeb88774170891..773d4a76728cd76a33f2424d59861d6feeee5ab9 100644 (file)
@@ -176,7 +176,8 @@ public:
     public:
         // ctors
         MessageParameters() { }
-        MessageParameters(const wxString& filename, const wxString& mimetype)
+        MessageParameters(const wxString& filename,
+                          const wxString& mimetype = _T(""))
             : m_filename(filename), m_mimetype(mimetype) { }
 
         // accessors (called by GetOpenCommand)
@@ -221,6 +222,9 @@ public:
         // get the command to execute the file of given type
     bool GetOpenCommand(wxString *openCmd,
                         const MessageParameters& params) const;
+        // a simpler to use version of GetOpenCommand() -- it only takes the
+        // filename and returns an empty string on failure
+    wxString GetOpenCommand(const wxString& filename) const;
         // get the command to print the file of given type
     bool GetPrintCommand(wxString *printCmd,
                          const MessageParameters& params) const;