BAppFileInfo: Add method versions that don't touch the MIME DB
Add SetSupportedTypes() and SetIcon[ForType]() versions with an additional bool updateMimeDB parameter. If false, the method doesn't update the MIME DB entries for the type.
This commit is contained in:
@@ -68,6 +68,8 @@ public:
|
||||
status_t RemoveAppFlags();
|
||||
|
||||
status_t GetSupportedTypes(BMessage* types) const;
|
||||
status_t SetSupportedTypes(const BMessage* types,
|
||||
bool updateMimeDB, bool syncAll);
|
||||
status_t SetSupportedTypes(const BMessage* types,
|
||||
bool syncAll);
|
||||
status_t SetSupportedTypes(const BMessage* types);
|
||||
@@ -75,9 +77,13 @@ public:
|
||||
bool Supports(BMimeType* type) const;
|
||||
|
||||
virtual status_t GetIcon(BBitmap* icon, icon_size which) const;
|
||||
status_t SetIcon(const BBitmap* icon, icon_size which,
|
||||
bool updateMimeDB);
|
||||
virtual status_t SetIcon(const BBitmap* icon, icon_size which);
|
||||
|
||||
status_t GetIcon(uint8** data, size_t* size) const;
|
||||
status_t SetIcon(const uint8* data, size_t size,
|
||||
bool updateMimeDB);
|
||||
status_t SetIcon(const uint8* data, size_t size);
|
||||
|
||||
status_t GetVersionInfo(version_info* info,
|
||||
@@ -89,8 +95,14 @@ public:
|
||||
icon_size which) const;
|
||||
status_t GetIconForType(const char* type, uint8** data,
|
||||
size_t* size) const;
|
||||
status_t SetIconForType(const char* type,
|
||||
const BBitmap* icon, icon_size which,
|
||||
bool updateMimeDB);
|
||||
status_t SetIconForType(const char* type,
|
||||
const BBitmap* icon, icon_size which);
|
||||
status_t SetIconForType(const char* type,
|
||||
const uint8* data, size_t size,
|
||||
bool updateMimeDB);
|
||||
status_t SetIconForType(const char* type,
|
||||
const uint8* data, size_t size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user