X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c51a665c649f7579fb39e62070cef4f66b3210d..50d4763f1710f6e45ac6af7112d1ce9effe93bc4:/interface/wx/mimetype.h diff --git a/interface/wx/mimetype.h b/interface/wx/mimetype.h index 0a31361309..d4937b1343 100644 --- a/interface/wx/mimetype.h +++ b/interface/wx/mimetype.h @@ -221,6 +221,35 @@ private: wxFileType(); public: + /** + Class representing message parameters. + + An object of this class may be passed to wxFileType::GetOpenCommand() + and GetPrintCommand() if more than the file name needs to be specified. + */ + class MessageParameters + { + public: + /// Trivial default constructor. + MessageParameters(); + + /// Constructor taking a filename and a mime type. + MessageParameters(const wxString& filename, + const wxString& mimetype = wxEmptyString); + + /// Return the filename. + const wxString& GetFileName() const; + + /// Return the MIME type. + const wxString& GetMimeType() const; + + /// Overridable method for derived classes. Returns empty string by default. + virtual wxString GetParamValue(const wxString& name) const; + + /// Trivial but virtual dtor as this class can be inherited from. + virtual ~MessageParameters(); + }; + /** Copy ctor. */