Lines Matching refs:info

141 		Info* info = new(std::nothrow) Info(fRoot, this, path,
143 if (info == NULL || !fChildren.AddItem(info)) {
144 delete info;
147 return info;
150 bool DeleteChild(Info* info)
152 return fChildren.RemoveItem(info, true);
329 Info* info = _InfoForNodeRef(definitionFileNodeRef);
330 if (info == NULL) {
332 definitionFileEntryRef, info);
337 const BString& subDirectory = info->Path();
338 const BStringList& rootDirectoryPaths = info->Root()->DirectoryPaths();
351 *_definitionFileEntryRef = info->DefinitionFileEntryRef();
357 *_definitionFileNodeRef = info->DefinitionFileNodeRef();
367 Info* info = _InfoForNodeRef(definitionFileRef);
368 if (info == NULL)
371 _time = info->Root()->LastChangeTime();
380 Info* info = _InfoForNodeRef(definitionFileRef);
381 if (info == NULL)
384 _rootDefinitionFileRef = info->Root()->Info()->DefinitionFileNodeRef();
398 Info* info = parentInfo->GetChild(subDirName);
399 if (info == NULL)
402 _entryRef = info->DefinitionFileEntryRef();
403 _nodeRef = info->DefinitionFileNodeRef();
413 Info* info = _InfoForNodeRef(subDirDefinitionRef);
414 if (info == NULL)
417 Info* parentInfo = info->Parent();
456 // get the info for the entry
457 Info* info = parentInfo->GetChild(_entryRef.name);
458 if (info == NULL) {
506 // create the info
507 info = parentInfo->CreateChild(nodeRef, entryRef);
508 if (info == NULL || !_AddInfo(info))
511 // Write some info into the definition file that helps us to find the
527 info->Path().String());
535 const entry_ref& entryRef = info->DefinitionFileEntryRef();
536 _nodeRef = info->DefinitionFileNodeRef();
548 Info* info = _InfoForNodeRef(definitionFileRef);
549 if (info == NULL)
552 _UpdateTree(info->Root());
561 Info* info = _InfoForNodeRef(definitionFileRef);
562 if (info == NULL)
565 _RemoveDirectory(info);
567 // delete the info
568 if (info->Parent() == NULL)
569 delete info->Root();
571 info->Parent()->DeleteChild(info);
612 VirtualDirectoryManager::_AddInfo(Info* info)
615 fInfos[info->DefinitionFileNodeRef()] = info;
624 VirtualDirectoryManager::_RemoveInfo(Info* info)
626 NodeRefInfoMap::iterator it = fInfos.find(info->DefinitionFileNodeRef());
650 VirtualDirectoryManager::_UpdateTree(Info* info)
652 const BStringList& directoryPaths = info->Root()->DirectoryPaths();
654 int32 childCount = info->Children().CountItems();
656 Info* childInfo = info->Children().ItemAt(i);
663 info->DeleteChildAt(i);
670 VirtualDirectoryManager::_RemoveDirectory(Info* info)
673 for (int32 i = 0; Info* child = info->Children().ItemAt(i); i++)
677 if (!info->Id().IsEmpty()) {
678 BPath path(kTemporaryDefinitionFileBaseDirectoryPath, info->Id());
684 if (info != info->Root()->Info())
685 BEntry(&info->DefinitionFileEntryRef()).Remove();
687 _RemoveInfo(info);
697 // created by another application. We'll just try to read the info from the
717 // resolve/create the root info
718 Info* info = _InfoForNodeRef(nodeRef);
719 if (info == NULL) {
720 error = _CreateRootInfo(nodeRef, entryRef, info);
723 } else if (info->Root()->Info() != info)
726 const BStringList& rootDirectoryPaths = info->Root()->DirectoryPaths();
755 error = TranslateDirectoryEntry(info->DefinitionFileNodeRef(), entryRef,
760 info = _InfoForNodeRef(nodeRef);
763 _info = info;