SetIconForType
status_t SetIconForType(const char* type,
status_t SetIconForType(const char* type,
status_t SetIconForType(const char* type,
status_t SetIconForType(const char* type,
status_t SetIconForType(const char* type, const BBitmap* icon,
status_t SetIconForType(const char* type, const uint8* data,
status_t SetIconForType(const char* type, const char* fileType,
status_t SetIconForType(const char *type, const char *fileType,
status_t SetIconForType(const char *type, const char *fileType,
return SetIconForType(NULL, icon, which, updateMimeDB);
return SetIconForType(NULL, icon, which, true);
return SetIconForType(NULL, data, size, updateMimeDB);
return SetIconForType(NULL, data, size, true);
error = mimeType.SetIconForType(type, icon, which);
return SetIconForType(type, icon, which, true);
error = mimeType.SetIconForType(type, data, size);
return SetIconForType(type, data, size, true);
return SetIconForType(NULL, icon, which, updateMimeDB);
return SetIconForType(NULL, icon, which, true);
return SetIconForType(NULL, data, size, updateMimeDB);
return SetIconForType(NULL, data, size, true);
error = mimeType.SetIconForType(type, icon, which);
return SetIconForType(type, icon, which, true);
error = mimeType.SetIconForType(type, data, size);
return SetIconForType(type, data, size, true);
return SetIconForType(NULL, icon, which);
return SetIconForType(NULL, data, size);
status = fDatabase->SetIconForType(signature, type, data, size);
status = fDatabase->SetIconForType(signature, type, &miniIcon,
status = fDatabase->SetIconForType(signature, type, &largeIcon,
return SetIconForType(type, NULL, data, dataSize, which);
return SetIconForType(type, NULL, data, dataSize);
return SetIconForType(type, fileType, icon->Bits(),
return SetIconForType(type, fileType, NULL, 0, which);
err = appFileInfoWrite.SetIconForType(type, &icon, iconSize, false);
err = appFileInfoWrite.SetIconForType(type, NULL, iconSize, false);
err = appFileInfoWrite.SetIconForType(type, data, size, false);
err = appFileInfoWrite.SetIconForType(type, NULL, size, false);
info.SetIconForType(fType.Type(), large, B_LARGE_ICON);
info.SetIconForType(fType.Type(), mini, B_MINI_ICON);
info.SetIconForType(fType.Type(), data, size);
status = info.SetIconForType(type, fLarge, B_LARGE_ICON);
status = info.SetIconForType(type, fMini, B_MINI_ICON);
status = info.SetIconForType(type, fData, fSize);
? fDatabase.SetIconForType(type, fileType, data,
: fDatabase.SetIconForType(type, fileType, data,
CHK(appFileInfo.SetIconForType(testType1, fIconM1, B_MINI_ICON)
CHK(appFileInfo.SetIconForType(testType1, fIconM2, B_MINI_ICON)
CHK(appFileInfo.SetIconForType(testType1, fIconL1, B_LARGE_ICON)
CHK(appFileInfo.SetIconForType(testType1, fIconL2, B_LARGE_ICON)
CHK(appFileInfo.SetIconForType(testType1, NULL, B_MINI_ICON) == B_OK);
CHK(appFileInfo.SetIconForType(testType1, NULL, B_LARGE_ICON) == B_OK);
CHK(appFileInfo.SetIconForType(testType1, &icon, B_MINI_ICON)
CHK(appFileInfo.SetIconForType(testType1, &icon2, B_LARGE_ICON)
CHK(appFileInfo.SetIconForType(testType1, &icon, B_MINI_ICON)
CHK(appFileInfo.SetIconForType(testType1, &icon2, B_LARGE_ICON)
CHK(appFileInfo.SetIconForType(NULL, fIconM1, B_MINI_ICON) == B_OK);
CHK(appFileInfo.SetIconForType(NULL, fIconL1, B_LARGE_ICON) == B_OK);
CHK(appFileInfo.SetIconForType(testType1, fIconM1, B_MINI_ICON)
CHK(appFileInfo.SetIconForType(testType1, fIconL1, B_LARGE_ICON)
CHK(appFileInfo.SetIconForType(testType2, fIconM2, B_MINI_ICON)
CHK(appFileInfo.SetIconForType(testType2, fIconL2, B_LARGE_ICON)
CHK(appFileInfo.SetIconForType(testType1, NULL, B_MINI_ICON) == B_OK);
CHK(appFileInfo.SetIconForType(testType1, NULL, B_LARGE_ICON) == B_OK);
CHK(appFileInfo.SetIconForType(testType2, NULL, B_MINI_ICON) == B_OK);
CHK(appFileInfo.SetIconForType(testType2, NULL, B_LARGE_ICON) == B_OK);
CHK(appFileInfo.SetIconForType(invalidTestType, fIconM1, B_MINI_ICON)
CHK(appFileInfo.SetIconForType(invalidTestType, fIconL1, B_LARGE_ICON)
CHK(appFileInfo.SetIconForType(tooLongTestType, fIconM1, B_MINI_ICON)
CHK(appFileInfo.SetIconForType(tooLongTestType, fIconL1, B_LARGE_ICON)
CHK(appFileInfo.SetIconForType(testType1, fIconM1, B_MINI_ICON)
CHK(appFileInfo.SetIconForType(testType1, fIconL1, B_LARGE_ICON)
CHK(appFileInfo.SetIconForType(testType1, fIconM2, B_MINI_ICON)
CHK(appFileInfo.SetIconForType(testType1, fIconL2, B_LARGE_ICON)
status_t error = info.SetIconForType(value.type.c_str(), &value.mini,
error = info.SetIconForType(value.type.c_str(), &value.large,
CHK(mime.SetIconForType(testTypeInvalid, helper.Bitmap1(), helper.Size()) != B_OK); // R5 == B_BAD_VALUE
CHK(mime.SetIconForType(NULL, helper.Bitmap1(), helper.Size()) == B_OK);
CHK(mime.SetIconForType(NULL, NULL, helper.Size()) == B_OK);
CHK(type.SetIconForType("text/plain", iconHelperLarge.Bitmap1(),
CHK(type.SetIconForType("text/plain", iconHelperMini.Bitmap1(),
CHK(type.SetIconForType("text/plain", iconHelperLarge.Bitmap1(),
CHK(type.SetIconForType("text/plain", iconHelperMini.Bitmap1(),
CHK(type.SetIconForType("text/plain", iconHelperLarge.Bitmap2(),
CHK(type.SetIconForType("text/plain", NULL,
CHK(type.SetIconForType("text/plain", iconHelperMini.Bitmap2(),
CHK(type.SetIconForType("text/plain", iconHelperLarge.Bitmap1(),
CHK(type.SetIconForType("text/plain", iconHelperMini.Bitmap1(),
return mime.SetIconForType(fileType.c_str(), icon, size);
CHK(appType2.SetIconForType(testType1, NULL, B_MINI_ICON) == B_OK);
CHK(appType2.SetIconForType(testType1, NULL, B_LARGE_ICON) == B_OK);
CHK(appType.SetIconForType(testType1, fIconM2, B_MINI_ICON) == B_OK);
CHK(appType.SetIconForType(testType1, fIconL2, B_LARGE_ICON) == B_OK);
CHK(appType2.SetIconForType(testType1, fIconM4, B_MINI_ICON) == B_OK);
CHK(appType2.SetIconForType(testType1, fIconL4, B_LARGE_ICON) == B_OK);
CHK(appType.SetIconForType(testType1, NULL, B_MINI_ICON) == B_OK);
CHK(appType.SetIconForType(testType1, NULL, B_LARGE_ICON) == B_OK);