Lines Matching refs:type

43 icon_for_type(const BMimeType& type, uint8** _data, size_t* _size,
53 if (type.GetIcon(&data, &size) == B_OK)
60 if (type.GetPreferredApp(preferred) == B_OK) {
63 if (preferredApp.GetIconForType(type.Type(), &data, &size) == B_OK)
69 // check super type for an icon
72 if (type.GetSupertype(&superType) == B_OK) {
76 // check the super type's preferred app
101 icon_for_type(const BMimeType& type, BBitmap& bitmap, icon_size size,
106 if (type.GetIcon(&bitmap, size) == B_OK)
113 if (type.GetPreferredApp(preferred) == B_OK) {
116 if (preferredApp.GetIconForType(type.Type(), &bitmap, size) == B_OK)
122 // check super type for an icon
125 if (type.GetSupertype(&superType) == B_OK) {
129 // check the super type's preferred app
182 Icon::SetTo(const BAppFileInfo& info, const char* type)
189 if (info.GetIconForType(type, &data, &size) == B_OK) {
196 if (icon && info.GetIconForType(type, icon, B_LARGE_ICON) == B_OK)
202 if (icon && info.GetIconForType(type, icon, B_MINI_ICON) == B_OK)
210 Icon::SetTo(const entry_ref& ref, const char* type)
217 SetTo(info, type);
222 Icon::SetTo(const BMimeType& type, icon_source* _source)
228 if (icon_for_type(type, &data, &size, _source) == B_OK) {
235 if (icon && icon_for_type(type, *icon, B_LARGE_ICON, _source) == B_OK)
241 if (icon && icon_for_type(type, *icon, B_MINI_ICON) == B_OK)
249 Icon::CopyTo(BAppFileInfo& info, const char* type, bool force) const
254 status = info.SetIconForType(type, fLarge, B_LARGE_ICON);
256 status = info.SetIconForType(type, fMini, B_MINI_ICON);
258 status = info.SetIconForType(type, fData, fSize);
265 Icon::CopyTo(const entry_ref& ref, const char* type, bool force) const
277 return CopyTo(info, type, force);
282 Icon::CopyTo(BMimeType& type, bool force) const
287 status = type.SetIcon(fLarge, B_LARGE_ICON);
289 status = type.SetIcon(fMini, B_MINI_ICON);
291 status = type.SetIcon(fData, fSize);
667 const char* type;
669 if (message->FindString("be:type", &type) != B_OK
673 if (!strcasecmp(type, fType.Type())) {
687 && message->FindString("be:extra_type", &type) == B_OK
688 && !strcasecmp(type, fType.Type())) {
725 type_code type;
727 if (message->GetInfo("refs", &type, &count) == B_OK && count == 1
728 && type == B_REF_TYPE) {
737 if ((message->GetInfo("icon/large", &type) == B_OK
738 && type == B_MESSAGE_TYPE)
739 || (message->GetInfo("icon", &type) == B_OK
740 && type == B_VECTOR_ICON_TYPE)
741 || (message->GetInfo("icon/mini", &type) == B_OK
742 && type == B_MESSAGE_TYPE))
1005 IconView::SetTo(const BMimeType& type)
1009 if (type.Type() == NULL)
1013 fType.SetTo(type.Type());
1211 IconView::GetMimeType(BMimeType& type) const
1216 type.SetTo(fType.Type());
1231 // in static or MIME type mode, Icon-O-Matic needs to return the
1379 // try MIME type icon
1380 char type[B_MIME_TYPE_LENGTH];
1381 if (info.GetType(type) != B_OK)
1384 BMimeType mimeType(type);