Lines Matching refs:type

33 		void Add(uint32 type);
34 bool Remove(uint32 type);
35 bool FindType(uint32 type);
68 status_t GetMimeTypeFromCode(uint32 type, char *mimeType);
86 void ListTranslators(uint32 type);
90 status_t Translate(BFile &input, translator_info &translator, BFile &output, uint32 type);
91 status_t Translate(BFile &input, BFile &output, uint32 type);
92 status_t Translate(const char *inPath, const char *outPath, uint32 type);
120 print_tupel("'%s' ", format.type);
132 TypeList::Add(uint32 type)
134 fList.AddItem((void *)(addr_t)type, 0);
139 TypeList::Remove(uint32 type)
141 return fList.RemoveItem((void *)(addr_t)type);
146 TypeList::FindType(uint32 type)
148 return fList.IndexOf((void *)(addr_t)type) >= 0;
268 // the Registrar couldn't find a type for this file
298 * quality path between the input type and the output type, and then
321 uint32 type = translatorPath.TypeAt(i);
322 if (type == fOutputFormat)
330 status_t status = fRoster->Translate(inputStream, NULL, NULL, outputStream, type);
339 print_tupel(" '%s'\n", type);
362 inFormat = infos[0].type;
373 inFormat = format->type;
399 if (formats[j].type == inFormat) {
416 if (formats[j].group != group || typesSeen.FindType(formats[j].type))
421 if (formats[j].type == fOutputFormat) {
422 // we've found our target type, so we can stop the path here
423 bestPath.Add(formats[j].type);
435 bestPath.Add(formats[j].type);
455 Translator::GetMimeTypeFromCode(uint32 type, char *mimeType)
471 if (type == format[j].type) {
514 uint32 type = B_TRANSLATOR_ANY_TYPE;
516 type = GetTypeCodeFromString(argv[2]);
518 ListTranslators(type);
545 fprintf(stderr, "%s: bad format: %s\nformat is 4-byte type code or full MIME type\n",
570 printf("usage: %s { --list [type] | input output format }\n"
571 "\t\"format\" can expressed as 4-byte type code (ie. 'TEXT') or as MIME type.\n",
577 TranslateApp::ListTranslators(uint32 type)
592 // test if the translator has formats of the specified type
594 if (type != B_TRANSLATOR_ANY_TYPE) {
598 if (inputFormats[j].group == type || inputFormats[j].type == type) {
605 if (outputFormats[j].group == type || outputFormats[j].type == type) {
646 return format[j].type;