#include "wx/defs.h"
+#if wxUSE_MIMETYPE
+
// the things we really need
#include "wx/string.h"
#include "wx/dynarray.h"
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)
// 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;
// the default mime manager for wxWindows programs
WXDLLEXPORT_DATA(extern wxMimeTypesManager *) wxTheMimeTypesManager;
+#endif // wxUSE_MIMETYPE
+
#endif
//_WX_MIMETYPE_H_