#include <llinventory.h>
Definition at line 123 of file llinventory.h.
anonymous enum |
Anonymous enumeration for specifying the inventory item flags.
Definition at line 142 of file llinventory.h.
LLInventoryItem::~LLInventoryItem | ( | ) | [protected] |
Definition at line 315 of file llinventory.cpp.
LLInventoryItem::LLInventoryItem | ( | const LLUUID & | uuid, | |
const LLUUID & | parent_uuid, | |||
const LLPermissions & | permissions, | |||
const LLUUID & | asset_uuid, | |||
LLAssetType::EType | type, | |||
LLInventoryType::EType | inv_type, | |||
const LLString & | name, | |||
const LLString & | desc, | |||
const LLSaleInfo & | sale_info, | |||
U32 | flags, | |||
S32 | creation_date_utc | |||
) |
---------------------------------------------------------------------------- Class LLInventoryItem ----------------------------------------------------------------------------
Definition at line 272 of file llinventory.cpp.
References mDescription, LLStringBase< char >::replaceChar(), and LLStringBase< char >::replaceNonstandardASCII().
LLInventoryItem::LLInventoryItem | ( | ) |
Definition at line 297 of file llinventory.cpp.
LLInventoryItem::LLInventoryItem | ( | const LLInventoryItem * | other | ) |
Definition at line 309 of file llinventory.cpp.
References copyItem().
LLInventoryItem::MEM_TYPE_NEW | ( | LLMemType::MTYPE_INVENTORY | ) |
Reimplemented from LLInventoryObject.
void LLInventoryItem::copyItem | ( | const LLInventoryItem * | other | ) | [virtual] |
Reimplemented in LLViewerInventoryItem.
Definition at line 320 of file llinventory.cpp.
References LLInventoryObject::copyObject(), mAssetUUID, mCreationDate, mDescription, mFlags, mInventoryType, mPermissions, and mSaleInfo.
Referenced by LLViewerInventoryItem::copyItem(), LLViewerInventoryItem::copyViewerItem(), and LLInventoryItem().
void LLInventoryItem::cloneItem | ( | LLPointer< LLInventoryItem > & | newitem | ) | const [virtual] |
Definition at line 334 of file llinventory.cpp.
const LLPermissions & LLInventoryItem::getPermissions | ( | ) | const |
Definition at line 341 of file llinventory.cpp.
References mPermissions.
Referenced by LLTextureCtrl::allowDrop(), LLTaskSoundBridge::buildContextMenu(), LLTaskInvFVBridge::buildContextMenu(), LLTaskInvFVBridge::buyItem(), LLVOAvatar::canGrabLocalTexture(), confirm_replace_attachment_rez(), container_inventory_arrived(), LLAgent::copyWearableToInventory(), LLWearableList::createWearableMatchedToInventoryItem(), LLToolDragAndDrop::dad3dActivateGesture(), LLToolDragAndDrop::dad3dGiveInventoryObject(), LLToolDragAndDrop::dad3dRezAttachmentFromInv(), LLToolDragAndDrop::dad3dRezFromObjectOnLand(), LLToolDragAndDrop::dad3dRezFromObjectOnObject(), LLToolDragAndDrop::dad3dRezObjectOnLand(), LLToolDragAndDrop::dad3dRezObjectOnObject(), LLToolDragAndDrop::dad3dTextureObject(), LLToolDragAndDrop::dad3dWearItem(), LLOutfitObserver::done(), LLViewerObject::doUpdateInventory(), LLFolderBridge::dragItemIntoFolder(), LLCallingCardBridge::dragOrDrop(), LLPanelEditWearable::draw(), LLToolDragAndDrop::dropInventory(), LLToolDragAndDrop::dropObject(), LLToolDragAndDrop::dropScript(), LLInventoryFetchComboObserver::fetch(), LLInventoryFetchObserver::fetchItems(), LLFloaterTexturePicker::findItemID(), LLFloaterLandmark::findItemID(), LLTaskInvFVBridge::getDisplayName(), LLItemBridge::getLabelSuffix(), LLItemBridge::getPermissionMask(), LLAgent::getWearablePermMask(), LLToolDragAndDrop::giveInventory(), LLViewerTextEditor::handleDragAndDrop(), LLFloaterTexturePicker::handleDragAndDrop(), LLPreviewGesture::handleDragAndDrop(), LLFloaterLandmark::handleDragAndDrop(), LLToolDragAndDrop::handleDropTextureProtections(), LLAttachObject::handleEvent(), LLPreview::handleHover(), LLFloaterCompileQueue::handleInventory(), LLFloaterBuyContents::inventoryChanged(), LLFloaterBuy::inventoryChanged(), LLToolDragAndDrop::isInventoryGiveAcceptable(), LLToolDragAndDrop::isInventoryGroupGiveAcceptable(), LLTaskInvFVBridge::isItemCopyable(), LLItemBridge::isItemCopyable(), LLItemBridge::isItemPermissive(), LLTaskInvFVBridge::isItemRenameable(), LLItemBridge::isItemRenameable(), LLWearable::isMatchedToInventoryItem(), LLAgent::isWearableCopyable(), LLAgent::isWearableModifiable(), LLPreviewTexture::LLPreviewTexture(), LLLiveLSLEditor::loadAsset(), LLPreviewLSL::loadAsset(), LLPreviewNotecard::loadAsset(), LLPanelEstateCovenant::loadInvItem(), LLAgent::makeNewOutfit(), LLViewerObject::moveInventory(), LLPreview::onBtnCopyToInv(), LLPanelEditWearable::onBtnRandomize(), LLFloaterProperties::onClickOwner(), LLPreview::onCommit(), LLFloaterProperties::onCommitDescription(), LLFloaterProperties::onCommitName(), LLFloaterProperties::onCommitPermissions(), LLPreviewLSL::onLoadComplete(), LLPreviewNotecard::onLoadComplete(), LLFloaterTexturePicker::onSelectionChange(), LLFloaterLandmark::onSelectionChange(), LLFloaterTexturePicker::onTextureSelect(), LLWearableBridge::openItem(), LLGiveable::operator()(), LLDropCopyableItems::operator()(), LLUncopyableItems::operator()(), LLDroppableItem::operator()(), LLIsTypeWithPermissions::operator()(), SetNotForSale::operator()(), SetItemOwnerAndGroup::operator()(), IsItemTransferable::operator()(), packBinaryBucket(), LLFolderBridge::pasteFromClipboard(), LLObjectBridge::performAction(), LLPreviewGesture::refresh(), LLPreview::refreshFromItem(), LLFloaterProperties::refreshFromItem(), LLTaskInvFVBridge::renameItem(), LLViewerObject::saveScript(), LLAgent::saveWearableAs(), LLSelectMgr::selectionSetImage(), send_group_notice(), LLFloaterTexturePicker::setImageID(), LLPanelEditWearable::setSubpart(), LLAgent::setWearableName(), LLTaskCategoryBridge::startDrag(), LLTaskInvFVBridge::startDrag(), LLViewerObject::updateInventory(), LLFloaterCustomize::updateInventoryUI(), LLFloaterProperties::updateSaleInfo(), LLFloaterCustomize::updateScrollingPanelUI(), wear_inventory_category_on_avatar_step2(), LLWearableBridge::wearOnAvatar(), LLToolDragAndDrop::willObjectAcceptInventory(), and LLWearable::writeToAvatar().
const LLUUID & LLInventoryItem::getCreatorUUID | ( | ) | const |
Definition at line 346 of file llinventory.cpp.
References LLPermissions::getCreator(), and mPermissions.
Referenced by LLCallingCardBridge::buildContextMenu(), LLFloaterAvatarPicker::doSelectionChange(), LLCallingCardBridge::dragOrDrop(), LLFloaterIMPanel::dropCallingCard(), LLCallingCardBridge::getIcon(), LLCallingCardBridge::getLabelSuffix(), LLNameListCtrl::handleDragAndDrop(), LLBeginIMSession::handleEvent(), LLFloaterProperties::onClickCreator(), LLCallingCardBridge::openItem(), LLParticularBuddyCollector::operator()(), LLUniqueBuddyCollector::operator()(), LLBuddyCollector::operator()(), LLCallingCardBridge::performAction(), and LLFloaterProperties::refreshFromItem().
const LLUUID & LLInventoryItem::getAssetUUID | ( | ) | const |
Definition at line 351 of file llinventory.cpp.
References mAssetUUID.
Referenced by LLGestureManager::activateGesture(), LLGestureManager::activateGestures(), LLPreviewGesture::addAnimations(), LLPreviewGesture::addSounds(), LLPreviewAnim::auditionAnim(), LLPreviewSound::auditionSound(), LLFloaterWorldMap::buildLandmarkIDLists(), container_inventory_arrived(), LLTextureCtrl::doDrop(), LLViewerGesture::doTrigger(), LLViewerObject::doUpdateInventory(), LLPreviewLandmark::draw(), LLToolDragAndDrop::dropTextureAllFaces(), LLToolDragAndDrop::dropTextureOneFace(), LLEmbeddedNotecardOpener::fire(), LLPreviewLandmark::getAssetStatus(), LLViewerObject::getInventoryItemByAsset(), LLFloaterTexturePicker::handleDragAndDrop(), LLPreviewGesture::handleDragAndDrop(), LLToolDragAndDrop::handleDropTextureProtections(), LLFloaterCompileQueue::handleInventory(), LLPreviewAnim::LLPreviewAnim(), LLPreviewNotecard::LLPreviewNotecard(), LLPreviewSound::LLPreviewSound(), LLPreviewTexture::LLPreviewTexture(), LLLiveLSLEditor::loadAsset(), LLPreviewLSL::loadAsset(), LLPreviewNotecard::loadAsset(), LLPreviewLandmark::loadAsset(), LLPreviewGesture::loadAsset(), LLPanelEstateCovenant::loadInvItem(), LLPreviewAnim::onClose(), LLPanelObject::onDropSculpt(), LLFloaterWorldMap::onLandmarkComboCommit(), LLWearableBridge::onRemoveFromAvatar(), LLFloaterTexturePicker::onSelectionChange(), LLWearableBridge::onWearOnAvatarArrived(), open_notecard(), LLViewerTextEditor::openEmbeddedSound(), LLViewerTextEditor::openEmbeddedTexture(), LLLandmarkBridge::openItem(), LLHasAsset::operator()(), LLAssetIDMatches::operator()(), packBinaryBucket(), LLTaskSoundBridge::performAction(), LLWearableBridge::performAction(), LLLandmarkBridge::performAction(), LLItemBridge::performAction(), LLPreviewAnim::playAnim(), LLPreviewSound::playSound(), LLSoundBridge::previewItem(), LLViewerObject::saveScript(), LLAgent::setWearableFinal(), LLViewerObject::updateInventory(), wear_inventory_category_on_avatar_step3(), and wear_inventory_item_on_avatar().
const LLString & LLInventoryItem::getDescription | ( | ) | const |
Definition at line 362 of file llinventory.cpp.
References mDescription.
Referenced by confirm_replace_attachment_rez(), container_inventory_arrived(), LLWearableList::createWearableMatchedToInventoryItem(), LLPanelPlace::displayItemInfo(), LLViewerTextEditor::getEmbeddedItemToolTipAtPos(), LLPreviewTexture::init(), LLWearable::isMatchedToInventoryItem(), LLPreviewAnim::LLPreviewAnim(), LLPreviewLSL::LLPreviewLSL(), LLPreviewNotecard::LLPreviewNotecard(), LLPreviewSound::LLPreviewSound(), LLFloaterProperties::onCommitDescription(), packBinaryBucket(), LLPreviewGesture::postBuild(), LLPreview::refreshFromItem(), LLFloaterProperties::refreshFromItem(), LLViewerObject::saveScript(), LLViewerObject::updateInventory(), and wear_inventory_category_on_avatar_step2().
const LLSaleInfo & LLInventoryItem::getSaleInfo | ( | ) | const |
Definition at line 431 of file llinventory.cpp.
References mSaleInfo.
Referenced by LLTaskSoundBridge::buildContextMenu(), LLTaskInvFVBridge::buildContextMenu(), LLTaskInvFVBridge::buyItem(), LLWearableList::createWearableMatchedToInventoryItem(), LLTaskInvFVBridge::getPrice(), LLWearable::isMatchedToInventoryItem(), packBinaryBucket(), LLFloaterProperties::refreshFromItem(), LLViewerObject::saveScript(), LLViewerObject::updateInventory(), and LLFloaterProperties::updateSaleInfo().
LLInventoryType::EType LLInventoryItem::getInventoryType | ( | ) | const |
Definition at line 441 of file llinventory.cpp.
References mInventoryType.
Referenced by LLEmbeddedItems::bindEmbeddedChars(), LLFloaterClothing::buildClothingList(), LLInventoryPanel::buildNewViews(), container_inventory_arrived(), LLTaskInvFVBridge::createObjectBridge(), LLOutfitObserver::done(), LLFloaterBuyContents::inventoryChanged(), LLFloaterBuy::inventoryChanged(), packBinaryBucket(), LLViewerObject::saveScript(), and LLViewerObject::updateInventory().
U32 LLInventoryItem::getFlags | ( | ) | const |
Definition at line 446 of file llinventory.cpp.
References mFlags.
Referenced by LLEmbeddedItems::bindEmbeddedChars(), LLFloaterClothing::buildClothingList(), LLInventoryPanel::buildNewViews(), LLTracker::cacheLandmarkPosition(), confirm_replace_attachment_rez(), container_inventory_arrived(), LLTaskInvFVBridge::createObjectBridge(), LLToolDragAndDrop::dropObject(), LLFloaterBuyContents::inventoryChanged(), LLFloaterBuy::inventoryChanged(), LLFloaterClothing::onClickTakeOff(), LLFloaterClothing::onCommitList(), LLIsClothing::operator()(), SetNotForSale::operator()(), packBinaryBucket(), LLFloaterProperties::refreshFromItem(), LLViewerObject::saveScript(), LLTracker::setLandmarkVisited(), LLViewerObject::updateInventory(), and wear_inventory_category_on_avatar_step2().
S32 LLInventoryItem::getCreationDate | ( | ) | const |
Definition at line 367 of file llinventory.cpp.
References mCreationDate.
Referenced by LLItemBridge::getCreationDate(), item_date_sort(), LLFloaterProperties::refreshFromItem(), LLViewerObject::saveScript(), and LLViewerObject::updateInventory().
U32 LLInventoryItem::getCRC32 | ( | ) | const |
Definition at line 372 of file llinventory.cpp.
References LLSaleInfo::getCRC32(), LLPermissions::getCRC32(), LLUUID::getCRC32(), mAssetUUID, mCreationDate, mFlags, mInventoryType, LLInventoryObject::mParentUUID, mPermissions, mSaleInfo, LLInventoryObject::mType, and LLInventoryObject::mUUID.
Referenced by LLViewerInventoryItem::packMessage(), packMessage(), and unpackMessage().
void LLInventoryItem::setAssetUUID | ( | const LLUUID & | asset_id | ) |
Definition at line 356 of file llinventory.cpp.
References mAssetUUID.
Referenced by LLAgent::addWearabletoAgentInventoryDone(), LLPreviewNotecard::onSaveComplete(), LLPreviewGesture::onSaveComplete(), and unpackBinaryBucket().
void LLInventoryItem::setDescription | ( | const LLString & | new_desc | ) |
Definition at line 399 of file llinventory.cpp.
References mDescription, LLStringBase< char >::replaceChar(), and LLStringBase< char >::replaceNonstandardASCII().
Referenced by LLPreviewGesture::onSaveComplete(), and unpackBinaryBucket().
void LLInventoryItem::setSaleInfo | ( | const LLSaleInfo & | sale_info | ) |
Definition at line 436 of file llinventory.cpp.
References mSaleInfo.
Referenced by SetNotForSale::operator()(), and unpackBinaryBucket().
void LLInventoryItem::setPermissions | ( | const LLPermissions & | perm | ) |
Definition at line 410 of file llinventory.cpp.
References mPermissions.
Referenced by LLViewerObject::doUpdateInventory(), SetNotForSale::operator()(), SetItemOwnerAndGroup::operator()(), and unpackBinaryBucket().
void LLInventoryItem::setInventoryType | ( | LLInventoryType::EType | inv_type | ) |
Definition at line 415 of file llinventory.cpp.
References mInventoryType.
Referenced by unpackBinaryBucket().
void LLInventoryItem::setFlags | ( | U32 | flags | ) |
Definition at line 420 of file llinventory.cpp.
References mFlags.
Referenced by SetNotForSale::operator()(), LLTracker::setLandmarkVisited(), and unpackBinaryBucket().
void LLInventoryItem::setCreationDate | ( | S32 | creation_date_utc | ) |
Definition at line 425 of file llinventory.cpp.
References mCreationDate.
Referenced by unpackBinaryBucket().
void LLInventoryItem::packMessage | ( | LLMessageSystem * | msg | ) | const [virtual] |
Reimplemented in LLViewerInventoryItem.
Definition at line 452 of file llinventory.cpp.
References _PREHASH_AssetID, _PREHASH_CRC, _PREHASH_CreationDate, _PREHASH_Description, _PREHASH_Flags, _PREHASH_FolderID, _PREHASH_InvType, _PREHASH_ItemID, _PREHASH_Name, _PREHASH_Type, LLMessageSystem::addS32Fast(), LLMessageSystem::addS8Fast(), LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), getCRC32(), mAssetUUID, mCreationDate, mDescription, mFlags, mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPermissions, mSaleInfo, LLInventoryObject::mType, LLInventoryObject::mUUID, LLSaleInfo::packMessage(), and LLPermissions::packMessage().
BOOL LLInventoryItem::unpackMessage | ( | LLMessageSystem * | msg, | |
const char * | block, | |||
S32 | block_num = 0 | |||
) | [virtual] |
Reimplemented in LLViewerInventoryItem.
Definition at line 472 of file llinventory.cpp.
References _PREHASH_AssetID, _PREHASH_Description, _PREHASH_Flags, _PREHASH_FolderID, _PREHASH_ItemID, _PREHASH_Name, _PREHASH_Type, DB_INV_ITEM_DESC_BUF_SIZE, DB_INV_ITEM_NAME_BUF_SIZE, FALSE, getCRC32(), LLMessageSystem::getS32(), LLMessageSystem::getS8(), LLMessageSystem::getS8Fast(), LLMessageSystem::getStringFast(), LLMessageSystem::getU32(), LLMessageSystem::getU32Fast(), LLMessageSystem::getUUIDFast(), lldebugs, llendl, llwarns, mAssetUUID, mCreationDate, mDescription, mFlags, mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPermissions, mSaleInfo, LLInventoryObject::mType, LLInventoryObject::mUUID, LLStringBase< char >::replaceNonstandardASCII(), TRUE, LLPermissions::unpackMessage(), and LLSaleInfo::unpackMultiMessage().
Referenced by LLViewerInventoryItem::unpackMessage().
Reimplemented in LLViewerInventoryItem.
Definition at line 523 of file llinventory.cpp.
References LLXORCipher::decrypt(), LLInventoryType::defaultForAssetType(), FALSE, LLPermissions::getMaskOwner(), LLSaleInfo::importFile(), LLPermissions::importFile(), inventory_and_asset_types_match(), LLInventoryType::IT_NONE, lldebugs, llendl, llwarns, LLInventoryType::lookup(), LLAssetType::lookup(), MAGIC_ID, mAssetUUID, MAX_STRING, mCreationDate, LLUUID::mData, mDescription, mFlags, mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPermissions, mSaleInfo, LLInventoryObject::mType, LLInventoryObject::mUUID, NULL, PERM_COPY, PERM_NONE, PERM_TRANSFER, LLStringBase< char >::replaceChar(), LLStringBase< char >::replaceNonstandardASCII(), LLUUID::set(), LLPermissions::setMaskNext(), LLUUID::setNull(), TRUE, and UUID_BYTES.
Referenced by LLViewerInventoryItem::importFile(), and LLViewerInventoryItem::importFileLocal().
Reimplemented from LLInventoryObject.
Definition at line 677 of file llinventory.cpp.
References LLXORCipher::encrypt(), LLSaleInfo::exportFile(), LLPermissions::exportFile(), LLPermissions::getMaskBase(), LLUUID::isNull(), LLInventoryType::lookup(), LLAssetType::lookup(), MAGIC_ID, mAssetUUID, mCreationDate, LLUUID::mData, mDescription, mFlags, mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPermissions, mSaleInfo, LLInventoryObject::mType, LLInventoryObject::mUUID, LLUUID::null, PERM_ITEM_UNRESTRICTED, LLUUID::toString(), TRUE, UUID_BYTES, and UUID_STR_LENGTH.
BOOL LLInventoryItem::importLegacyStream | ( | std::istream & | input_stream | ) | [virtual] |
Reimplemented from LLInventoryObject.
Reimplemented in LLViewerInventoryItem.
Definition at line 725 of file llinventory.cpp.
References LLXORCipher::decrypt(), LLInventoryType::defaultForAssetType(), FALSE, LLPermissions::getMaskOwner(), LLSaleInfo::importLegacyStream(), LLPermissions::importLegacyStream(), inventory_and_asset_types_match(), LLInventoryType::IT_NONE, lldebugs, llendl, llwarns, LLInventoryType::lookup(), LLAssetType::lookup(), MAGIC_ID, mAssetUUID, MAX_STRING, mCreationDate, LLUUID::mData, mDescription, mFlags, mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPermissions, mSaleInfo, LLInventoryObject::mType, LLInventoryObject::mUUID, PERM_COPY, PERM_NONE, PERM_TRANSFER, LLStringBase< char >::replaceChar(), LLStringBase< char >::replaceNonstandardASCII(), LLUUID::set(), LLPermissions::setMaskNext(), LLUUID::setNull(), TRUE, and UUID_BYTES.
Referenced by LLViewerInventoryItem::importLegacyStream().
BOOL LLInventoryItem::exportLegacyStream | ( | std::ostream & | output_stream, | |
BOOL | include_asset_key = TRUE | |||
) | const [virtual] |
Reimplemented from LLInventoryObject.
Definition at line 878 of file llinventory.cpp.
References LLXORCipher::encrypt(), LLSaleInfo::exportLegacyStream(), LLPermissions::exportLegacyStream(), LLPermissions::getMaskBase(), LLUUID::isNull(), LLInventoryType::lookup(), LLAssetType::lookup(), MAGIC_ID, mAssetUUID, mCreationDate, LLUUID::mData, mDescription, mFlags, mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPermissions, mSaleInfo, LLInventoryObject::mType, LLInventoryObject::mUUID, LLUUID::null, PERM_ITEM_UNRESTRICTED, LLUUID::toString(), TRUE, UUID_BYTES, and UUID_STR_LENGTH.
Referenced by LLNotecard::exportEmbeddedItemsStream().
Definition at line 1074 of file llinventory.cpp.
References LLXMLNode::createChild(), LLXMLNode::ENCODING_HEX, LLXORCipher::encrypt(), LLSaleInfo::exportFileXML(), LLPermissions::exportFileXML(), FALSE, LLPermissions::getMaskBase(), LLUUID::isNull(), LLInventoryType::lookup(), LLAssetType::lookup(), MAGIC_ID, mAssetUUID, mCreationDate, LLUUID::mData, mDescription, mFlags, mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPermissions, mSaleInfo, LLInventoryObject::mType, LLMemType::MTYPE_INVENTORY, LLInventoryObject::mUUID, PERM_ITEM_UNRESTRICTED, S32, LLXMLNode::setParent(), TRUE, and UUID_BYTES.
Definition at line 1124 of file llinventory.cpp.
References FALSE, LLXMLNode::getChild(), LLXMLNode::getName(), LLSaleInfo::importXML(), LLPermissions::importXML(), lldebugs, llendl, LLInventoryType::lookup(), LLAssetType::lookup(), MAGIC_ID, mAssetUUID, mCreationDate, LLUUID::mData, mDescription, mFlags, mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPermissions, mSaleInfo, LLInventoryObject::mType, LLInventoryObject::mUUID, S32, TRUE, and UUID_BYTES.
S32 LLInventoryItem::packBinaryBucket | ( | U8 * | bin_bucket, | |
LLPermissions * | perm_override = NULL | |||
) | const |
Definition at line 1172 of file llinventory.cpp.
References getAssetUUID(), LLPermissions::getCreator(), getDescription(), getFlags(), LLPermissions::getGroup(), getInventoryType(), LLPermissions::getLastOwner(), LLPermissions::getMaskBase(), LLPermissions::getMaskEveryone(), LLPermissions::getMaskGroup(), LLPermissions::getMaskNextOwner(), LLPermissions::getMaskOwner(), LLInventoryObject::getName(), LLPermissions::getOwner(), getPermissions(), getSaleInfo(), LLSaleInfo::getSalePrice(), LLSaleInfo::getSaleType(), LLInventoryObject::getType(), S32, LLUUID::toString(), and UUID_STR_LENGTH.
Definition at line 1223 of file llinventory.cpp.
References LLUUID::generate(), LLPermissions::init(), LLPermissions::initMasks(), lldebugs, llendl, llerrs, NULL, LLInventoryObject::rename(), S32, setAssetUUID(), setCreationDate(), setDescription(), setFlags(), setInventoryType(), setPermissions(), setSaleInfo(), LLInventoryObject::setType(), and LLInventoryObject::setUUID().
LLSD LLInventoryItem::asLLSD | ( | ) | const |
Definition at line 928 of file llinventory.cpp.
References LLXORCipher::encrypt(), LLPermissions::getMaskBase(), INV_ASSET_ID_LABEL(), INV_ASSET_TYPE_LABEL(), INV_CREATION_DATE_LABEL(), INV_DESC_LABEL(), INV_FLAGS_LABEL(), INV_INVENTORY_TYPE_LABEL(), INV_ITEM_ID_LABEL(), INV_NAME_LABEL(), INV_PARENT_ID_LABEL(), INV_PERMISSIONS_LABEL(), INV_SALE_INFO_LABEL(), INV_SHADOW_ID_LABEL(), LLUUID::isNull(), ll_create_sd_from_permissions(), ll_sd_from_U32(), LLInventoryType::lookup(), LLAssetType::lookup(), MAGIC_ID, mAssetUUID, mCreationDate, LLUUID::mData, mDescription, mFlags, mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPermissions, mSaleInfo, LLInventoryObject::mType, LLInventoryObject::mUUID, PERM_ITEM_UNRESTRICTED, tut::sd(), and UUID_BYTES.
bool LLInventoryItem::fromLLSD | ( | LLSD & | sd | ) |
Definition at line 964 of file llinventory.cpp.
References LLSD::asString(), LLXORCipher::decrypt(), LLInventoryType::defaultForAssetType(), FALSE, LLSaleInfo::fromLLSD(), LLPermissions::getMaskOwner(), LLSD::has(), INV_ASSET_ID_LABEL(), INV_ASSET_TYPE_LABEL(), INV_CREATION_DATE_LABEL(), INV_DESC_LABEL(), INV_FLAGS_LABEL(), INV_INVENTORY_TYPE_LABEL(), INV_ITEM_ID_LABEL(), INV_NAME_LABEL(), INV_PARENT_ID_LABEL(), INV_PERMISSIONS_LABEL(), INV_SALE_INFO_LABEL(), INV_SHADOW_ID_LABEL(), inventory_and_asset_types_match(), LLInventoryType::IT_NONE, ll_permissions_from_sd(), ll_U32_from_sd(), lldebugs, llendl, LLInventoryType::lookup(), LLAssetType::lookup(), MAGIC_ID, mAssetUUID, mCreationDate, LLUUID::mData, mDescription, mFlags, mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPermissions, mSaleInfo, LLInventoryObject::mType, LLInventoryObject::mUUID, PERM_COPY, PERM_NONE, PERM_TRANSFER, LLStringBase< char >::replaceChar(), LLStringBase< char >::replaceNonstandardASCII(), LLPermissions::setMaskNext(), LLUUID::setNull(), and UUID_BYTES.
Referenced by LLViewerInventoryItem::unpackMessage().
LLPermissions LLInventoryItem::mPermissions [protected] |
Definition at line 129 of file llinventory.h.
Referenced by asLLSD(), copyItem(), exportFile(), LLViewerInventoryItem::exportFileLocal(), exportFileXML(), exportLegacyStream(), LLViewerInventoryItem::fetchFromServer(), fromLLSD(), getCRC32(), getCreatorUUID(), getPermissions(), importFile(), importLegacyStream(), importXML(), LLViewerInventoryItem::packMessage(), packMessage(), setPermissions(), unpackMessage(), and LLViewerInventoryItem::updateServer().
LLUUID LLInventoryItem::mAssetUUID [protected] |
Definition at line 130 of file llinventory.h.
Referenced by asLLSD(), copyItem(), exportFile(), exportFileXML(), exportLegacyStream(), fromLLSD(), getAssetUUID(), getCRC32(), importFile(), importLegacyStream(), importXML(), packMessage(), setAssetUUID(), and unpackMessage().
LLString LLInventoryItem::mDescription [protected] |
Definition at line 131 of file llinventory.h.
Referenced by asLLSD(), copyItem(), exportFile(), exportFileXML(), exportLegacyStream(), fromLLSD(), getDescription(), importFile(), importLegacyStream(), importXML(), LLInventoryItem(), LLViewerInventoryItem::packMessage(), packMessage(), setDescription(), and unpackMessage().
LLSaleInfo LLInventoryItem::mSaleInfo [protected] |
Definition at line 132 of file llinventory.h.
Referenced by asLLSD(), copyItem(), exportFile(), exportFileXML(), exportLegacyStream(), fromLLSD(), getCRC32(), getSaleInfo(), importFile(), importLegacyStream(), importXML(), LLViewerInventoryItem::packMessage(), packMessage(), setSaleInfo(), and unpackMessage().
Definition at line 133 of file llinventory.h.
Referenced by asLLSD(), copyItem(), exportFile(), LLViewerInventoryItem::exportFileLocal(), exportFileXML(), exportLegacyStream(), fromLLSD(), getCRC32(), getInventoryType(), importFile(), importLegacyStream(), importXML(), LLViewerInventoryItem::LLViewerInventoryItem(), LLViewerInventoryItem::packMessage(), packMessage(), setInventoryType(), and unpackMessage().
U32 LLInventoryItem::mFlags [protected] |
Definition at line 134 of file llinventory.h.
Referenced by asLLSD(), copyItem(), exportFile(), exportFileXML(), exportLegacyStream(), fromLLSD(), getCRC32(), getFlags(), importFile(), importLegacyStream(), importXML(), LLViewerInventoryItem::packMessage(), packMessage(), setFlags(), and unpackMessage().
S32 LLInventoryItem::mCreationDate [protected] |
Definition at line 135 of file llinventory.h.
Referenced by asLLSD(), copyItem(), exportFile(), LLViewerInventoryItem::exportFileLocal(), exportFileXML(), exportLegacyStream(), fromLLSD(), getCRC32(), getCreationDate(), importFile(), importLegacyStream(), importXML(), LLViewerInventoryItem::packMessage(), packMessage(), setCreationDate(), and unpackMessage().