Lines Matching defs:model

617 	Model model(ref, true, true);
618 if (model.InitCheck() != B_OK)
621 BString mimeType(model.MimeType());
624 // if model is of unknown type, try mimeseting it first
625 model.Mimeset(true);
630 if (model.PreferredAppSignature()[0]) {
632 if (be_roster->FindApp(model.PreferredAppSignature(), &preferredRef)
634 queryIterator->PushUniqueSignature(model.PreferredAppSignature());
639 mimeType = model.MimeType();
960 OpenWithPoseView::OpenWithRelation(const Model* model) const
965 model, fHaveCommonPreferredApp ? &fPreferredRef : 0, 0);
970 OpenWithPoseView::OpenWithRelationDescription(const Model* model,
976 model, description, fHaveCommonPreferredApp ? &fPreferredRef : 0, 0);
997 Model *model = new Model(ref, true, true);
998 bool canOpen = fIterator->CanOpenWithFilter(model, fEntryList,
1000 delete model;
1009 RelationCachingModelProxy::RelationCachingModelProxy(Model* model)
1011 fModel(model),
1184 Model* model = new Model(&entry, true);
1185 if (model->InitCheck() != B_OK
1186 || !fIterator->CanOpenWithFilter(model, &fEntriesToOpen,
1190 delete model;
1192 fSupportingAppList->AddItem(new RelationCachingModelProxy(model));
1220 Model* model = fSupportingAppList->ItemAt(index)->fModel;
1224 if (collator.Compare(model->Name(), next->Name()) == 0) {
1228 BVolume volume(model->NodeRef()->device);
1248 Model* model = proxy->fModel;
1253 label = model->Name();
1259 BVolume volume(model->NodeRef()->device);
1265 label << model->Name();
1269 BEntry entry(model->EntryRef());
1271 PRINT(("stale entry ref %s\n", model->Name()));
1282 fIterator->RelationDescription(&fEntriesToOpen, model,
1297 Model* model = proxy->fModel;
1308 message->AddRef("handler", model->EntryRef());
1317 ModelMenuItem* item = new ModelMenuItem(model,
1322 if (fHaveCommonPreferredApp && *(model->EntryRef()) == fPreferredRef) {
1323 //PRINT(("marking item for % as preferred", model->Name()));
1552 const Model* model) const
1554 return Relation(entriesToOpen, model,
1562 const Model* model, BString* description) const
1564 RelationDescription(entriesToOpen, model, description,
1580 // need to init a model so that typeless folders etc. will still
1583 Model model(&ref, true, true);
1584 if (model.InitCheck())
1587 int32 result = Relation(&model, applicationModel);
1623 Model model(&ref, true, true);
1624 if (model.InitCheck())
1628 int32 result = Relation(&model, applicationModel);
1639 mimeType.SetTo(model.MimeType());
1648 // model.MimeType(), strerror(result), mimeType.Type()));
1657 mimeType.SetTo(model.MimeType());