LLInventoryItem Class Reference

#include <llinventory.h>

Inheritance diagram for LLInventoryItem:

Inheritance graph
[legend]
Collaboration diagram for LLInventoryItem:

Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  II_FLAGS_NONE = 0, II_FLAGS_SHARED_SINGLE_REFERENCE = 0x40000000, II_FLAGS_LANDMARK_VISITED = 1, II_FLAGS_OBJECT_SLAM_PERM = 0x100,
  II_FLAGS_OBJECT_SLAM_SALE = 0x1000, II_FLAGS_OBJECT_PERM_OVERWRITE_BASE = 0x010000, II_FLAGS_OBJECT_PERM_OVERWRITE_OWNER = 0x020000, II_FLAGS_OBJECT_PERM_OVERWRITE_GROUP = 0x040000,
  II_FLAGS_OBJECT_PERM_OVERWRITE_EVERYONE = 0x080000, II_FLAGS_OBJECT_PERM_OVERWRITE_NEXT_OWNER = 0x100000, II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS = 0x200000, II_FLAGS_WEARABLES_MASK = 0xff
}
typedef LLDynamicArray
< LLPointer< LLInventoryItem > > 
item_array_t

Public Member Functions

 MEM_TYPE_NEW (LLMemType::MTYPE_INVENTORY)
 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)
 LLInventoryItem ()
 LLInventoryItem (const LLInventoryItem *other)
virtual void copyItem (const LLInventoryItem *other)
virtual void cloneItem (LLPointer< LLInventoryItem > &newitem) const
const LLPermissionsgetPermissions () const
const LLUUIDgetCreatorUUID () const
const LLUUIDgetAssetUUID () const
const LLStringgetDescription () const
const LLSaleInfogetSaleInfo () const
LLInventoryType::EType getInventoryType () const
U32 getFlags () const
S32 getCreationDate () const
U32 getCRC32 () const
void setAssetUUID (const LLUUID &asset_id)
void setDescription (const LLString &new_desc)
void setSaleInfo (const LLSaleInfo &sale_info)
void setPermissions (const LLPermissions &perm)
void setInventoryType (LLInventoryType::EType inv_type)
void setFlags (U32 flags)
void setCreationDate (S32 creation_date_utc)
virtual void packMessage (LLMessageSystem *msg) const
virtual BOOL unpackMessage (LLMessageSystem *msg, const char *block, S32 block_num=0)
virtual BOOL importFile (LLFILE *fp)
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 LLXMLNodeexportFileXML (BOOL include_asset_key=TRUE) const
BOOL importXML (LLXMLNode *node)
S32 packBinaryBucket (U8 *bin_bucket, LLPermissions *perm_override=NULL) const
void unpackBinaryBucket (U8 *bin_bucket, S32 bin_bucket_size)
LLSD asLLSD () const
bool fromLLSD (LLSD &sd)

Protected Member Functions

 ~LLInventoryItem ()

Protected Attributes

LLPermissions mPermissions
LLUUID mAssetUUID
LLString mDescription
LLSaleInfo mSaleInfo
LLInventoryType::EType mInventoryType
U32 mFlags
S32 mCreationDate


Detailed Description

Definition at line 123 of file llinventory.h.


Member Typedef Documentation

Reimplemented in LLViewerInventoryItem.

Definition at line 126 of file llinventory.h.


Member Enumeration Documentation

anonymous enum

Anonymous enumeration for specifying the inventory item flags.

Enumerator:
II_FLAGS_NONE 
II_FLAGS_SHARED_SINGLE_REFERENCE 
II_FLAGS_LANDMARK_VISITED 
II_FLAGS_OBJECT_SLAM_PERM 
II_FLAGS_OBJECT_SLAM_SALE 
II_FLAGS_OBJECT_PERM_OVERWRITE_BASE 
II_FLAGS_OBJECT_PERM_OVERWRITE_OWNER 
II_FLAGS_OBJECT_PERM_OVERWRITE_GROUP 
II_FLAGS_OBJECT_PERM_OVERWRITE_EVERYONE 
II_FLAGS_OBJECT_PERM_OVERWRITE_NEXT_OWNER 
II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS 
II_FLAGS_WEARABLES_MASK 

Definition at line 142 of file llinventory.h.


Constructor & Destructor Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:


Member Function Documentation

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

const LLSaleInfo & LLInventoryItem::getSaleInfo (  )  const

LLInventoryType::EType LLInventoryItem::getInventoryType (  )  const

U32 LLInventoryItem::getFlags (  )  const

S32 LLInventoryItem::getCreationDate (  )  const

U32 LLInventoryItem::getCRC32 (  )  const

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().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLInventoryItem::setSaleInfo ( const LLSaleInfo sale_info  ) 

Definition at line 436 of file llinventory.cpp.

References mSaleInfo.

Referenced by SetNotForSale::operator()(), and unpackBinaryBucket().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void LLInventoryItem::setInventoryType ( LLInventoryType::EType  inv_type  ) 

Definition at line 415 of file llinventory.cpp.

References mInventoryType.

Referenced by unpackBinaryBucket().

Here is the caller graph for this function:

void LLInventoryItem::setFlags ( U32  flags  ) 

Definition at line 420 of file llinventory.cpp.

References mFlags.

Referenced by SetNotForSale::operator()(), LLTracker::setLandmarkVisited(), and unpackBinaryBucket().

Here is the caller graph for this function:

void LLInventoryItem::setCreationDate ( S32  creation_date_utc  ) 

Definition at line 425 of file llinventory.cpp.

References mCreationDate.

Referenced by unpackBinaryBucket().

Here is the caller graph for this function:

void LLInventoryItem::packMessage ( LLMessageSystem msg  )  const [virtual]

BOOL LLInventoryItem::unpackMessage ( LLMessageSystem msg,
const char *  block,
S32  block_num = 0 
) [virtual]

BOOL LLInventoryItem::importFile ( LLFILE fp  )  [virtual]

BOOL LLInventoryItem::exportFile ( LLFILE fp,
BOOL  include_asset_key = TRUE 
) const [virtual]

BOOL LLInventoryItem::importLegacyStream ( std::istream &  input_stream  )  [virtual]

BOOL LLInventoryItem::exportLegacyStream ( std::ostream &  output_stream,
BOOL  include_asset_key = TRUE 
) const [virtual]

LLXMLNode * LLInventoryItem::exportFileXML ( BOOL  include_asset_key = TRUE  )  const [virtual]

BOOL LLInventoryItem::importXML ( LLXMLNode node  ) 

S32 LLInventoryItem::packBinaryBucket ( U8 bin_bucket,
LLPermissions perm_override = NULL 
) const

void LLInventoryItem::unpackBinaryBucket ( U8 bin_bucket,
S32  bin_bucket_size 
)

LLSD LLInventoryItem::asLLSD (  )  const

bool LLInventoryItem::fromLLSD ( LLSD sd  ) 


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Fri May 16 08:50:15 2008 for SecondLife by  doxygen 1.5.5