#include <llinventory.h>
Public Member Functions | |
MEM_TYPE_NEW (LLMemType::MTYPE_INVENTORY) | |
LLInventoryObject (const LLUUID &uuid, const LLUUID &parent_uuid, LLAssetType::EType type, const LLString &name) | |
LLInventoryObject () | |
void | copyObject (const LLInventoryObject *other) |
const LLUUID & | getUUID () const |
const LLUUID & | getParentUUID () const |
const LLString & | getName () const |
LLAssetType::EType | getType () const |
void | setUUID (const LLUUID &new_uuid) |
void | rename (const LLString &new_name) |
void | setParent (const LLUUID &new_parent) |
void | setType (LLAssetType::EType type) |
virtual BOOL | exportFile (LLFILE *fp, BOOL include_asset_key=TRUE) const |
virtual BOOL | importLegacyStream (std::istream &input_stream) |
virtual BOOL | exportLegacyStream (std::ostream &output_stream, BOOL include_asset_key=TRUE) const |
virtual void | removeFromServer () |
virtual void | updateParentOnServer (BOOL) const |
virtual void | updateServer (BOOL) const |
Protected Member Functions | |
virtual | ~LLInventoryObject (void) |
Protected Attributes | |
LLUUID | mUUID |
LLUUID | mParentUUID |
LLAssetType::EType | mType |
LLString | mName |
Definition at line 72 of file llinventory.h.
LLInventoryObject::~LLInventoryObject | ( | void | ) | [protected, virtual] |
Definition at line 98 of file llinventory.cpp.
LLInventoryObject::LLInventoryObject | ( | const LLUUID & | uuid, | |
const LLUUID & | parent_uuid, | |||
LLAssetType::EType | type, | |||
const LLString & | name | |||
) |
---------------------------------------------------------------------------- Class LLInventoryObject ----------------------------------------------------------------------------
Definition at line 77 of file llinventory.cpp.
References DB_INV_ITEM_NAME_STR_LEN, mName, LLStringBase< char >::replaceChar(), LLStringBase< char >::replaceNonstandardASCII(), LLStringBase< char >::trim(), and LLStringBase< char >::truncate().
LLInventoryObject::LLInventoryObject | ( | ) |
Definition at line 93 of file llinventory.cpp.
LLInventoryObject::MEM_TYPE_NEW | ( | LLMemType::MTYPE_INVENTORY | ) |
Reimplemented in LLInventoryItem, and LLInventoryCategory.
void LLInventoryObject::copyObject | ( | const LLInventoryObject * | other | ) |
Definition at line 102 of file llinventory.cpp.
References mName, mParentUUID, mType, and mUUID.
Referenced by LLInventoryCategory::copyCategory(), and LLInventoryItem::copyItem().
const LLUUID & LLInventoryObject::getUUID | ( | ) | const |
Definition at line 110 of file llinventory.cpp.
References mUUID.
Referenced by LLGestureManager::activateGestures(), LLInventoryModel::addCategory(), LLInventoryModel::addItem(), LLInventoryModel::backgroundFetch(), LLToolDragAndDrop::beginMultiDrag(), LLFloaterClothing::buildClothingList(), LLFolderBridge::buildContextMenu(), LLFloaterWorldMap::buildLandmarkIDLists(), LLInventoryPanel::buildNewViews(), LLInventoryModel::buildParentChildMap(), LLInventoryModel::bulkFetch(), LLInventoryModel::categoryHasChildren(), LLInventoryModel::collectDescendentsIf(), LLToolDragAndDrop::commitGiveInventoryCategory(), LLToolDragAndDrop::commitGiveInventoryItem(), confirm_replace_attachment_rez(), copy_inventory_from_notecard(), LLTaskInvFVBridge::createObjectBridge(), LLPanelInventory::createViewsForCategory(), LLToolDragAndDrop::dad3dActivateGesture(), LLToolDragAndDrop::dad3dGiveInventoryObject(), LLToolDragAndDrop::dad3dRezAttachmentFromInv(), LLToolDragAndDrop::dad3dRezObjectOnLand(), LLToolDragAndDrop::dad3dRezObjectOnObject(), LLToolDragAndDrop::dad3dUpdateInventoryCategory(), LLToolDragAndDrop::dad3dWearCategory(), LLToolDragAndDrop::dad3dWearItem(), LLTextureCtrl::doDrop(), LLOutfitObserver::done(), LLViewerObject::doUpdateInventory(), LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::dragItemIntoFolder(), LLCallingCardBridge::dragOrDrop(), LLFloaterIMPanel::dropCategory(), LLToolDragAndDrop::dropInventory(), LLToolDragAndDrop::dropObject(), LLToolDragAndDrop::dropScript(), LLInventoryModel::dumpInventory(), LLFloaterTexturePicker::findItemID(), LLFloaterLandmark::findItemID(), LLEmbeddedNotecardOpener::fire(), LLToolDragAndDrop::giveInventory(), LLToolDragAndDrop::giveInventoryCategory(), LLToolDragAndDrop::handleCopyProtectedCategory(), LLPreviewGesture::handleDragAndDrop(), LLGroupDropTarget::handleDragAndDrop(), LLDropTarget::handleDragAndDrop(), LLToolDragAndDrop::handleDropTextureProtections(), LLAttachObject::handleEvent(), LLPreview::handleHover(), LLFloaterCompileQueue::handleInventory(), init_landmark_menu(), LLInventoryFetchDescendentsObserver::isComplete(), LLToolDragAndDrop::isInventoryGiveAcceptable(), LLToolDragAndDrop::isInventoryGroupGiveAcceptable(), LLFolderBridge::isItemRemovable(), LLLiveLSLEditor::loadAsset(), LLPreviewLSL::loadAsset(), LLPreviewNotecard::loadAsset(), LLPanelEstateCovenant::loadInvItem(), LLInventoryModel::loadSkeleton(), LLAgent::makeNewOutfit(), LLPreview::onBtnCopyToInv(), LLPreview::onCommit(), LLFloaterLandmark::onSelectionChange(), open_landmark(), open_notecard(), LLViewerTextEditor::openEmbeddedLandmark(), LLWearableBridge::openItem(), LLGiveable::operator()(), LLDropCopyableItems::operator()(), LLUncopyableItems::operator()(), LLDroppableItem::operator()(), LLIsNotWorn::operator()(), LLCanCache::operator()(), InventoryIDPtrLess::operator()(), LLFolderBridge::pasteFromClipboard(), LLObjectBridge::performAction(), remove_inventory_category_from_avatar(), LLInvFVBridge::removeBatch(), LLInvFVBridge::removeBatchNoCheck(), LLFolderBridge::removeItem(), LLObjectBridge::renameItem(), rez_attachment(), LLViewerObject::saveScript(), LLAgent::saveWearableAs(), send_group_notice(), LLTracker::setLandmarkVisited(), LLAgent::setWearable(), LLAgent::setWearableFinal(), LLTaskCategoryBridge::startDrag(), LLTaskInvFVBridge::startDrag(), LLInvFVBridge::startDrag(), LLInventoryModel::updateCategory(), LLViewerObject::updateInventory(), LLInventoryModel::updateItem(), wear_inventory_category(), wear_inventory_category_on_avatar(), wear_inventory_category_on_avatar_step2(), wear_inventory_item_on_avatar(), LLWearableBridge::wearOnAvatar(), and LLToolDragAndDrop::willObjectAcceptInventory().
const LLUUID & LLInventoryObject::getParentUUID | ( | ) | const |
Definition at line 115 of file llinventory.cpp.
References mParentUUID.
Referenced by LLInventoryModel::appendPath(), LLInventoryPanel::buildNewViews(), LLInventoryModel::buildParentChildMap(), LLInvFVBridge::changeCategoryParent(), LLInvFVBridge::changeItemParent(), LLAgent::copyWearableToInventory(), LLPanelInventory::createViewsForCategory(), LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::dragItemIntoFolder(), LLToolDragAndDrop::dropObject(), LLInventoryFetchComboObserver::fetch(), LLInventoryModel::isObjectDescendentOf(), LLAgent::makeNewOutfit(), LLInventoryModel::messageUpdateCore(), LLInventoryPanel::modelChanged(), LLInventoryModel::moveObject(), LLFloaterLandmark::onBtnDelete(), LLPreview::onDiscardBtn(), LLCanCache::operator()(), LLItemBridge::performAction(), process_logout_reply(), LLInventoryModel::processBulkUpdateInventory(), LLInventoryModel::processMoveInventoryItem(), LLInventoryModel::processRemoveInventoryFolder(), LLInventoryModel::processRemoveInventoryItem(), LLInventoryModel::processSaveAssetIntoInventory(), LLInventoryModel::processUpdateInventoryFolder(), LLInvFVBridge::removeBatchNoCheck(), LLAgent::saveWearableAs(), LLTracker::setLandmarkVisited(), LLInventoryModel::updateCategory(), LLInventoryModel::updateItem(), and LLToolDragAndDrop::willObjectAcceptInventory().
const LLString & LLInventoryObject::getName | ( | ) | const |
Definition at line 120 of file llinventory.cpp.
References mName.
Referenced by LLInventoryModel::accountForUpdate(), LLPreviewGesture::addAnimations(), LLPreviewGesture::addSounds(), LLInventoryModel::appendPath(), attach_label(), LLEmbeddedItems::bindEmbeddedChars(), LLFloaterClothing::buildClothingList(), LLItemBridge::buildDisplayName(), LLFloaterGesture::buildGestureList(), LLFloaterWorldMap::buildLandmarkIDLists(), LLInventoryModel::buildParentChildMap(), LLToolDragAndDrop::commitGiveInventoryCategory(), LLToolDragAndDrop::commitGiveInventoryItem(), confirm_replace_attachment_rez(), container_inventory_arrived(), LLPanelInventory::createFolderViews(), LLPanelInventory::createViewsForCategory(), LLWearableList::createWearableMatchedToInventoryItem(), LLGestureManager::deactivateSimilarGestures(), detach_label(), LLPanelPlace::displayItemInfo(), LLDelayedGestureError::doDialog(), LLOutfitObserver::done(), LLInventoryModel::dumpInventory(), LLEmbeddedNotecardOpener::fire(), CreateGestureCallback::fire(), LLTaskInvFVBridge::getDisplayName(), LLViewerTextEditor::getEmbeddedItemToolTipAtPos(), LLPreviewLandmark::getName(), LLInvFVBridge::getName(), LLViewerTextEditor::handleDragAndDrop(), LLPreviewGesture::handleDragAndDrop(), LLBeginIMSession::handleEvent(), LLFloaterNotRunQueue::handleInventory(), LLFloaterRunQueue::handleInventory(), LLFloaterResetQueue::handleInventory(), LLFloaterCompileQueue::handleInventory(), init_landmark_menu(), LLFloaterBuy::inventoryChanged(), LLWearable::isMatchedToInventoryItem(), item_dictionary_sort(), item_name_precedes(), landmark_menu_action(), LLFloaterLandmark::onBtnEdit(), LLFloaterGesture::onClickEdit(), LLFloaterProperties::onCommitName(), LLWearableBridge::onRemoveFromAvatar(), open_offer(), LLViewerTextEditor::openEmbeddedLandmark(), LLViewerTextEditor::openEmbeddedTexture(), LLTaskLSLBridge::openItem(), LLLSLTextBridge::openItem(), LLAnimationBridge::openItem(), LLGestureBridge::openItem(), LLNotecardBridge::openItem(), LLTextureBridge::openItem(), SortItemPtrsByName::operator()(), LLNameCategoryCollector::operator()(), LLInventoryItem::packBinaryBucket(), LLWearableBridge::performAction(), LLAnimationBridge::performAction(), LLCallingCardBridge::performAction(), LLLandmarkBridge::performAction(), LLPreview::refreshFromItem(), LLFloaterProperties::refreshFromItem(), remove_inventory_category_from_avatar(), LLObjectBridge::renameItem(), LLFolderBridge::renameItem(), LLItemBridge::renameItem(), LLViewerObject::saveScript(), LLInventoryModel::updateCategory(), LLViewerObject::updateInventory(), LLInventoryModel::updateItem(), LLUpdateAgentInventoryResponder::uploadComplete(), wear_inventory_category(), wear_inventory_category_on_avatar(), wear_inventory_category_on_avatar_step2(), and wear_inventory_item_on_avatar().
LLAssetType::EType LLInventoryObject::getType | ( | ) | const |
Definition at line 125 of file llinventory.cpp.
References mType.
Referenced by LLEmbeddedItems::bindEmbeddedChars(), LLFloaterClothing::buildClothingList(), LLWearableBridge::buildContextMenu(), LLInventoryPanel::buildNewViews(), LLTaskInvFVBridge::buyItem(), LLToolDragAndDrop::commitGiveInventoryCategory(), LLToolDragAndDrop::commitGiveInventoryItem(), container_inventory_arrived(), copy_inventory_from_notecard(), LLPanelInventory::createViewsForCategory(), LLViewerObject::doUpdateInventory(), LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::dragItemIntoFolder(), LLViewerObject::getInventoryItemByAsset(), LLItemBridge::getLabelSuffix(), LLPreview::handleHover(), LLFloaterCompileQueue::handleInventory(), LLFloaterBuyContents::inventoryChanged(), LLFloaterBuy::inventoryChanged(), LLToolDragAndDrop::isInventoryGiveAcceptable(), LLToolDragAndDrop::isInventoryGroupGiveAcceptable(), LLFolderBridge::isItemRemovable(), LLLiveLSLEditor::loadAsset(), LLPreviewLSL::loadAsset(), LLPreviewNotecard::loadAsset(), LLPanelEstateCovenant::loadInvItem(), LLPreview::onCommit(), LLFloaterProperties::onCommitPermissions(), LLWearableBridge::onRemoveFromAvatar(), LLViewerTextEditor::openEmbeddedItem(), LLGiveable::operator()(), LLDropCopyableItems::operator()(), LLUncopyableItems::operator()(), LLDroppableItem::operator()(), LLParticularBuddyCollector::operator()(), LLUniqueBuddyCollector::operator()(), LLBuddyCollector::operator()(), LLIsTypeWithPermissions::operator()(), LLIsNotType::operator()(), LLIsType::operator()(), LLFindWearables::operator()(), LLIsClothing::operator()(), SetNotForSale::operator()(), SetItemOwnerAndGroup::operator()(), LLInventoryItem::packBinaryBucket(), LLWearableBridge::performAction(), LLFloaterProperties::refreshFromItem(), LLInvFVBridge::removeBatch(), LLFolderBridge::removeItem(), LLFolderBridge::restoreItem(), LLItemBridge::restoreItem(), LLViewerObject::saveScript(), LLTaskCategoryBridge::startDrag(), LLTaskInvFVBridge::startDrag(), LLInvFVBridge::startDrag(), LLViewerObject::updateInventory(), LLInventoryModel::updateItem(), wear_inventory_item_on_avatar(), and LLToolDragAndDrop::willObjectAcceptInventory().
void LLInventoryObject::setUUID | ( | const LLUUID & | new_uuid | ) |
Definition at line 130 of file llinventory.cpp.
References mUUID.
Referenced by LLInventoryItem::unpackBinaryBucket().
void LLInventoryObject::rename | ( | const LLString & | new_name | ) |
Definition at line 135 of file llinventory.cpp.
References DB_INV_ITEM_NAME_STR_LEN, mName, LLStringBase< char >::replaceChar(), LLStringBase< char >::replaceNonstandardASCII(), LLStringBase< char >::trim(), and LLStringBase< char >::truncate().
Referenced by LLInventoryItem::unpackBinaryBucket().
void LLInventoryObject::setParent | ( | const LLUUID & | new_parent | ) |
Definition at line 149 of file llinventory.cpp.
References mParentUUID.
Referenced by LLInventoryModel::buildParentChildMap(), LLToolDragAndDrop::dropObject(), and LLInventoryModel::moveObject().
void LLInventoryObject::setType | ( | LLAssetType::EType | type | ) |
Definition at line 154 of file llinventory.cpp.
References mType.
Referenced by LLInventoryItem::unpackBinaryBucket().
Reimplemented in LLInventoryItem, and LLInventoryCategory.
Definition at line 220 of file llinventory.cpp.
References LLAssetType::lookup(), mName, mParentUUID, mType, mUUID, LLUUID::toString(), TRUE, and UUID_STR_LENGTH.
BOOL LLInventoryObject::importLegacyStream | ( | std::istream & | input_stream | ) | [virtual] |
Reimplemented in LLInventoryItem, LLInventoryCategory, and LLViewerInventoryItem.
Definition at line 161 of file llinventory.cpp.
References DB_INV_ITEM_NAME_STR_LEN, llendl, llwarns, LLAssetType::lookup(), MAX_STRING, mName, mParentUUID, mType, mUUID, LLStringBase< char >::replaceChar(), LLStringBase< char >::replaceNonstandardASCII(), LLUUID::set(), LLStringBase< char >::trim(), TRUE, and LLStringBase< char >::truncate().
BOOL LLInventoryObject::exportLegacyStream | ( | std::ostream & | output_stream, | |
BOOL | include_asset_key = TRUE | |||
) | const [virtual] |
Reimplemented in LLInventoryItem, and LLInventoryCategory.
Definition at line 234 of file llinventory.cpp.
References LLAssetType::lookup(), mName, mParentUUID, mType, mUUID, LLUUID::toString(), TRUE, and UUID_STR_LENGTH.
void LLInventoryObject::removeFromServer | ( | void | ) | [virtual] |
Reimplemented in LLViewerInventoryItem, and LLViewerInventoryCategory.
Definition at line 249 of file llinventory.cpp.
References llendl, and llwarns.
Referenced by LLFolderBridge::performAction(), and LLItemBridge::performAction().
void LLInventoryObject::updateParentOnServer | ( | BOOL | ) | const [virtual] |
Reimplemented in LLViewerInventoryItem, and LLViewerInventoryCategory.
Definition at line 255 of file llinventory.cpp.
References llendl, and llwarns.
Referenced by LLDiscardAgentOffer::done().
void LLInventoryObject::updateServer | ( | BOOL | ) | const [virtual] |
Reimplemented in LLViewerInventoryItem, and LLViewerInventoryCategory.
Definition at line 261 of file llinventory.cpp.
LLUUID LLInventoryObject::mUUID [protected] |
Definition at line 75 of file llinventory.h.
Referenced by LLInventoryCategory::asLLSD(), LLInventoryItem::asLLSD(), copyObject(), LLInventoryCategory::exportFile(), LLInventoryItem::exportFile(), exportFile(), LLViewerInventoryCategory::exportFileLocal(), LLViewerInventoryItem::exportFileLocal(), LLInventoryItem::exportFileXML(), LLInventoryCategory::exportLegacyStream(), LLInventoryItem::exportLegacyStream(), exportLegacyStream(), LLViewerInventoryCategory::fetchDescendents(), LLViewerInventoryItem::fetchFromServer(), LLInventoryCategory::fromLLSD(), LLInventoryItem::fromLLSD(), LLInventoryItem::getCRC32(), getUUID(), LLInventoryCategory::importFile(), LLInventoryItem::importFile(), LLViewerInventoryCategory::importFileLocal(), LLInventoryCategory::importLegacyStream(), LLInventoryItem::importLegacyStream(), importLegacyStream(), LLInventoryItem::importXML(), LLViewerInventoryItem::LLViewerInventoryItem(), LLViewerInventoryItem::packMessage(), LLInventoryCategory::packMessage(), LLInventoryItem::packMessage(), LLViewerInventoryCategory::removeFromServer(), LLViewerInventoryItem::removeFromServer(), setUUID(), LLInventoryCategory::unpackMessage(), LLInventoryItem::unpackMessage(), LLViewerInventoryCategory::updateParentOnServer(), and LLViewerInventoryItem::updateParentOnServer().
LLUUID LLInventoryObject::mParentUUID [protected] |
Definition at line 76 of file llinventory.h.
Referenced by LLInventoryCategory::asLLSD(), LLInventoryItem::asLLSD(), copyObject(), LLInventoryCategory::exportFile(), LLInventoryItem::exportFile(), exportFile(), LLViewerInventoryCategory::exportFileLocal(), LLViewerInventoryItem::exportFileLocal(), LLInventoryItem::exportFileXML(), LLInventoryCategory::exportLegacyStream(), LLInventoryItem::exportLegacyStream(), exportLegacyStream(), LLInventoryCategory::fromLLSD(), LLInventoryItem::fromLLSD(), LLInventoryItem::getCRC32(), getParentUUID(), LLInventoryCategory::importFile(), LLInventoryItem::importFile(), LLViewerInventoryCategory::importFileLocal(), LLInventoryCategory::importLegacyStream(), LLInventoryItem::importLegacyStream(), importLegacyStream(), LLInventoryItem::importXML(), LLViewerInventoryItem::LLViewerInventoryItem(), LLViewerInventoryItem::packMessage(), LLInventoryCategory::packMessage(), LLInventoryItem::packMessage(), LLViewerInventoryCategory::removeFromServer(), LLViewerInventoryItem::removeFromServer(), setParent(), LLInventoryCategory::unpackMessage(), LLInventoryItem::unpackMessage(), LLViewerInventoryCategory::updateParentOnServer(), LLViewerInventoryItem::updateParentOnServer(), LLViewerInventoryCategory::updateServer(), and LLViewerInventoryItem::updateServer().
LLAssetType::EType LLInventoryObject::mType [protected] |
Definition at line 77 of file llinventory.h.
Referenced by LLInventoryItem::asLLSD(), copyObject(), LLInventoryCategory::exportFile(), LLInventoryItem::exportFile(), exportFile(), LLViewerInventoryCategory::exportFileLocal(), LLViewerInventoryItem::exportFileLocal(), LLInventoryItem::exportFileXML(), LLInventoryCategory::exportLegacyStream(), LLInventoryItem::exportLegacyStream(), exportLegacyStream(), LLInventoryItem::fromLLSD(), LLInventoryItem::getCRC32(), getType(), LLInventoryCategory::importFile(), LLInventoryItem::importFile(), LLViewerInventoryCategory::importFileLocal(), LLInventoryCategory::importLegacyStream(), LLInventoryItem::importLegacyStream(), importLegacyStream(), LLInventoryItem::importXML(), LLInventoryCategory::LLInventoryCategory(), LLViewerInventoryItem::packMessage(), LLInventoryItem::packMessage(), setType(), and LLInventoryItem::unpackMessage().
LLString LLInventoryObject::mName [protected] |
Definition at line 78 of file llinventory.h.
Referenced by LLInventoryCategory::asLLSD(), LLInventoryItem::asLLSD(), copyObject(), LLInventoryCategory::exportFile(), LLInventoryItem::exportFile(), exportFile(), LLViewerInventoryCategory::exportFileLocal(), LLViewerInventoryItem::exportFileLocal(), LLInventoryItem::exportFileXML(), LLInventoryCategory::exportLegacyStream(), LLInventoryItem::exportLegacyStream(), exportLegacyStream(), LLInventoryCategory::fromLLSD(), LLInventoryItem::fromLLSD(), getName(), LLInventoryCategory::importFile(), LLInventoryItem::importFile(), LLViewerInventoryCategory::importFileLocal(), LLInventoryCategory::importLegacyStream(), LLInventoryItem::importLegacyStream(), importLegacyStream(), LLInventoryItem::importXML(), LLInventoryObject(), LLViewerInventoryItem::LLViewerInventoryItem(), LLViewerInventoryItem::packMessage(), LLInventoryCategory::packMessage(), LLInventoryItem::packMessage(), rename(), LLInventoryCategory::unpackMessage(), and LLInventoryItem::unpackMessage().