+
+ // return the number of commands defined for this file type, 0 if none
+ size_t GetAllCommands(wxArrayString *verbs, wxArrayString *commands,
+ const wxFileType::MessageParameters& params) const;
+
+ // the methods which modify the system database are only implemented under
+ // Win32 so far (on other platforms they will just return FALSE)
+ //
+ // also, they should only be used with the objects created using
+ // wxMimeTypesManager::Associate()
+
+ // set the command to be used for opening the file
+ bool SetOpenCommand(const wxString& cmd, bool overwriteprompt = TRUE);
+
+ // set an arbitrary command, ask confirmation if it already exists and
+ // overwriteprompt is TRUE
+ bool SetCommand(const wxString& cmd, const wxString& verb,
+ bool overwriteprompt = TRUE);
+
+ // set the MIME type for this filetype
+ bool SetMimeType(const wxString& mimeType);
+ // set the default icon for this filetype
+ bool SetDefaultIcon(const wxString& cmd = wxEmptyString, int index = 0);
+
+ // remove the association from the system database
+ bool Unassociate();
+
+ // delete registration info
+ bool RemoveOpenCommand();
+ bool RemoveCommand(const wxString& verb);
+ bool RemoveMimeType();
+ bool RemoveDefaultIcon();
+