#include <llinventorymodel.h>
Definition at line 96 of file llinventorymodel.h.
Definition at line 107 of file llinventorymodel.h.
Definition at line 108 of file llinventorymodel.h.
typedef std::map<std::string, std::string> LLInventoryModel::response_t |
Definition at line 312 of file llinventorymodel.h.
typedef std::vector<response_t> LLInventoryModel::options_t |
Definition at line 313 of file llinventorymodel.h.
typedef std::vector<LLCategoryUpdate> LLInventoryModel::update_list_t |
Definition at line 336 of file llinventorymodel.h.
typedef std::map<LLUUID, LLInitializedS32> LLInventoryModel::update_map_t |
Definition at line 348 of file llinventorymodel.h.
typedef std::set<LLUUID> LLInventoryModel::changed_items_t [protected] |
Definition at line 425 of file llinventorymodel.h.
typedef std::map<LLUUID, LLPointer<LLViewerInventoryCategory> > LLInventoryModel::cat_map_t [protected] |
Definition at line 433 of file llinventorymodel.h.
typedef std::map<LLUUID, LLPointer<LLViewerInventoryItem> > LLInventoryModel::item_map_t [protected] |
Definition at line 434 of file llinventorymodel.h.
typedef std::map<LLUUID, cat_array_t*> LLInventoryModel::parent_cat_map_t [protected] |
Definition at line 443 of file llinventorymodel.h.
typedef std::map<LLUUID, item_array_t*> LLInventoryModel::parent_item_map_t [protected] |
Definition at line 444 of file llinventorymodel.h.
typedef std::set<LLInventoryObserver*> LLInventoryModel::observer_list_t [protected] |
Definition at line 448 of file llinventorymodel.h.
Definition at line 99 of file llinventorymodel.h.
anonymous enum |
LLInventoryModel::LLInventoryModel | ( | ) |
Definition at line 181 of file llinventorymodel.cpp.
LLInventoryModel::~LLInventoryModel | ( | ) |
Definition at line 189 of file llinventorymodel.cpp.
References empty(), and mObservers.
Definition at line 201 of file llinventorymodel.cpp.
References FALSE, getCategory(), getObject(), LLInventoryObject::getParentUUID(), LLUUID::isNull(), and TRUE.
Referenced by LLFolderBridge::buildContextMenu(), LLToolDragAndDrop::dad3dActivateGesture(), LLToolDragAndDrop::dad3dRezAttachmentFromInv(), LLToolDragAndDrop::dad3dRezObjectOnLand(), LLToolDragAndDrop::dad3dRezObjectOnObject(), LLToolDragAndDrop::dad3dWearCategory(), LLToolDragAndDrop::dad3dWearItem(), LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::dragItemIntoFolder(), LLToolDragAndDrop::dropObject(), handle_take(), LLAttachObject::handleEvent(), LLFolderViewItem::handleHover(), LLInvFVBridge::isAgentInventory(), LLInvFVBridge::isClipboardPasteable(), LLInvFVBridge::isInTrash(), LLFolderBridge::isItemRemovable(), LLInvFVBridge::isItemRemovable(), LLPreviewLSL::loadAsset(), open_offer(), LLObjectBridge::performAction(), and LLItemBridge::removeItem().
LLInventoryObject * LLInventoryModel::getObject | ( | const LLUUID & | id | ) | const |
Definition at line 224 of file llinventorymodel.cpp.
References getCategory(), getItem(), and NULL.
Referenced by appendPath(), LLInventoryPanel::buildNewViews(), deleteObject(), LLDiscardAgentOffer::done(), LLInvFVBridge::getInventoryObject(), isObjectDescendentOf(), LLInventoryPanel::modelChanged(), LLFolderBridge::performAction(), and LLItemBridge::performAction().
LLViewerInventoryItem * LLInventoryModel::getItem | ( | const LLUUID & | id | ) | const |
Definition at line 240 of file llinventorymodel.cpp.
References mItemMap, mLastItem, LLPointer< Type >::notNull(), and NULL.
Referenced by LLGestureManager::activateGesture(), LLAgent::addWearabletoAgentInventoryDone(), attach_label(), LLFloaterGesture::buildGestureList(), LLTracker::cacheLandmarkPosition(), LLInventoryExistenceObserver::changed(), LLInventoryFetchComboObserver::changed(), LLInventoryFetchObserver::changed(), LLInventoryCompletionObserver::changed(), confirm_replace_attachment_rez(), LLAgent::copyWearableToInventory(), LLGestureManager::deactivateSimilarGestures(), deleteFromServer(), detach_label(), LLDelayedGestureError::doDialog(), LLCategoryDropObserver::done(), LLOutfitObserver::done(), LLFloaterAvatarPicker::doSelectionChange(), LLViewerGesture::doTrigger(), LLCallingCardBridge::dragOrDrop(), enable_save_into_inventory(), LLInventoryFetchComboObserver::fetch(), LLInventoryFetchObserver::fetchItems(), LLFloaterProperties::findItem(), LLEmbeddedNotecardOpener::fire(), CreateGestureCallback::fire(), RezAttachmentCallback::fire(), WearOnAvatarCallback::fire(), LLPreview::getItem(), LLItemBridge::getItem(), getObject(), LLAgent::getWearableInventoryItem(), LLAgent::getWearablePermMask(), LLToolDragAndDrop::handleCopyProtectedItem(), LLPreviewGesture::handleDragAndDrop(), LLGroupDropTarget::handleDragAndDrop(), LLDropTarget::handleDragAndDrop(), LLAttachmentEnableDrop::handleEvent(), LLAttachObject::handleEvent(), LLBeginIMSession::handleEvent(), inventory_offer_callback(), LLAgent::isWearableCopyable(), LLAgent::isWearableModifiable(), landmark_menu_action(), LLPreviewLSL::loadAsset(), LLToolDragAndDrop::locateInventory(), LLAgent::makeNewOutfit(), messageUpdateCore(), moveObject(), LLFloaterLandmark::onBtnDelete(), LLFloaterLandmark::onBtnEdit(), LLFloaterGesture::onClickEdit(), LLFloaterClothing::onClickTakeOff(), LLFloaterClothing::onClickWear(), LLPreviewGesture::onCommitActive(), LLFloaterClothing::onCommitList(), LLFloaterWorldMap::onLandmarkComboCommit(), LLPreviewLSL::onLoadComplete(), LLPreviewLSL::onSaveComplete(), LLPreviewNotecard::onSaveComplete(), LLPreviewGesture::onSaveComplete(), LLFloaterTexturePicker::onSelectionChange(), LLFloaterLandmark::onSelectionChange(), LLAgent::onSetWearableDialog(), LLFloaterTexturePicker::onTextureSelect(), LLWearableBridge::onWearOnAvatarArrived(), open_offer(), LLFolderBridge::pasteFromClipboard(), LLObjectBridge::performAction(), LLGestureBridge::performAction(), LLItemBridge::performAction(), process_logout_reply(), processBulkUpdateInventory(), processMoveInventoryItem(), processRemoveInventoryItem(), processSaveAssetIntoInventory(), LLInvFVBridge::removeBatch(), LLInvFVBridge::removeBatchNoCheck(), LLAgent::saveWearable(), LLAgent::saveWearableAs(), LLSelectMgr::selectionSetImage(), LLFloaterTexturePicker::setImageID(), LLTracker::setLandmarkVisited(), LLAgent::setWearableName(), updateItem(), LLUpdateAgentInventoryResponder::uploadComplete(), wear_inventory_category_on_avatar_step3(), and LLWearable::writeToAvatar().
LLViewerInventoryCategory * LLInventoryModel::getCategory | ( | const LLUUID & | id | ) | const |
Definition at line 260 of file llinventorymodel.cpp.
References mCategoryMap, and NULL.
Referenced by accountForUpdate(), appendPath(), backgroundFetch(), LLToolDragAndDrop::beginDrag(), LLToolDragAndDrop::beginMultiDrag(), LLFolderBridge::buildContextMenu(), bulkFetch(), cache(), categoryHasChildren(), LLInventoryFetchComboObserver::changed(), LLInventoryFetchDescendentsObserver::changed(), LLInventoryCopyAndWearObserver::changed(), deleteFromServer(), LLOutfitObserver::done(), LLFolderBridge::dragCategoryIntoFolder(), LLCallingCardBridge::dragOrDrop(), LLInventoryFetchComboObserver::fetch(), LLInventoryFetchDescendentsObserver::fetchDescendents(), fetchDescendentsOf(), LLFolderBridge::folderOptionsMenu(), LLFolderBridge::getCategory(), getObject(), handle_take(), LLToolDragAndDrop::handleCopyProtectedCategory(), LLDropTarget::handleDragAndDrop(), inventory_offer_callback(), isCategoryComplete(), LLFolderBridge::isItemRemovable(), isObjectDescendentOf(), LLFolderBridge::isUpToDate(), LLToolDragAndDrop::locateInventory(), moveObject(), LLItemBridge::performAction(), processBulkUpdateInventory(), processInventoryDescendents(), processRemoveInventoryFolder(), processUpdateInventoryFolder(), purgeDescendentsOf(), LLInvFVBridge::removeBatch(), LLInvFVBridge::removeBatchNoCheck(), LLInventoryModel::fetchDescendentsResponder::result(), updateCategory(), wear_inventory_category_on_avatar_step2(), and LLWearInventoryCategoryCallback::~LLWearInventoryCategoryCallback().
S32 LLInventoryModel::getItemCount | ( | ) | const |
Definition at line 271 of file llinventorymodel.cpp.
References mItemMap.
Referenced by LLInventoryView::changed(), and LLInventoryView::draw().
S32 LLInventoryModel::getCategoryCount | ( | ) | const |
void LLInventoryModel::getDirectDescendentsOf | ( | const LLUUID & | cat_id, | |
cat_array_t *& | categories, | |||
item_array_t *& | items | |||
) | const |
Definition at line 286 of file llinventorymodel.cpp.
References get_ptr_in_map(), mParentChildCategoryTree, and mParentChildItemTree.
Referenced by accountForUpdate(), LLInventoryPanel::buildNewViews(), init_landmark_menu(), isCategoryComplete(), LLInventoryFetchDescendentsObserver::isComplete(), and LLCanCache::operator()().
void LLInventoryModel::collectDescendents | ( | const LLUUID & | id, | |
cat_array_t & | categories, | |||
item_array_t & | items, | |||
BOOL | include_trash | |||
) |
Definition at line 413 of file llinventorymodel.cpp.
References collectDescendentsIf().
Referenced by LLCategoryDropDescendentsObserver::done(), LLOutfitFetch::done(), LLRightClickInventoryFetchDescendentsObserver::done(), LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::isItemRemovable(), purgeDescendentsOf(), LLInvFVBridge::removeBatch(), and LLFolderBridge::removeItem().
void LLInventoryModel::collectDescendentsIf | ( | const LLUUID & | id, | |
cat_array_t & | categories, | |||
item_array_t & | items, | |||
BOOL | include_trash, | |||
LLInventoryCollectFunctor & | add | |||
) |
Definition at line 422 of file llinventorymodel.cpp.
References LLAssetType::AT_TRASH, LLDynamicArray< Type, BlockSize >::count(), findCatUUID(), LLDynamicArray< Type, BlockSize >::get(), get_ptr_in_map(), LLInventoryObject::getUUID(), i, mParentChildCategoryTree, mParentChildItemTree, LLUUID::notNull(), NULL, LLDynamicArray< Type, BlockSize >::put(), and S32.
Referenced by LLPreviewGesture::addAnimations(), LLPreviewGesture::addSounds(), LLToolDragAndDrop::beginDrag(), LLToolDragAndDrop::beginMultiDrag(), LLFloaterClothing::buildClothingList(), LLFloaterWorldMap::buildLandmarkIDLists(), cache(), callback_choose_gender(), LLVOAvatar::canGrabLocalTexture(), LLFolderBridge::checkFolderForContentsOfType(), collectDescendents(), LLToolDragAndDrop::commitGiveInventoryCategory(), LLToolDragAndDrop::dad3dUpdateInventoryCategory(), LLFetchInWelcomeArea::done(), LLFloaterIMPanel::dropCategory(), LLFloaterTexturePicker::findItemID(), LLFloaterLandmark::findItemID(), LLToolDragAndDrop::giveInventoryCategory(), LLToolDragAndDrop::handleCopyProtectedCategory(), LLBeginIMSession::handleEvent(), remove_inventory_category_from_avatar_step2(), wear_inventory_category_on_avatar_step2(), and wear_outfit_by_name().
bool LLInventoryModel::isInventoryUsable | ( | ) |
Definition at line 488 of file llinventorymodel.cpp.
References gAgent, LLAgent::getInventoryRootID(), mIsAgentInvUsable, and LLUUID::notNull().
Referenced by createNewCategory(), findCategoryUUIDForType(), moveObject(), updateCategory(), and updateItem().
U32 LLInventoryModel::updateItem | ( | const LLViewerInventoryItem * | item | ) |
Definition at line 501 of file llinventorymodel.cpp.
References LLInventoryObserver::ADD, addChangedMask(), addItem(), LLAssetType::AT_CALLINGCARD, LLAssetType::AT_LOST_AND_FOUND, LLInventoryObserver::CALLING_CARD, CATEGORIZE_LOST_AND_FOUND_ID, LLViewerInventoryItem::copyViewerItem(), findCategoryUUIDForType(), get_ptr_in_map(), getItem(), LLInventoryObject::getName(), LLInventoryObject::getParentUUID(), LLInventoryObject::getType(), LLInventoryObject::getUUID(), LLInventoryObserver::INTERNAL, isInventoryUsable(), LLUUID::isNull(), LLInventoryObserver::LABEL, llendl, llinfos, llwarns, mParentChildItemTree, LLInventoryObserver::NONE, LLDynamicArray< Type, BlockSize >::put(), LLDynamicArray< Type, BlockSize >::removeObj(), LLInventoryObserver::STRUCTURE, and TRUE.
Referenced by LLInvFVBridge::changeItemParent(), container_inventory_arrived(), LLToolDragAndDrop::dad3dActivateGesture(), CreateGestureCallback::fire(), handle_grab_texture(), messageUpdateCore(), LLFloaterLandmark::onBtnDelete(), LLPreview::onCommit(), LLPreviewGesture::onCommitActive(), LLFloaterProperties::onCommitDescription(), LLFloaterProperties::onCommitName(), LLFloaterProperties::onCommitPermissions(), LLPreview::onDiscardBtn(), LLPreviewLSL::onSaveComplete(), LLPreviewNotecard::onSaveComplete(), LLPreviewGesture::onSaveComplete(), LLGestureBridge::performAction(), processBulkUpdateInventory(), processInventoryDescendents(), processMoveInventoryItem(), remove_inventory_category_from_avatar_step2(), LLObjectBridge::renameItem(), LLItemBridge::renameItem(), LLInventoryModel::fetchDescendentsResponder::result(), LLAgent::saveWearable(), LLFloaterProperties::updateSaleInfo(), LLUpdateAgentInventoryResponder::uploadComplete(), and LLNewAgentInventoryResponder::uploadComplete().
void LLInventoryModel::updateCategory | ( | const LLViewerInventoryCategory * | cat | ) |
Definition at line 617 of file llinventorymodel.cpp.
References LLInventoryObserver::ADD, addCategory(), addChangedMask(), LLViewerInventoryCategory::copyViewerCategory(), get_ptr_in_map(), getCategory(), LLInventoryObject::getName(), LLInventoryObject::getParentUUID(), LLInventoryObject::getUUID(), isInventoryUsable(), LLUUID::isNull(), LLInventoryObserver::LABEL, llendl, llwarns, mParentChildCategoryTree, mParentChildItemTree, LLInventoryObserver::NONE, LLDynamicArray< Type, BlockSize >::put(), LLDynamicArray< Type, BlockSize >::removeObj(), and LLInventoryObserver::STRUCTURE.
Referenced by LLInvFVBridge::changeCategoryParent(), createNewCategory(), processBulkUpdateInventory(), processInventoryDescendents(), processUpdateInventoryFolder(), LLFolderBridge::renameItem(), LLInventoryModel::fetchDescendentsResponder::result(), and wear_inventory_category_on_avatar_step2().
Definition at line 684 of file llinventorymodel.cpp.
References addChangedMask(), get_ptr_in_map(), getCategory(), getItem(), LLInventoryObject::getParentUUID(), is_in_map(), isInventoryUsable(), lldebugs, llendl, llwarns, mCategoryMap, mParentChildCategoryTree, mParentChildItemTree, LLDynamicArray< Type, BlockSize >::put(), LLDynamicArray< Type, BlockSize >::removeObj(), LLInventoryObject::setParent(), and LLInventoryObserver::STRUCTURE.
Referenced by LLDiscardAgentOffer::done(), and LLInvFVBridge::removeBatchNoCheck().
void LLInventoryModel::deleteObject | ( | const LLUUID & | id | ) |
Definition at line 726 of file llinventorymodel.cpp.
References addChangedMask(), get_ptr_in_map(), getObject(), lldebugs, llendl, mCategoryMap, mItemMap, mLastItem, mParentChildCategoryTree, mParentChildItemTree, NULL, LLInventoryObserver::REMOVE, and LLDynamicArray< Type, BlockSize >::removeObj().
Referenced by LLToolDragAndDrop::dropInventory(), LLToolDragAndDrop::dropObject(), LLToolDragAndDrop::dropScript(), LLToolDragAndDrop::handleCopyProtectedCategory(), LLToolDragAndDrop::handleCopyProtectedItem(), LLToolDragAndDrop::handleDropTextureProtections(), LLFolderBridge::performAction(), LLItemBridge::performAction(), processRemoveInventoryFolder(), processRemoveInventoryItem(), and purgeDescendentsOf().
void LLInventoryModel::purgeDescendentsOf | ( | const LLUUID & | id | ) |
Definition at line 772 of file llinventorymodel.cpp.
References accountForUpdate(), LLMessageSystem::addUUID(), categoryHasChildren(), CHILDREN_NO, collectDescendents(), LLDynamicArray< Type, BlockSize >::count(), deleteObject(), gAgent, LLDynamicArray< Type, BlockSize >::get(), getCategory(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, i, INCLUDE_TRASH, llendl, llinfos, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLPointer< Type >::notNull(), S32, and LLAgent::sendReliableMessage().
Referenced by LLEmptyLostAndFound::callback_empty_lost_and_found(), LLEmptyTrash::callback_empty_trash(), LLEmptyTrashFloater::handleEvent(), LLFolderBridge::performAction(), and LLItemBridge::performAction().
void LLInventoryModel::deleteFromServer | ( | LLDynamicArray< LLUUID > & | category_ids, | |
LLDynamicArray< LLUUID > & | item_ids | |||
) |
Definition at line 829 of file llinventorymodel.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_FolderData, _PREHASH_FolderID, _PREHASH_ItemData, _PREHASH_ItemID, _PREHASH_RemoveInventoryObjects, _PREHASH_SessionID, accountForUpdate(), addChangedMask(), LLMessageSystem::addUUIDFast(), LLDynamicArray< Type, BlockSize >::count(), FALSE, gAgent, LLDynamicArray< Type, BlockSize >::get(), getCategory(), LLAgent::getID(), getItem(), LLAgent::getSessionID(), gMessageSystem, i, LLMessageSystem::isSendFullFast(), LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLPointer< Type >::notNull(), LLUUID::null, LLInventoryObserver::REMOVE, S32, LLAgent::sendReliableMessage(), LLInventoryObserver::STRUCTURE, and TRUE.
void LLInventoryModel::addObserver | ( | LLInventoryObserver * | observer | ) |
Definition at line 923 of file llinventorymodel.cpp.
References mObservers.
Referenced by LLFolderBridge::buildContextMenu(), LLToolDragAndDrop::dad3dUpdateInventoryCategory(), LLCategoryDropDescendentsObserver::done(), LLOutfitFetch::done(), LLAttachmentEnableDrop::handleEvent(), idle_startup(), LLInventoryView::init(), inventory_offer_callback(), LLFloaterClothing::LLFloaterClothing(), LLFloaterCustomize::LLFloaterCustomize(), LLLandmarkObserver::LLLandmarkObserver(), LLPreview::LLPreview(), LLPropertiesObserver::LLPropertiesObserver(), move_task_inventory_callback(), LLFloaterWorldMap::observeInventory(), LLInventoryPanel::postBuild(), LLPreviewGesture::show(), start_new_inventory_observer(), LLPostTeleportNotifiers::tick(), and wear_inventory_category().
void LLInventoryModel::removeObserver | ( | LLInventoryObserver * | observer | ) |
Definition at line 928 of file llinventorymodel.cpp.
References mObservers.
Referenced by LLInventoryCopyAndWearObserver::changed(), LLFetchInWelcomeArea::done(), LLDiscardAgentOffer::done(), LLOpenAgentOffer::done(), LLWornItemFetchedObserver::done(), LLCategoryDropDescendentsObserver::done(), LLCategoryDropObserver::done(), LLTextureFetchDescendentsObserver::done(), LLGestureInventoryFetchObserver::done(), LLInventoryGestureAvailable::done(), LLOutfitFetch::done(), LLRightClickInventoryFetchDescendentsObserver::done(), LLRightClickInventoryFetchObserver::done(), LLFloaterWorldMap::observeInventory(), LLFloaterClothing::~LLFloaterClothing(), LLFloaterCustomize::~LLFloaterCustomize(), LLInventoryPanel::~LLInventoryPanel(), LLInventoryView::~LLInventoryView(), LLLandmarkObserver::~LLLandmarkObserver(), LLPreview::~LLPreview(), and LLPropertiesObserver::~LLPropertiesObserver().
BOOL LLInventoryModel::containsObserver | ( | LLInventoryObserver * | observer | ) |
LLUUID LLInventoryModel::findCategoryUUIDForType | ( | LLAssetType::EType | preferred_type, | |
bool | create_folder = true | |||
) |
Definition at line 298 of file llinventorymodel.cpp.
References createNewCategory(), findCatUUID(), gAgent, LLAgent::getInventoryRootID(), isInventoryUsable(), LLUUID::isNull(), LLUUID::notNull(), and NULL.
Referenced by LLFolderBridge::buildContextMenu(), buildParentChildMap(), LLEmptyLostAndFound::callback_empty_lost_and_found(), LLEmptyTrash::callback_empty_trash(), callingcard_offer_callback(), LLTaskInvFVBridge::commitBuyItem(), LLSelectMgr::confirmDelete(), container_inventory_arrived(), copy_inventory_from_notecard(), create_new_landmark(), LLToolDragAndDrop::dad3dActivateGesture(), LLToolDragAndDrop::dad3dRezAttachmentFromInv(), LLToolDragAndDrop::dad3dRezObjectOnLand(), LLToolDragAndDrop::dad3dRezObjectOnObject(), LLToolDragAndDrop::dad3dWearCategory(), LLToolDragAndDrop::dad3dWearItem(), do_create(), LLDiscardAgentOffer::done(), LLOutfitObserver::done(), LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::dragItemIntoFolder(), LLToolDragAndDrop::dropObject(), force_take_copy(), friendship_offer_callback(), handle_grab_texture(), handle_take(), LLWorldCreateLandmark::handleEvent(), LLToolsTakeCopy::handleEvent(), LLEmptyTrashFloater::handleEvent(), LLTextureCtrl::handleMouseDown(), init_landmark_menu(), LLInvFVBridge::isInTrash(), LLFolderViewFolder::isTrash(), LLAgent::makeNewOutfit(), LLFloaterOpenObject::moveToInventory(), LLFloaterLandmark::onBtnDelete(), LLFloaterLandmark::onBtnNew(), LLFloaterBuyContents::onClickBuy(), LLFloaterBuy::onClickBuy(), LLPreview::onDiscardBtn(), LLPanelEditWearable::onSelectAutoWearOption(), open_offer(), LLInventoryPanel::openDefaultFolderForType(), process_improved_im(), LLAgent::recoverMissingWearable(), LLInvFVBridge::removeBatchNoCheck(), LLFolderBridge::removeItem(), LLItemBridge::removeItem(), LLPanelFriends::requestFriendship(), LLFolderBridge::restoreItem(), LLItemBridge::restoreItem(), LLAgent::saveWearableAs(), LLPreviewGesture::show(), LLFloaterWorldMap::show(), LLPostTeleportNotifiers::tick(), updateItem(), upload_done_callback(), and upload_new_resource().
void LLInventoryModel::notifyObservers | ( | ) |
Definition at line 941 of file llinventorymodel.cpp.
References LLInventoryObserver::changed(), mChangedItemIDs, mModifyMask, mObservers, and LLInventoryObserver::NONE.
Referenced by LLAgent::addWearabletoAgentInventoryDone(), LLVOAvatar::attachObject(), LLEmptyLostAndFound::callback_empty_lost_and_found(), LLEmptyTrash::callback_empty_trash(), LLInvFVBridge::changeCategoryParent(), LLInvFVBridge::changeItemParent(), container_inventory_arrived(), LLFolderBridge::createNewCategory(), LLToolDragAndDrop::dad3dActivateGesture(), LLVOAvatar::detachObject(), do_create(), LLDiscardAgentOffer::done(), LLToolDragAndDrop::dropInventory(), LLToolDragAndDrop::dropObject(), LLToolDragAndDrop::dropScript(), LLInventoryModel::fetchDescendentsResponder::error(), CreateGestureCallback::fire(), handle_grab_texture(), LLToolDragAndDrop::handleCopyProtectedCategory(), LLToolDragAndDrop::handleCopyProtectedItem(), LLToolDragAndDrop::handleDropTextureProtections(), LLEmptyTrashFloater::handleEvent(), LLPanelFriends::handleRemove(), idle_startup(), LLAgent::makeNewOutfit(), messageUpdateCore(), LLFloaterLandmark::onBtnDelete(), LLPreview::onCommit(), LLPreviewGesture::onCommitActive(), LLFloaterProperties::onCommitDescription(), LLFloaterProperties::onCommitName(), LLFloaterProperties::onCommitPermissions(), LLPreview::onDiscardBtn(), LLAgent::onInitialWearableAssetArrived(), LLPreviewLSL::onSaveComplete(), LLPreviewNotecard::onSaveComplete(), LLPreviewGesture::onSaveComplete(), LLWearableBridge::onWearOnAvatarArrived(), LLGestureBridge::performAction(), LLFolderBridge::performAction(), LLItemBridge::performAction(), processBulkUpdateInventory(), processInventoryDescendents(), processMoveInventoryItem(), LLAvatarTracker::processNotify(), processRemoveInventoryFolder(), processRemoveInventoryItem(), processSaveAssetIntoInventory(), processUpdateInventoryFolder(), LLAgent::recoverMissingWearableDone(), remove_inventory_category_from_avatar_step2(), LLInvFVBridge::removeBatchNoCheck(), LLAgent::removeWearableFinal(), LLObjectBridge::renameItem(), LLFolderBridge::renameItem(), LLItemBridge::renameItem(), LLInventoryModel::fetchDescendentsResponder::result(), LLPreviewGesture::saveIfNeeded(), LLAgent::sendAgentWearablesUpdate(), LLTracker::setLandmarkVisited(), LLAgent::setWearableFinal(), LLAgent::setWearableOutfit(), LLFloaterProperties::updateSaleInfo(), LLUpdateAgentInventoryResponder::uploadComplete(), LLNewAgentInventoryResponder::uploadComplete(), wear_inventory_category_on_avatar_step2(), and wear_inventory_category_on_avatar_step3().
Definition at line 958 of file llinventorymodel.cpp.
References mChangedItemIDs, mModifyMask, and LLUUID::notNull().
Referenced by LLAgent::addWearabletoAgentInventoryDone(), LLVOAvatar::attachObject(), LLGestureManager::deactivateGesture(), LLGestureManager::deactivateSimilarGestures(), deleteFromServer(), deleteObject(), LLVOAvatar::detachObject(), LLPanelFriends::handleRemove(), idle_startup(), moveObject(), LLAgent::onInitialWearableAssetArrived(), LLGestureManager::onLoadComplete(), process_logout_reply(), LLAvatarTracker::processNotify(), processSaveAssetIntoInventory(), LLAgent::recoverMissingWearableDone(), LLAgent::removeWearableFinal(), LLAgent::sendAgentWearablesUpdate(), LLTracker::setLandmarkVisited(), LLAgent::setWearableFinal(), LLAgent::setWearableOutfit(), updateCategory(), and updateItem().
const std::set<LLUUID>& LLInventoryModel::getChangedIDs | ( | ) | [inline] |
Definition at line 275 of file llinventorymodel.h.
References mChangedItemIDs.
Referenced by LLInventoryCopyAndWearObserver::changed(), and LLInventoryPanel::modelChanged().
void LLInventoryModel::fetchDescendentsOf | ( | const LLUUID & | folder_id | ) |
cat_array_t* categories = get_ptr_in_map(mParentChildCategoryTree, folder_id);
Definition at line 989 of file llinventorymodel.cpp.
References LLViewerInventoryCategory::fetchDescendents(), getCategory(), llendl, and llwarns.
Referenced by LLFolderViewFolder::handleRightMouseDown(), and LLFolderBridge::openItem().
void LLInventoryModel::bulkFetch | ( | std::string | url | ) | [static] |
Definition at line 1192 of file llinventorymodel.cpp.
References LLSD::append(), LLDynamicArray< Type, BlockSize >::count(), FALSE, gDisconnected, LLDynamicArray< Type, BlockSize >::get(), getCategory(), LLFrameTimer::getElapsedTimeF32(), LLViewerInventoryCategory::getOwnerID(), LLControlGroup::getU32(), LLInventoryObject::getUUID(), gSavedSettings, isBulkFetchProcessingComplete(), isCategoryComplete(), mParentChildCategoryTree, LLHTTPClient::post(), LLFrameTimer::reset(), S32, sAllFoldersFetched, sBulkFetchCount, sBulkFetchMap, sFetchQueue, sFetchTimer, sFullFetchStarted, sMinTimeBetweenFetches, stopBackgroundFetch(), and TRUE.
Referenced by backgroundFetch().
Definition at line 1492 of file llinventorymodel.cpp.
References CACHE_FORMAT_STRING, collectDescendentsIf(), gDirUtilp, getCategory(), LLDir::getExpandedFilename(), gzip_file(), INCLUDE_TRASH, LL_MAX_PATH, LL_PATH_CACHE, lldebugs, llendl, llwarns, NULL, LLDynamicArray< Type, BlockSize >::put(), LLFile::remove(), saveToFile(), LLUUID::toString(), and UUID_STR_LENGTH.
Referenced by LLAppViewer::disconnectViewer().
Definition at line 469 of file llinventorymodel.cpp.
References getCategory(), LLInventoryObject::getName(), getObject(), and LLInventoryObject::getParentUUID().
Referenced by LLPanelEditWearable::draw().
void LLInventoryModel::registerCallbacks | ( | LLMessageSystem * | msg | ) | [static] |
Definition at line 2450 of file llinventorymodel.cpp.
References _PREHASH_BulkUpdateInventory, _PREHASH_RemoveInventoryFolder, _PREHASH_RemoveInventoryItem, _PREHASH_SaveAssetIntoInventory, _PREHASH_UpdateCreateInventoryItem, _PREHASH_UpdateInventoryFolder, NULL, processBulkUpdateInventory(), processFetchInventoryReply(), processInventoryDescendents(), processMoveInventoryItem(), processRemoveInventoryFolder(), processRemoveInventoryItem(), processSaveAssetIntoInventory(), processUpdateCreateInventoryItem(), processUpdateInventoryFolder(), LLMessageSystem::setHandlerFunc(), and LLMessageSystem::setHandlerFuncFast().
Referenced by idle_startup().
LLUUID LLInventoryModel::createNewCategory | ( | const LLUUID & | parent_id, | |
LLAssetType::EType | preferred_type, | |||
const LLString & | name | |||
) |
Definition at line 344 of file llinventorymodel.cpp.
References _PREHASH_SessionID, accountForUpdate(), LLMessageSystem::addUUID(), LLAssetType::AT_COUNT, LLAssetType::AT_TEXTURE, gAgent, LLUUID::generate(), LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, isInventoryUsable(), llendl, llwarns, NEW_CATEGORY_NAME, NEW_CATEGORY_NAMES, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLAgent::sendReliableMessage(), indra::base::config::update(), updateCategory(), and LLViewerInventoryCategory::VERSION_INITIAL.
Referenced by container_inventory_arrived(), LLFolderBridge::createNewCategory(), do_create(), LLOutfitObserver::done(), findCategoryUUIDForType(), LLAgent::makeNewOutfit(), and LLFloaterOpenObject::moveToInventory().
Definition at line 1741 of file llinventorymodel.cpp.
References addCategory(), addItem(), LLAssetType::AT_NONE, CACHE_FORMAT_STRING, LLDynamicArray< Type, BlockSize >::count(), LLDynamicArray< Type, BlockSize >::find(), LLFile::fopen(), gDirUtilp, LLDir::getExpandedFilename(), LLInventoryObject::getUUID(), LLViewerInventoryCategory::getVersion(), gunzip_file(), i, LL_MAX_PATH, LL_PATH_CACHE, lldebugs, llendl, llinfos, llwarns, loadFromFile(), mCategoryMap, NULL, LLFile::remove(), S32, LLViewerInventoryCategory::setDescendentCount(), LLViewerInventoryCategory::setVersion(), LLUUID::toString(), UUID_STR_LENGTH, and LLViewerInventoryCategory::VERSION_UNKNOWN.
Referenced by idle_startup().
Definition at line 1955 of file llinventorymodel.cpp.
References addItem(), LLAssetType::AT_CALLINGCARD, LLPermissions::init(), LLPermissions::initMasks(), llendl, llinfos, llwarns, NULL, LLUUID::null, and PERM_NONE.
void LLInventoryModel::buildParentChildMap | ( | ) |
Definition at line 2041 of file llinventorymodel.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_FolderID, _PREHASH_InventoryData, _PREHASH_ItemID, _PREHASH_MoveInventoryItem, _PREHASH_SessionID, _PREHASH_Stamp, LLMessageSystem::addBOOLFast(), LLMessageSystem::addString(), LLMessageSystem::addUUIDFast(), LLAssetType::AT_CATEGORY, LLAssetType::AT_LOST_AND_FOUND, LLAssetType::AT_NONE, LLDynamicArray< Type, BlockSize >::count(), FALSE, findCategoryUUIDForType(), gAgent, LLDynamicArray< Type, BlockSize >::get(), get_ptr_in_map(), LLAgent::getID(), LLAgent::getInventoryRootID(), LLInventoryObject::getName(), LLInventoryObject::getParentUUID(), LLInventoryCategory::getPreferredType(), LLAgent::getSessionID(), LLInventoryObject::getUUID(), gMessageSystem, i, LLMessageSystem::isSendFull(), llendl, llinfos, llwarns, mCategoryMap, mIsAgentInvUsable, mItemMap, mParentChildCategoryTree, mParentChildItemTree, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLUUID::notNull(), NULL, LLUUID::null, LLDynamicArray< Type, BlockSize >::put(), S32, LLAgent::sendReliableMessage(), LLInventoryObject::setParent(), TRUE, and LLViewerInventoryCategory::updateServer().
Referenced by idle_startup().
void LLInventoryModel::accountForUpdate | ( | const LLCategoryUpdate & | update | ) |
Definition at line 1577 of file llinventorymodel.cpp.
References LLDynamicArray< Type, BlockSize >::count(), getCategory(), LLViewerInventoryCategory::getDescendentCount(), getDirectDescendentsOf(), LLInventoryObject::getName(), LLViewerInventoryCategory::getVersion(), lldebugs, llendl, llinfos, llwarns, LLInventoryModel::LLCategoryUpdate::mCategoryID, LLInventoryModel::LLCategoryUpdate::mDescendentDelta, S32, LLViewerInventoryCategory::setDescendentCount(), LLViewerInventoryCategory::setVersion(), and LLViewerInventoryCategory::VERSION_UNKNOWN.
Referenced by accountForUpdate(), LLInvFVBridge::changeCategoryParent(), LLInvFVBridge::changeItemParent(), createNewCategory(), deleteFromServer(), LLDiscardAgentOffer::done(), messageUpdateCore(), LLFloaterLandmark::onBtnDelete(), LLPreview::onDiscardBtn(), processBulkUpdateInventory(), processMoveInventoryItem(), processRemoveInventoryFolder(), processRemoveInventoryItem(), processSaveAssetIntoInventory(), processUpdateInventoryFolder(), purgeDescendentsOf(), LLInvFVBridge::removeBatchNoCheck(), LLViewerInventoryCategory::removeFromServer(), LLViewerInventoryItem::removeFromServer(), LLTracker::setLandmarkVisited(), LLViewerInventoryCategory::updateServer(), and LLViewerInventoryItem::updateServer().
void LLInventoryModel::accountForUpdate | ( | const update_list_t & | updates | ) |
Definition at line 1619 of file llinventorymodel.cpp.
References accountForUpdate().
void LLInventoryModel::accountForUpdate | ( | const update_map_t & | updates | ) |
Definition at line 1630 of file llinventorymodel.cpp.
References accountForUpdate(), LLInventoryModel::LLCategoryUpdate::mCategoryID, and LLInventoryModel::LLCategoryUpdate::mDescendentDelta.
LLInventoryModel::EHasChildren LLInventoryModel::categoryHasChildren | ( | const LLUUID & | cat_id | ) | const |
Definition at line 1685 of file llinventorymodel.cpp.
References CHILDREN_MAYBE, CHILDREN_NO, CHILDREN_YES, LLViewerInventoryCategory::DESCENDENT_COUNT_UNKNOWN, getCategory(), LLViewerInventoryCategory::getDescendentCount(), LLInventoryObject::getUUID(), LLViewerInventoryCategory::getVersion(), mParentChildCategoryTree, mParentChildItemTree, and LLViewerInventoryCategory::VERSION_UNKNOWN.
Referenced by LLFolderBridge::hasChildren(), and purgeDescendentsOf().
bool LLInventoryModel::isCategoryComplete | ( | const LLUUID & | cat_id | ) | const |
Definition at line 1719 of file llinventorymodel.cpp.
References LLDynamicArray< Type, BlockSize >::count(), getCategory(), LLViewerInventoryCategory::getDescendentCount(), getDirectDescendentsOf(), LLViewerInventoryCategory::getVersion(), S32, and LLViewerInventoryCategory::VERSION_UNKNOWN.
Referenced by backgroundFetch(), bulkFetch(), LLInventoryFetchComboObserver::changed(), LLToolDragAndDrop::dad3dUpdateInventoryCategory(), LLInventoryFetchComboObserver::fetch(), LLFolderViewFolder::filter(), LLToolDragAndDrop::giveInventoryCategory(), and LLInventoryModel::fetchDescendentsResponder::result().
void LLInventoryModel::startBackgroundFetch | ( | const LLUUID & | cat_id = LLUUID::null |
) | [static] |
Definition at line 1314 of file llinventorymodel.cpp.
References LLCallbackList::addFunction(), backgroundFetch(), gAgent, LLAgent::getInventoryRootID(), gIdleCallbacks, gInventoryLibraryRoot, LLUUID::isNull(), NULL, sAllFoldersFetched, sBackgroundFetchActive, sFetchQueue, sFullFetchStarted, and TRUE.
Referenced by LLTextureFetchDescendentsObserver::done(), LLViewerInventoryCategory::fetchDescendents(), LLFolderViewFolder::filter(), LLTextureCtrl::handleMouseDown(), LLFloaterClothing::LLFloaterClothing(), LLInventoryView::onFilterSelected(), LLInventoryView::onSearchEdit(), LLPreviewGesture::show(), LLFloaterWorldMap::show(), LLInvFVBridge::startDrag(), and LLInventoryView::toggleFindOptions().
void LLInventoryModel::stopBackgroundFetch | ( | ) | [static] |
Definition at line 1342 of file llinventorymodel.cpp.
References backgroundFetch(), LLCallbackList::deleteFunction(), FALSE, gIdleCallbacks, NULL, sBackgroundFetchActive, sBulkFetchCount, and sMinTimeBetweenFetches.
Referenced by backgroundFetch(), bulkFetch(), LLInventoryModel::fetchDescendentsResponder::error(), LLInventoryModel::fetchDescendentsResponder::onClickRetry(), and LLInventoryModel::fetchDescendentsResponder::result().
BOOL LLInventoryModel::backgroundFetchActive | ( | ) | [static] |
Definition at line 1308 of file llinventorymodel.cpp.
References sBackgroundFetchActive.
Referenced by LLFloaterClothing::buildClothingList(), LLInventoryView::changed(), LLFolderView::draw(), LLInventoryFilter::getFilterText(), and LLInventoryPanel::handleHover().
bool LLInventoryModel::isEverythingFetched | ( | ) | [static] |
Definition at line 1302 of file llinventorymodel.cpp.
References sAllFoldersFetched.
Referenced by LLInventoryView::draw().
void LLInventoryModel::backgroundFetch | ( | void * | ) | [static] |
Definition at line 1355 of file llinventorymodel.cpp.
References bulkFetch(), LLDynamicArray< Type, BlockSize >::count(), FALSE, LLViewerInventoryCategory::fetchDescendents(), gAgent, gDisconnected, LLDynamicArray< Type, BlockSize >::get(), LLViewerRegion::getCapability(), getCategory(), LLFrameTimer::getElapsedTimeF32(), LLAgent::getRegion(), LLInventoryObject::getUUID(), LLViewerInventoryCategory::getVersion(), isCategoryComplete(), lerp(), llendl, llinfos, llmax(), llmin(), MAX_FETCH_RETRIES, mParentChildCategoryTree, LLFrameTimer::reset(), S32, sAllFoldersFetched, sBackgroundFetchActive, sFetchQueue, sFetchTimer, sFullFetchStarted, sMaxTimeBetweenFetches, sMinTimeBetweenFetches, sNumFetchRetries, sTimelyFetchPending, stopBackgroundFetch(), TRUE, and LLViewerInventoryCategory::VERSION_UNKNOWN.
Referenced by startBackgroundFetch(), and stopBackgroundFetch().
static void LLInventoryModel::incrBulkFetch | ( | S16 | fetching | ) | [inline, static] |
Definition at line 371 of file llinventorymodel.h.
References sBulkFetchCount.
Referenced by LLInventoryModel::fetchDescendentsResponder::error(), LLInventoryModel::fetchDescendentsResponder::onClickRetry(), and LLInventoryModel::fetchDescendentsResponder::result().
void LLInventoryModel::addCategory | ( | LLViewerInventoryCategory * | category | ) | [protected] |
Definition at line 1536 of file llinventorymodel.cpp.
References LLInventoryObject::getUUID(), and mCategoryMap.
Referenced by loadSkeleton(), and updateCategory().
void LLInventoryModel::addItem | ( | LLViewerInventoryItem * | item | ) | [protected] |
Definition at line 1547 of file llinventorymodel.cpp.
References LLInventoryObject::getUUID(), and mItemMap.
Referenced by loadMeat(), loadSkeleton(), and updateItem().
LLUUID LLInventoryModel::findCatUUID | ( | LLAssetType::EType | preferred_type | ) | [protected] |
Definition at line 314 of file llinventorymodel.cpp.
References LLAssetType::AT_CATEGORY, LLDynamicArray< Type, BlockSize >::count(), gAgent, LLDynamicArray< Type, BlockSize >::get(), get_ptr_in_map(), LLAgent::getInventoryRootID(), i, mParentChildCategoryTree, LLUUID::notNull(), LLUUID::null, NULL, and S32.
Referenced by collectDescendentsIf(), and findCategoryUUIDForType().
void LLInventoryModel::empty | ( | void | ) | [protected] |
Definition at line 1558 of file llinventorymodel.cpp.
References mCategoryMap, mItemMap, mLastItem, mParentChildCategoryTree, mParentChildItemTree, and NULL.
Referenced by ~LLInventoryModel().
bool LLInventoryModel::loadFromFile | ( | const char * | filename, | |
LLInventoryModel::cat_array_t & | categories, | |||
LLInventoryModel::item_array_t & | items | |||
) | [static, protected] |
Definition at line 2336 of file llinventorymodel.cpp.
References LLFile::fopen(), LLPointer< Type >::isNull(), llendl, llerrs, llinfos, llwarns, MAX_STRING, LLUUID::null, and LLDynamicArray< Type, BlockSize >::put().
Referenced by loadSkeleton().
bool LLInventoryModel::saveToFile | ( | const char * | filename, | |
const cat_array_t & | categories, | |||
const item_array_t & | items | |||
) | [static, protected] |
Definition at line 2409 of file llinventorymodel.cpp.
References LLDynamicArray< Type, BlockSize >::count(), LLViewerInventoryCategory::exportFileLocal(), LLFile::fopen(), LLViewerInventoryCategory::getVersion(), i, llendl, llerrs, llinfos, llwarns, S32, and LLViewerInventoryCategory::VERSION_UNKNOWN.
Referenced by cache().
void LLInventoryModel::processUpdateCreateInventoryItem | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static, protected] |
Definition at line 2492 of file llinventorymodel.cpp.
References _PREHASH_CallbackID, _PREHASH_InventoryData, _PREHASH_ItemID, LLInventoryCallbackManager::fire(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), gInventoryCallbacks, and messageUpdateCore().
Referenced by registerCallbacks().
void LLInventoryModel::processRemoveInventoryItem | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static, protected] |
Definition at line 2586 of file llinventorymodel.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_InventoryData, _PREHASH_ItemID, accountForUpdate(), deleteObject(), gAgent, LLAgent::getID(), getItem(), LLMessageSystem::getNumberOfBlocksFast(), LLInventoryObject::getParentUUID(), LLMessageSystem::getUUIDFast(), i, lldebugs, llendl, llwarns, notifyObservers(), S32, and indra::base::config::update().
Referenced by registerCallbacks().
void LLInventoryModel::processUpdateInventoryFolder | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static, protected] |
Definition at line 2622 of file llinventorymodel.cpp.
References _PREHASH_AgentID, _PREHASH_FolderData, accountForUpdate(), LLAssetType::AT_NONE, gAgent, LLInventoryView::getActiveInventory(), getCategory(), LLAgent::getID(), LLMessageSystem::getNumberOfBlocksFast(), LLInventoryView::getPanel(), LLInventoryObject::getParentUUID(), LLMessageSystem::getUUIDFast(), i, lldebugs, llendl, llwarns, notifyObservers(), S32, LLInventoryPanel::setSelection(), TAKE_FOCUS_NO, indra::base::config::update(), and updateCategory().
Referenced by registerCallbacks().
void LLInventoryModel::processRemoveInventoryFolder | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static, protected] |
Definition at line 2682 of file llinventorymodel.cpp.
References _PREHASH_AgentID, _PREHASH_FolderData, _PREHASH_FolderID, accountForUpdate(), deleteObject(), gAgent, getCategory(), LLAgent::getID(), LLMessageSystem::getNumberOfBlocksFast(), LLInventoryObject::getParentUUID(), LLMessageSystem::getUUIDFast(), i, lldebugs, llendl, llwarns, notifyObservers(), S32, and indra::base::config::update().
Referenced by registerCallbacks().
void LLInventoryModel::processSaveAssetIntoInventory | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static, protected] |
Definition at line 2716 of file llinventorymodel.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_InventoryData, _PREHASH_ItemID, accountForUpdate(), addChangedMask(), LLWindow::decBusyCount(), gAgent, LLAgent::getID(), getItem(), LLInventoryObject::getParentUUID(), LLMessageSystem::getUUIDFast(), LLViewerWindow::getWindow(), gViewerWindow, LLInventoryObserver::INTERNAL, lldebugs, llendl, llinfos, llwarns, and notifyObservers().
Referenced by registerCallbacks().
void LLInventoryModel::processBulkUpdateInventory | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static, protected] |
Definition at line 2764 of file llinventorymodel.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_CallbackID, _PREHASH_FolderData, _PREHASH_ItemData, _PREHASH_TransactionID, accountForUpdate(), FALSE, LLInventoryCallbackManager::fire(), gAgent, getCategory(), LLAgent::getID(), getItem(), LLMessageSystem::getNumberOfBlocksFast(), LLInventoryObject::getParentUUID(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), gInventoryCallbacks, i, LLInventoryType::IT_WEARABLE, llendl, llinfos, llwarns, InventoryCallbackInfo::mCallback, InventoryCallbackInfo::mInvID, notifyObservers(), LLPointer< Type >::notNull(), LLUUID::null, S32, LLInventoryView::sWearNewClothing, LLInventoryView::sWearNewClothingTransactionID, indra::base::config::update(), updateCategory(), updateItem(), and wear_inventory_item_on_avatar().
Referenced by registerCallbacks().
void LLInventoryModel::processInventoryDescendents | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static, protected] |
Definition at line 2929 of file llinventorymodel.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_FolderData, _PREHASH_ItemData, gAgent, getCategory(), LLAgent::getID(), LLMessageSystem::getNumberOfBlocksFast(), LLMessageSystem::getS32(), LLMessageSystem::getUUID(), LLMessageSystem::getUUIDFast(), i, llendl, llwarns, notifyObservers(), S32, LLViewerInventoryCategory::setDescendentCount(), LLViewerInventoryCategory::setVersion(), updateCategory(), and updateItem().
Referenced by registerCallbacks().
void LLInventoryModel::processMoveInventoryItem | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static, protected] |
Definition at line 2975 of file llinventorymodel.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_FolderID, _PREHASH_InventoryData, _PREHASH_ItemID, accountForUpdate(), gAgent, LLAgent::getID(), getItem(), LLMessageSystem::getNumberOfBlocksFast(), LLInventoryObject::getParentUUID(), LLMessageSystem::getString(), LLMessageSystem::getUUIDFast(), i, lldebugs, llendl, llinfos, llwarns, MAX_STRING, notifyObservers(), S32, indra::base::config::update(), and updateItem().
Referenced by registerCallbacks().
void LLInventoryModel::processFetchInventoryReply | ( | LLMessageSystem * | msg, | |
void ** | ||||
) | [static, protected] |
Definition at line 2508 of file llinventorymodel.cpp.
References messageUpdateCore().
Referenced by registerCallbacks().
bool LLInventoryModel::isBulkFetchProcessingComplete | ( | ) | [static, protected] |
Definition at line 1019 of file llinventorymodel.cpp.
References FALSE, sBulkFetchCount, sBulkFetchMap, sFetchQueue, and TRUE.
Referenced by bulkFetch(), LLInventoryModel::fetchDescendentsResponder::error(), LLInventoryModel::fetchDescendentsResponder::onClickRetry(), and LLInventoryModel::fetchDescendentsResponder::result().
bool LLInventoryModel::messageUpdateCore | ( | LLMessageSystem * | msg, | |
bool | do_accounting | |||
) | [protected] |
Definition at line 2515 of file llinventorymodel.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_InventoryData, accountForUpdate(), LLWindow::decBusyCount(), gAgent, LLAgent::getID(), getItem(), LLMessageSystem::getNumberOfBlocksFast(), LLInventoryObject::getParentUUID(), LLMessageSystem::getUUIDFast(), LLViewerWindow::getWindow(), gViewerWindow, i, LLUUID::isNull(), lldebugs, llendl, llwarns, notifyObservers(), S32, start_new_inventory_observer(), indra::base::config::update(), and updateItem().
Referenced by processFetchInventoryReply(), and processUpdateCreateInventoryItem().
void LLInventoryModel::dumpInventory | ( | ) |
Definition at line 3031 of file llinventorymodel.cpp.
References LLViewerInventoryCategory::getDescendentCount(), LLInventoryObject::getName(), LLInventoryObject::getUUID(), LLViewerInventoryCategory::getVersion(), llendl, llinfos, mCategoryMap, and mItemMap.
Referenced by dump_inventory().
U32 LLInventoryModel::mModifyMask [protected] |
Definition at line 424 of file llinventorymodel.h.
Referenced by addChangedMask(), and notifyObservers().
changed_items_t LLInventoryModel::mChangedItemIDs [protected] |
Definition at line 426 of file llinventorymodel.h.
Referenced by addChangedMask(), getChangedIDs(), and notifyObservers().
cat_map_t LLInventoryModel::mCategoryMap [protected] |
Definition at line 436 of file llinventorymodel.h.
Referenced by addCategory(), buildParentChildMap(), deleteObject(), dumpInventory(), empty(), getCategory(), getCategoryCount(), loadSkeleton(), and moveObject().
item_map_t LLInventoryModel::mItemMap [protected] |
Definition at line 437 of file llinventorymodel.h.
Referenced by addItem(), buildParentChildMap(), deleteObject(), dumpInventory(), empty(), getItem(), and getItemCount().
LLPointer<LLViewerInventoryItem> LLInventoryModel::mLastItem [mutable, protected] |
Definition at line 440 of file llinventorymodel.h.
Referenced by deleteObject(), empty(), and getItem().
Definition at line 445 of file llinventorymodel.h.
Referenced by backgroundFetch(), buildParentChildMap(), bulkFetch(), categoryHasChildren(), collectDescendentsIf(), deleteObject(), empty(), findCatUUID(), getDirectDescendentsOf(), moveObject(), and updateCategory().
Definition at line 446 of file llinventorymodel.h.
Referenced by buildParentChildMap(), categoryHasChildren(), collectDescendentsIf(), deleteObject(), empty(), getDirectDescendentsOf(), moveObject(), updateCategory(), and updateItem().
observer_list_t LLInventoryModel::mObservers [protected] |
Definition at line 449 of file llinventorymodel.h.
Referenced by addObserver(), containsObserver(), notifyObservers(), removeObserver(), and ~LLInventoryModel().
LLInventoryModel::cat_map_t LLInventoryModel::sBulkFetchMap [static, protected] |
Definition at line 452 of file llinventorymodel.h.
Referenced by bulkFetch(), and isBulkFetchProcessingComplete().
BOOL LLInventoryModel::sBackgroundFetchActive = FALSE [static, protected] |
Definition at line 453 of file llinventorymodel.h.
Referenced by backgroundFetch(), backgroundFetchActive(), startBackgroundFetch(), and stopBackgroundFetch().
BOOL LLInventoryModel::sTimelyFetchPending = FALSE [static, protected] |
BOOL LLInventoryModel::sAllFoldersFetched = FALSE [static, protected] |
Definition at line 455 of file llinventorymodel.h.
Referenced by backgroundFetch(), bulkFetch(), LLInventoryModel::fetchDescendentsResponder::error(), isEverythingFetched(), LLInventoryModel::fetchDescendentsResponder::onClickRetry(), LLInventoryModel::fetchDescendentsResponder::result(), and startBackgroundFetch().
BOOL LLInventoryModel::sFullFetchStarted = FALSE [static, protected] |
Definition at line 456 of file llinventorymodel.h.
Referenced by backgroundFetch(), bulkFetch(), LLInventoryModel::fetchDescendentsResponder::error(), LLInventoryModel::fetchDescendentsResponder::onClickRetry(), LLInventoryModel::fetchDescendentsResponder::result(), and startBackgroundFetch().
S32 LLInventoryModel::sNumFetchRetries = 0 [static, protected] |
LLFrameTimer LLInventoryModel::sFetchTimer [static, protected] |
Definition at line 458 of file llinventorymodel.h.
Referenced by backgroundFetch(), and bulkFetch().
F32 LLInventoryModel::sMinTimeBetweenFetches = 0.3f [static, protected] |
Definition at line 459 of file llinventorymodel.h.
Referenced by backgroundFetch(), bulkFetch(), LLInventoryModel::fetchDescendentsResponder::error(), and stopBackgroundFetch().
F32 LLInventoryModel::sMaxTimeBetweenFetches = 10.f [static, protected] |
S16 LLInventoryModel::sBulkFetchCount = 0 [static, protected] |
Definition at line 461 of file llinventorymodel.h.
Referenced by bulkFetch(), incrBulkFetch(), isBulkFetchProcessingComplete(), and stopBackgroundFetch().
bool LLInventoryModel::mIsAgentInvUsable [protected] |
Definition at line 464 of file llinventorymodel.h.
Referenced by buildParentChildMap(), and isInventoryUsable().