X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba1d7a6cec8d9569ce2e380d4a39ddcd4450c9b5..4311588bfe40e15dc83154b9653ebc432b42baeb:/interface/wx/mimetype.h diff --git a/interface/wx/mimetype.h b/interface/wx/mimetype.h index ae5abb790e..dc2244c1d5 100644 --- a/interface/wx/mimetype.h +++ b/interface/wx/mimetype.h @@ -68,7 +68,7 @@ @library{wxbase} - @category{misc} + @category{cfg} @see wxFileType */ @@ -228,19 +228,25 @@ wxMimeTypesManager* wxTheMimeTypesManager; @library{wxbase} - @category{misc} + @category{data} @see wxMimeTypesManager */ class wxFileType { -public: +private: /** The default constructor is private because you should never create objects of this type: they are only returned by wxMimeTypesManager methods. */ wxFileType(); +public: + /** + Copy ctor. + */ + wxFileType(const wxFileTypeInfo& ftInfo); + /** The destructor of this class is not virtual, so it should not be derived from. */ @@ -265,7 +271,7 @@ public: function. */ static wxString ExpandCommand(const wxString& command, - MessageParameters& params); + const MessageParameters& params); /** If the function returns @true, the string pointed to by @a desc is filled @@ -318,7 +324,7 @@ public: This happens when one file extension is mapped to different MIME types by KDE, mailcap and mime.types. */ - bool GetMimeType(wxArrayString& mimeTypes); + bool GetMimeTypes(wxArrayString& mimeTypes) const; //@{ /** @@ -334,8 +340,8 @@ public: indicate that an error occurred (typically meaning that there is no standard way to open this kind of files). */ - bool GetOpenCommand(wxString* command, MessageParameters& params); - wxString GetOpenCommand(const wxString& filename); + bool GetOpenCommand(wxString* command, const MessageParameters& params); + wxString GetOpenCommand(const wxString& filename) const; //@} /** @@ -345,6 +351,7 @@ public: The name of the file is retrieved from the MessageParameters class. */ - bool GetPrintCommand(wxString* command, MessageParameters& params); + bool GetPrintCommand(wxString* command, + const MessageParameters& params) const; };