Lines Matching refs:mime
405 // 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.SetShortDescription("Haiku Icon");
435 fprintf(stderr, "Could not set short description of mime type: %s\n",
437 ret = mime.SetLongDescription("Native Haiku vector icon");
439 fprintf(stderr, "Could not set long description of mime type: %s\n",
445 ret = mime.SetFileExtensions(&message);
447 fprintf(stderr, "Could not set extensions of mime type: %s\n",
452 ret = mime.SetSnifferRule(snifferRule);
456 fprintf(stderr, "Could not set sniffer rule of mime type: %s\n",