* Removed superfluous Delete*() methods.

* Invocations like SetShortDescription("") will now remove the description as
  well, not only SetShortDescription(NULL).
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16697 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-03-11 10:57:47 +00:00
parent 31139022cd
commit e389ac9d78
2 changed files with 79 additions and 155 deletions
-12
View File
@@ -158,18 +158,6 @@ class BMimeType {
/* Deprecated. Use SetTo() instead. */
status_t SetType(const char *mimeType);
/* Brand new Delete() methods */
status_t DeleteAppHint();
status_t DeleteAttrInfo();
status_t DeleteShortDescription();
status_t DeleteLongDescription();
status_t DeleteFileExtensions();
status_t DeleteIcon(icon_size size);
status_t DeleteIconForType(const char *type, icon_size which);
status_t DeletePreferredApp(app_verb verb = B_OPEN);
status_t DeleteSnifferRule();
status_t DeleteSupportedTypes(bool fullSync = true);
private:
BMimeType(const char *mimeType, const char *mimePath);
// if mimePath is NULL, defaults to "/boot/home/config/settings/beos_mime/"