Searched refs:mime (Results 1 - 25 of 100) sorted by last modified time

1234

/haiku/src/kits/tracker/
H A DWidgetAttributeText.cpp701 BMimeType mime; local
704 // get the mime type
705 if (mime.SetType(fModel->MimeType()) != B_OK)
707 else if (mime.GetShortDescription(desc) == B_OK) {
708 // get the short mime type description
H A DUtilities.cpp574 BMimeType mime(type);
575 status_t result = mime.GetIcon(fBitmap, which);
576 ASSERT(mime.IsValid());
579 BMimeType mime(B_FILE_MIMETYPE);
580 ASSERT(mime.IsInstalled());
581 mime.GetIcon(fBitmap, which);
H A DPoseView.cpp4253 // TODO: collect all mime types here and pass into
4297 // get the mime type of the model, following a possible symlink
4304 BNodeInfo mime(&file);
4306 if (mime.InitCheck() != B_OK)
4310 mime.GetType(mimeType);
H A DOpenWithWindow.cpp231 // set entry as default handler for one mime string
232 BMimeType mime(element->String());
233 if (!mime.IsInstalled())
245 if (mime.SetPreferredApp(appSignature) != B_OK)
249 mime.SetTo(appSignature);
253 mime.SetAppHint(appRef);
286 // mime types in the list
591 BMimeType mime(type);
592 if (!mime.IsInstalled())
596 mime
[all...]
H A DTrackerInitialState.cpp36 // add code to initialize a subset of the mime database, including
253 // whole mime type is installed and all attributes are set; nulls can
263 BMimeType mime(type);
264 bool installed = mime.IsInstalled();
268 || mime.GetIcon(&vectorIcon, B_LARGE_ICON) != B_OK))
270 || mime.GetIcon(&largeIcon, B_LARGE_ICON) != B_OK))
272 || mime.GetIcon(&miniIcon, B_MINI_ICON) != B_OK))
274 || mime.GetShortDescription(tmp) != B_OK))
276 || mime.GetLongDescription(tmp) != B_OK))
278 || mime
[all...]
H A DIconCache.cpp423 BMimeType mime(fileType);
425 if (mime.GetIcon(lazyBitmap->Get(), icon_size_for(size)) != B_OK) {
428 if (mime.GetPreferredApp(preferredAppSig) != B_OK)
522 BMimeType mime(fileType);
523 if (!mime.IsSupertypeOnly()) {
525 mime.GetSupertype(&superType);
606 // go for the default mime based icon
1168 BMimeType mime(fileType);
1170 status_t result = mime.GetPreferredApp(preferredAppSig);
1181 result = mime
[all...]
H A DModel.cpp612 // check if a specific mime type is set
614 // node has a specific mime type
897 // sync up cached values of mime type and preferred app and
917 // node has a specific mime type
989 BNodeInfo mime(&file);
991 if (mime.InitCheck() != B_OK)
995 mime.GetType(mimeType);
1000 // do some mime-based matching
1060 // perform a mime type wildcard match
H A DIconMenuItem.cpp306 BMimeType mime(iconType);
310 if (mime.GetIcon(fDeviceIcon, which) != B_OK) {
312 mime.GetSupertype(&super);
333 BMimeType mime(iconType);
337 if (mime.GetIcon(fDeviceIcon, which) != B_OK) {
339 mime.GetSupertype(&super);
/haiku/src/apps/codycam/
H A DVideoConsumer.cpp803 const char* mime = NULL; local
806 mime = formats[ix].MIME;
811 if (mime == NULL) {
818 return ninfo.SetType(mime);
/haiku/src/apps/terminal/
H A DTermWindow.cpp424 const char* mime = charset->GetMIMEName(); local
425 if (mime)
426 name << " (" << mime << ")"; local
452 const char* mime = charset.GetMIMEName();
453 if (mime == NULL || strcasecmp(mime, "UTF-8") != 0)
461 if (mime)
462 name << " (" << mime << ")";
/haiku/src/servers/registrar/
H A DRecentApps.cpp246 BMimeType mime(appSig);
247 status_t err = mime.InitCheck();
249 err = mime.GetAppHint(result);
H A DMIMEManager.cpp24 #include <mime/AppMetaMimeCreator.h>
25 #include <mime/database_support.h>
26 #include <mime/MimeSnifferAddonManager.h>
27 #include <mime/TextSnifferAddon.h>
229 err = reply.AddString("mime type", str);
270 // Create the appropriate flavor of mime update thread
/haiku/src/kits/storage/mime/
H A DSupportingApps.cpp12 #include <mime/SupportingApps.h>
24 #include <mime/database_support.h>
25 #include <mime/DatabaseDirectory.h>
26 #include <mime/DatabaseLocation.h>
82 BMimeType mime(type);
83 status_t status = mime.InitCheck();
87 if (mime.IsSupertypeOnly()) {
113 status = mime.GetSupertype(&superMime);
155 mime types in its \c Mime::kTypesField field.
233 \param type The full mime typ
[all...]
/haiku/src/kits/tracker/infowindow/
H A DGeneralInfoView.cpp223 BMimeType mime(fModel->MimeType());
242 mime.GetSupportingApps(&supportingAppList);
305 BMimeType mime; local
375 if (mime.SetType(model->MimeType()) == B_OK
376 && mime.GetShortDescription(kind) == B_OK)
/haiku/src/apps/people/
H A DPeopleApp.cpp103 // Read attributes from person mime type. If it does not exist,
105 // person mime type from the hard-coded default attributes.
108 BMimeType mime(B_PERSON_MIMETYPE);
109 if (mime.IsInstalled()) {
111 if (mime.GetAttrInfo(&info) == B_NO_ERROR) {
145 mime.Delete();
150 mime.Install();
151 mime.SetShortDescription(B_TRANSLATE_CONTEXT("Person",
153 mime.SetLongDescription(B_TRANSLATE_CONTEXT(
156 mime
[all...]
/haiku/src/apps/mail/
H A DMailWindow.cpp492 const char* mime = charSet.GetMIMEName(); local
493 if (mime != NULL)
494 name << " (" << mime << ")"; local
497 if (mime == NULL || strcasecmp(mime, "UTF-8") != 0)
3179 // ignore the mime type, we'll force it to be email
H A DContent.cpp2210 bool stripHeader, bool mime, TTextView *view, BEmailMessage *mail,
2218 fMime(mime),
H A DPrefs.cpp837 const char* mime = charset.GetMIMEName(); local
838 if (mime)
839 name << " (" << mime << ")"; local
842 if ((mime == 0) || (strcasecmp(mime, "UTF-8") != 0))
/haiku/src/apps/icon-o-matic/import_export/styled_text/
H A DStyledTextImporter.cpp235 char mime[B_MIME_TYPE_LENGTH]; local
236 err = info.GetType(mime);
240 if (strncmp(mime, "text/plain", B_MIME_TYPE_LENGTH))
/haiku/src/tests/kits/storage/
H A DMimeTypeTest.cpp23 #include <mime/database_support.h>
55 "x-vnd.obos.mime.test.test1";
57 "x-vnd.obos.mime.test.test2";
59 "x-vnd.obos.mime.test.test3";
94 static const char *testSig = "application/x-vnd.obos.mime-type-test";
95 static const char *testSig2 = "application/x-vnd.obos.mime-type-test-2";
96 static const char *longSig = "application/x-vnd.obos.mime-type-test-long."
453 virtual status_t GetIcon(BMimeType &mime, BBitmap *icon) { argument
454 return mime.GetIcon(icon, size);
458 virtual status_t SetIcon(BMimeType &mime, BBitma argument
463 DeleteIcon(BMimeType &mime) argument
499 GetIcon(BMimeType &mime, BBitmap *icon) argument
502 SetIcon(BMimeType &mime, BBitmap *icon) argument
505 DeleteIcon(BMimeType &mime) argument
632 BMimeType mime; local
848 BMimeType mime; local
1140 BMimeType mime; local
1330 BMimeType mime; local
1887 BMimeType mime; local
2016 BMimeType mime; local
2211 BMimeType mime; local
[all...]
/haiku/src/apps/packageinstaller/
H A DPackageInfo.cpp787 char *mime = new char[length + 1]; local
788 fPackageFile->Read(mime, length);
789 mime[length] = 0;
790 parser_debug("Mime: %s\n", mime);
792 mimeString = mime;
793 delete[] mime;
/haiku/src/apps/icon-o-matic/
H A DIconEditorApp.cpp405 // install mime type of documents
406 BMimeType mime(kNativeIconMimeType);
407 status_t ret = mime.InitCheck();
409 fprintf(stderr, "Could not init native document mime type (%s): %s.\n",
414 if (mime.IsInstalled() && !(modifiers() & B_SHIFT_KEY)) {
415 // mime is already installed, and the user is not
420 ret = mime.Install();
422 fprintf(stderr, "Could not install native document mime type (%s): "
427 ret = mime.SetPreferredApp(kAppSig);
433 ret = mime
[all...]
/haiku/src/servers/mail/
H A DMailDaemonApplication.cpp580 BMimeType mime(types[i]);
581 if (mime.InitCheck() != B_OK) {
582 fputs("could not init mime type.\n", stderr);
586 if (!mime.IsInstalled() || remakeMIMETypes) {
587 // install the full mime type
588 mime.Delete();
589 mime.Install();
609 mime.SetAttrInfo(&info);
612 mime.SetShortDescription("E-mail");
613 mime
[all...]
/haiku/src/add-ons/kernel/file_systems/fat/
H A Ddosfs.cpp108 if (n->mime) kprintf("mime type %s\n", n->mime);
636 vol->root_vnode.mime = NULL;
1131 dprintf("mime = %s\n", node->mime ? node->mime : "(null)");
/haiku/src/kits/network/libnetservices/
H A DGopherRequest.cpp108 const char *mime; member in struct:__anon20
340 const char *mime = "application/octet-stream"; local
343 mime = gopher_type_map[i].mime;
347 fResult.SetContentType(mime);

Completed in 211 milliseconds

1234