/haiku/src/tests/kits/storage/ |
H A D | MimeTypeTest.cpp | 453 virtual status_t GetIcon(BMimeType &mime, BBitmap *icon) { in GetIcon() argument 454 return mime.GetIcon(icon, size); in GetIcon() 458 virtual status_t SetIcon(BMimeType &mime, BBitmap *icon) { in SetIcon() argument 459 return mime.SetIcon(icon, size); in SetIcon() 463 virtual status_t DeleteIcon(BMimeType &mime) { in DeleteIcon() argument 467 return mime.DeleteIcon(size); in DeleteIcon() 499 virtual status_t GetIcon(BMimeType &mime, BBitmap *icon) { in GetIcon() argument 500 return mime.GetIconForType(fileType.c_str(), icon, size); in GetIcon() 502 virtual status_t SetIcon(BMimeType &mime, BBitmap *icon) { in SetIcon() argument 503 return mime.SetIconForType(fileType.c_str(), icon, size); in SetIcon() [all …]
|
/haiku/src/add-ons/kernel/file_systems/shared/ |
H A D | mime_ext_table.c | 15 char *mime; member 125 set_mime(const char** mime, const char* filename) in set_mime() argument 130 *mime = NULL; in set_mime() 133 *mime = kDirectoryMime; in set_mime() 150 if(p->mime == NULL) in set_mime() 151 *mime = kFailBackMime; in set_mime() 153 *mime = p->mime; in set_mime()
|
/haiku/src/add-ons/kernel/generic/mime_table/ |
H A D | module.c | 63 return mimes[i].mime; in mime_for_ext() 68 const char *ext_for_mime(const char *mime) in ext_for_mime() argument 72 for (i = 0; mimes[i].mime; i++) { in ext_for_mime() 73 if (!strcmp(mime, mimes[i].mime)) in ext_for_mime()
|
H A D | mktable.sh | 8 mime="$1" 13 echo " { \"$extension\", \"$mime\" },"
|
/haiku/src/kits/app/ |
H A D | RosterPrivate.cpp | 61 BRoster::Private::SendTo(BMessage *message, BMessage *reply, bool mime) in SendTo() argument 68 const BMessenger& messenger = mime in SendTo() 89 BRoster::Private::IsMessengerValid(bool mime) const in IsMessengerValid() 91 return fRoster != NULL && (mime ? fRoster->_MimeMessenger().IsValid() in IsMessengerValid()
|
/haiku/src/apps/people/ |
H A D | PeopleApp.cpp | 108 BMimeType mime(B_PERSON_MIMETYPE); in TPeopleApp() local 109 if (mime.IsInstalled()) { in TPeopleApp() 111 if (mime.GetAttrInfo(&info) == B_NO_ERROR) { in TPeopleApp() 145 mime.Delete(); in TPeopleApp() 150 mime.Install(); in TPeopleApp() 151 mime.SetShortDescription(B_TRANSLATE_CONTEXT("Person", in TPeopleApp() 153 mime.SetLongDescription(B_TRANSLATE_CONTEXT( in TPeopleApp() 156 mime.SetIcon(kPersonIcon, sizeof(kPersonIcon)); in TPeopleApp() 157 mime.SetPreferredApp(APP_SIG); in TPeopleApp() 179 mime.SetAttrInfo(&fields); in TPeopleApp()
|
/haiku/src/kits/tracker/ |
H A D | TrackerInitialState.cpp | 263 BMimeType mime(type); in InstallMimeIfNeeded() local 264 bool installed = mime.IsInstalled(); in InstallMimeIfNeeded() 268 || mime.GetIcon(&vectorIcon, B_LARGE_ICON) != B_OK)) in InstallMimeIfNeeded() 270 || mime.GetIcon(&largeIcon, B_LARGE_ICON) != B_OK)) in InstallMimeIfNeeded() 272 || mime.GetIcon(&miniIcon, B_MINI_ICON) != B_OK)) in InstallMimeIfNeeded() 274 || mime.GetShortDescription(tmp) != B_OK)) in InstallMimeIfNeeded() 276 || mime.GetLongDescription(tmp) != B_OK)) in InstallMimeIfNeeded() 278 || mime.GetPreferredApp(tmp) != B_OK))) { in InstallMimeIfNeeded() 281 mime.Install(); in InstallMimeIfNeeded() 288 mime.SetIcon(iconData, iconSize); in InstallMimeIfNeeded() [all …]
|
H A D | IconMenuItem.cpp | 306 BMimeType mime(iconType); in IconMenuItem() local 310 if (mime.GetIcon(fDeviceIcon, which) != B_OK) { in IconMenuItem() 312 mime.GetSupertype(&super); in IconMenuItem() 333 BMimeType mime(iconType); in IconMenuItem() local 337 if (mime.GetIcon(fDeviceIcon, which) != B_OK) { in IconMenuItem() 339 mime.GetSupertype(&super); in IconMenuItem()
|
/haiku/headers/os/drivers/ |
H A D | mime_table.h | 18 char *mime; member 48 const char * (*ext_for_mime)(const char *mime);
|
/haiku/src/apps/icon-o-matic/ |
H A D | IconEditorApp.cpp | 412 BMimeType mime(kNativeIconMimeType); in _InstallDocumentMimeType() local 413 status_t ret = mime.InitCheck(); in _InstallDocumentMimeType() 420 if (mime.IsInstalled() && !(modifiers() & B_SHIFT_KEY)) { in _InstallDocumentMimeType() 426 ret = mime.Install(); in _InstallDocumentMimeType() 433 ret = mime.SetPreferredApp(kAppSig); in _InstallDocumentMimeType() 439 ret = mime.SetShortDescription("Haiku Icon"); in _InstallDocumentMimeType() 443 ret = mime.SetLongDescription("Native Haiku vector icon"); in _InstallDocumentMimeType() 451 ret = mime.SetFileExtensions(&message); in _InstallDocumentMimeType() 458 ret = mime.SetSnifferRule(snifferRule); in _InstallDocumentMimeType()
|
/haiku/src/apps/mediaplayer/ |
H A D | MainApp.cpp | 536 BMimeType mime(kBinaryPlaylistMimeString); in _InstallPlaylistMimeType() local 537 status_t ret = mime.InitCheck(); in _InstallPlaylistMimeType() 544 if (mime.IsInstalled() && !(modifiers() & B_SHIFT_KEY)) { in _InstallPlaylistMimeType() 550 ret = mime.Install(); in _InstallPlaylistMimeType() 557 ret = mime.SetPreferredApp(kAppSig); in _InstallPlaylistMimeType() 564 ret = mime.SetShortDescription("MediaPlayer playlist"); in _InstallPlaylistMimeType() 569 ret = mime.SetLongDescription("MediaPlayer binary playlist file"); in _InstallPlaylistMimeType() 578 ret = mime.SetFileExtensions(&message); in _InstallPlaylistMimeType() 588 ret = mime.SetSnifferRule(snifferRule); in _InstallPlaylistMimeType() 604 if (mime.SetIcon(reinterpret_cast<const uint8*>(iconData), size) in _InstallPlaylistMimeType()
|
/haiku/src/kits/textencoding/ |
H A D | CharacterSetRoster.cpp | 102 const char * mime = character_sets_by_id[id]->GetMIMEName(); in FindCharacterSetByName() local 103 if ((mime != NULL) && (strcasecmp(mime,name) == 0)) { in FindCharacterSetByName()
|
/haiku/src/kits/bluetooth/UI/ |
H A D | BluetoothIconView.cpp | 28 BMimeType mime("application/x-vnd.Haiku-bluetooth_server"); in BluetoothIconView() local 29 mime.GetIcon(&tempIcon, &tempSize); in BluetoothIconView()
|
/haiku/src/kits/print/ |
H A D | BeUtils.cpp | 91 bool MimeTypeForSender(BMessage* sender, BString& mime) { in MimeTypeForSender() argument 96 mime = info.signature; in MimeTypeForSender()
|
/haiku/src/kits/storage/mime/ |
H A D | InstalledTypes.cpp | 100 BMimeType mime; in GetInstalledTypes() local 103 status_t err = mime.SetTo(supertype); in GetInstalledTypes() 105 if (!err && !mime.IsSupertypeOnly()) in GetInstalledTypes() 163 BMimeType mime(type); in AddType() local 164 if (type == NULL || mime.InitCheck() != B_OK) in AddType() 203 BMimeType mime(type); in RemoveType() local 204 if (type == NULL || mime.InitCheck() != B_OK) in RemoveType()
|
H A D | SupportingApps.cpp | 82 BMimeType mime(type); in GetSupportingApps() local 83 status_t status = mime.InitCheck(); in GetSupportingApps() 87 if (mime.IsSupertypeOnly()) { in GetSupportingApps() 113 status = mime.GetSupertype(&superMime); in GetSupportingApps()
|
/haiku/src/servers/mail/ |
H A D | MailDaemonApplication.cpp | 580 BMimeType mime(types[i]); in MakeMimeTypes() local 581 if (mime.InitCheck() != B_OK) { in MakeMimeTypes() 586 if (!mime.IsInstalled() || remakeMIMETypes) { in MakeMimeTypes() 588 mime.Delete(); in MakeMimeTypes() 589 mime.Install(); in MakeMimeTypes() 609 mime.SetAttrInfo(&info); in MakeMimeTypes() 612 mime.SetShortDescription("E-mail"); in MakeMimeTypes() 613 mime.SetLongDescription("Electronic Mail Message"); in MakeMimeTypes() 614 mime.SetPreferredApp("application/x-vnd.Be-MAIL"); in MakeMimeTypes() 616 mime.SetShortDescription("Partial E-mail"); in MakeMimeTypes() [all …]
|
/haiku/src/tests/servers/registrar/ |
H A D | Jamfile | 67 SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src servers registrar mime ] ; 68 SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits storage mime ] ; 99 # mime
|
/haiku/src/servers/registrar/ |
H A D | RecentApps.cpp | 246 BMimeType mime(appSig); in GetRefForApp() local 247 status_t err = mime.InitCheck(); in GetRefForApp() 249 err = mime.GetAppHint(result); in GetRefForApp()
|
H A D | Jamfile | 12 SEARCH_SOURCE += [ FDirName $(SUBDIR) mime ] ; 42 # mime
|
/haiku/src/servers/print/ |
H A D | PrintServerApp.R5.cpp | 187 BString mime; in Handle_BeOSR5_Message() local 188 if (fUseConfigWindow && MimeTypeForSender(msg, mime)) { in Handle_BeOSR5_Message() 193 mime.String()); in Handle_BeOSR5_Message()
|
/haiku/src/build/libbe/storage/ |
H A D | Jamfile | 6 SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits storage mime ] ; 38 # mime
|
/haiku/headers/private/file_systems/ |
H A D | mime_ext_table.h | 16 extern status_t set_mime(const char** mime, const char* filename);
|
/haiku/src/data/mime_db/message/ |
H A D | rfc822 | 2 resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
|
/haiku/src/data/mime_db/video/ |
H A D | mpeg | 2 resource(0, "BEOS:TYPE") #'MIMS' "application/x-vnd.Be-meta-mime";
|