LLInventoryObject Class Reference

#include <llinventory.h>

Inheritance diagram for LLInventoryObject:

Inheritance graph
[legend]
Collaboration diagram for LLInventoryObject:

Collaboration graph
[legend]

List of all members.

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 LLUUIDgetUUID () const
const LLUUIDgetParentUUID () const
const LLStringgetName () 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


Detailed Description

Definition at line 72 of file llinventory.h.


Constructor & Destructor Documentation

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

Here is the call graph for this function:

LLInventoryObject::LLInventoryObject (  ) 

Definition at line 93 of file llinventory.cpp.


Member Function Documentation

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

Here is the caller graph for this function:

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

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

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void LLInventoryObject::setType ( LLAssetType::EType  type  ) 

Definition at line 154 of file llinventory.cpp.

References mType.

Referenced by LLInventoryItem::unpackBinaryBucket().

Here is the caller graph for this function:

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

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.

Here is the call graph for this function:

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

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.

Here is the call graph for this function:

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

Here is the caller graph for this function:

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

Here is the caller graph for this function:

void LLInventoryObject::updateServer ( BOOL   )  const [virtual]

Reimplemented in LLViewerInventoryItem, and LLViewerInventoryCategory.

Definition at line 261 of file llinventory.cpp.

References llendl, and llwarns.


Member Data Documentation


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

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