#include <llviewerinventory.h>
Definition at line 46 of file llviewerinventory.h.
LLViewerInventoryItem::~LLViewerInventoryItem | ( | void | ) | [protected] |
Definition at line 115 of file llviewerinventory.cpp.
LLViewerInventoryItem::LLViewerInventoryItem | ( | const LLUUID & | uuid, | |
const LLUUID & | parent_uuid, | |||
const LLPermissions & | perm, | |||
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 | |||
) |
---------------------------------------------------------------------------- Local function declarations, constants, enums, and typedefs ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- Class LLViewerInventoryItem ----------------------------------------------------------------------------
Definition at line 61 of file llviewerinventory.cpp.
LLViewerInventoryItem::LLViewerInventoryItem | ( | const LLUUID & | item_id, | |
const LLUUID & | parent_id, | |||
const char * | name, | |||
LLInventoryType::EType | inv_type | |||
) |
Definition at line 78 of file llviewerinventory.cpp.
References LLInventoryItem::mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, and LLInventoryObject::mUUID.
LLViewerInventoryItem::LLViewerInventoryItem | ( | ) |
Definition at line 91 of file llviewerinventory.cpp.
Referenced by cloneViewerItem().
LLViewerInventoryItem::LLViewerInventoryItem | ( | const LLViewerInventoryItem * | other | ) |
Definition at line 97 of file llviewerinventory.cpp.
References copyViewerItem(), llendl, llwarns, mIsComplete, and LLInventoryObject::mUUID.
LLViewerInventoryItem::LLViewerInventoryItem | ( | const LLInventoryItem * | other | ) |
Definition at line 108 of file llviewerinventory.cpp.
void LLViewerInventoryItem::copyViewerItem | ( | const LLViewerInventoryItem * | other | ) |
Definition at line 119 of file llviewerinventory.cpp.
References LLInventoryItem::copyItem(), mIsComplete, and mTransactionID.
Referenced by LLViewerInventoryItem(), and LLInventoryModel::updateItem().
void LLViewerInventoryItem::copyItem | ( | const LLInventoryItem * | other | ) | [virtual] |
Reimplemented from LLInventoryItem.
Definition at line 127 of file llviewerinventory.cpp.
References LLInventoryItem::copyItem(), mIsComplete, mTransactionID, and LLUUID::setNull().
void LLViewerInventoryItem::cloneViewerItem | ( | LLPointer< LLViewerInventoryItem > & | newitem | ) | const |
Definition at line 134 of file llviewerinventory.cpp.
References LLUUID::generate(), LLViewerInventoryItem(), and LLPointer< Type >::notNull().
void LLViewerInventoryItem::removeFromServer | ( | void | ) | [virtual] |
Reimplemented from LLInventoryObject.
Definition at line 145 of file llviewerinventory.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_InventoryData, _PREHASH_ItemID, _PREHASH_RemoveInventoryItem, _PREHASH_SessionID, LLInventoryModel::accountForUpdate(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gInventory, gMessageSystem, llendl, llinfos, LLInventoryObject::mParentUUID, LLInventoryObject::mUUID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLAgent::sendReliableMessage().
void LLViewerInventoryItem::updateParentOnServer | ( | BOOL | restamp | ) | const [virtual] |
Reimplemented from LLInventoryObject.
Definition at line 298 of file llviewerinventory.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_FolderID, _PREHASH_InventoryData, _PREHASH_ItemID, _PREHASH_MoveInventoryItem, _PREHASH_SessionID, _PREHASH_Stamp, LLMessageSystem::addBOOLFast(), LLMessageSystem::addString(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLInventoryObject::mParentUUID, LLInventoryObject::mUUID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), NULL, and LLAgent::sendReliableMessage().
void LLViewerInventoryItem::updateServer | ( | BOOL | is_new | ) | const [virtual] |
Reimplemented from LLInventoryObject.
Definition at line 163 of file llviewerinventory.cpp.
References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_CallbackID, _PREHASH_InventoryData, _PREHASH_SessionID, _PREHASH_TransactionID, _PREHASH_UpdateInventoryItem, LLInventoryModel::accountForUpdate(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLPermissions::getOwner(), LLAgent::getSessionID(), gInventory, gMessageSystem, llendl, llerrs, llwarns, mIsComplete, LLInventoryObject::mParentUUID, LLInventoryItem::mPermissions, mTransactionID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), packMessage(), and LLAgent::sendReliableMessage().
Referenced by LLAgent::addWearabletoAgentInventoryDone().
void LLViewerInventoryItem::fetchFromServer | ( | void | ) | const |
Definition at line 195 of file llviewerinventory.cpp.
References LLMessageSystem::addUUID(), gAgent, LLAgent::getID(), LLPermissions::getOwner(), LLAgent::getSessionID(), gMessageSystem, llendl, llwarns, mIsComplete, LLInventoryItem::mPermissions, LLInventoryObject::mUUID, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), and LLAgent::sendReliableMessage().
Referenced by LLItemBridge::selectItem(), LLPreviewGesture::show(), and LLWearable::writeToAvatar().
BOOL LLViewerInventoryItem::unpackMessage | ( | LLMessageSystem * | msg, | |
const char * | block, | |||
S32 | block_num = 0 | |||
) | [virtual] |
Reimplemented from LLInventoryItem.
Definition at line 225 of file llviewerinventory.cpp.
References mIsComplete, TRUE, and LLInventoryItem::unpackMessage().
Definition at line 217 of file llviewerinventory.cpp.
References LLInventoryItem::fromLLSD(), mIsComplete, and TRUE.
Reimplemented from LLInventoryItem.
Definition at line 257 of file llviewerinventory.cpp.
References LLInventoryItem::importFile(), mIsComplete, and TRUE.
BOOL LLViewerInventoryItem::importLegacyStream | ( | std::istream & | input_stream | ) | [virtual] |
Reimplemented from LLInventoryItem.
Definition at line 265 of file llviewerinventory.cpp.
References LLInventoryItem::importLegacyStream(), mIsComplete, and TRUE.
bool LLViewerInventoryItem::exportFileLocal | ( | LLFILE * | fp | ) | const |
Definition at line 280 of file llviewerinventory.cpp.
References LLPermissions::exportFile(), LLInventoryType::lookup(), LLAssetType::lookup(), LLInventoryItem::mCreationDate, LLInventoryItem::mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, LLInventoryItem::mPermissions, LLInventoryObject::mType, LLInventoryObject::mUUID, LLUUID::toString(), and UUID_STR_LENGTH.
bool LLViewerInventoryItem::importFileLocal | ( | LLFILE * | fp | ) |
Definition at line 272 of file llviewerinventory.cpp.
References LLInventoryItem::importFile(), and mIsComplete.
BOOL LLViewerInventoryItem::isComplete | ( | ) | const [inline] |
Definition at line 112 of file llviewerinventory.h.
References mIsComplete.
Referenced by LLWearableBridge::canWearOnAvatar(), LLInventoryFetchComboObserver::changed(), LLInventoryFetchObserver::changed(), LLInventoryCompletionObserver::changed(), LLToolDragAndDrop::dad3dActivateGesture(), LLToolDragAndDrop::dad3dGiveInventory(), LLToolDragAndDrop::dad3dGiveInventoryObject(), LLToolDragAndDrop::dad3dRezAttachmentFromInv(), LLToolDragAndDrop::dad3dRezFromObjectOnLand(), LLToolDragAndDrop::dad3dRezFromObjectOnObject(), LLToolDragAndDrop::dad3dRezObjectOnLand(), LLToolDragAndDrop::dad3dRezObjectOnObject(), LLToolDragAndDrop::dad3dRezScript(), LLToolDragAndDrop::dad3dTextureObject(), LLToolDragAndDrop::dad3dUpdateInventory(), LLToolDragAndDrop::dad3dWearItem(), LLFolderBridge::dragItemIntoFolder(), LLPanelEditWearable::draw(), LLToolDragAndDrop::dropObject(), LLInventoryFetchComboObserver::fetch(), LLInventoryFetchObserver::fetchItems(), LLAttachObject::handleEvent(), inventory_offer_callback(), LLPanelEditWearable::onBtnRandomize(), LLPreview::onCommit(), LLFloaterProperties::onCommitPermissions(), LLWearableBridge::openItem(), LLObjectBridge::performAction(), LLPreviewGesture::refresh(), LLFloaterProperties::refreshFromItem(), LLItemBridge::selectItem(), LLPanelEditWearable::setSubpart(), LLPreviewGesture::show(), LLFloaterCustomize::updateInventoryUI(), LLFloaterProperties::updateSaleInfo(), LLFloaterCustomize::updateScrollingPanelUI(), LLToolDragAndDrop::willObjectAcceptInventory(), and LLWearable::writeToAvatar().
void LLViewerInventoryItem::setComplete | ( | BOOL | complete | ) | [inline] |
Definition at line 113 of file llviewerinventory.h.
References mIsComplete.
Referenced by LLPreviewGesture::saveIfNeeded().
void LLViewerInventoryItem::packMessage | ( | LLMessageSystem * | msg | ) | const [virtual] |
Reimplemented from LLInventoryItem.
Definition at line 238 of file llviewerinventory.cpp.
References _PREHASH_CRC, _PREHASH_CreationDate, _PREHASH_Description, _PREHASH_Flags, _PREHASH_FolderID, _PREHASH_InvType, _PREHASH_ItemID, _PREHASH_Name, _PREHASH_TransactionID, _PREHASH_Type, LLMessageSystem::addS32Fast(), LLMessageSystem::addS8Fast(), LLMessageSystem::addStringFast(), LLMessageSystem::addU32Fast(), LLMessageSystem::addUUIDFast(), LLInventoryItem::getCRC32(), LLInventoryItem::mCreationDate, LLInventoryItem::mDescription, LLInventoryItem::mFlags, LLInventoryItem::mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, LLInventoryItem::mPermissions, LLInventoryItem::mSaleInfo, mTransactionID, LLInventoryObject::mType, LLInventoryObject::mUUID, LLSaleInfo::packMessage(), and LLPermissions::packMessage().
Referenced by LLToolDragAndDrop::dropObject(), and updateServer().
void LLViewerInventoryItem::setTransactionID | ( | const LLTransactionID & | transaction_id | ) | [virtual] |
Definition at line 233 of file llviewerinventory.cpp.
References mTransactionID.
Referenced by LLAgent::addWearabletoAgentInventoryDone(), LLPreviewNotecard::onSaveComplete(), and LLPreviewGesture::onSaveComplete().
LLTransactionID LLViewerInventoryItem::getTransactionID | ( | ) | const [inline] |
Definition at line 125 of file llviewerinventory.h.
References mTransactionID.
Referenced by LLViewerObject::saveScript(), and LLViewerObject::updateInventory().
BOOL LLViewerInventoryItem::mIsComplete [protected] |
Definition at line 128 of file llviewerinventory.h.
Referenced by copyItem(), copyViewerItem(), fetchFromServer(), importFile(), importFileLocal(), importLegacyStream(), isComplete(), LLViewerInventoryItem(), setComplete(), unpackMessage(), and updateServer().
LLTransactionID LLViewerInventoryItem::mTransactionID [protected] |
Definition at line 129 of file llviewerinventory.h.
Referenced by copyItem(), copyViewerItem(), getTransactionID(), packMessage(), setTransactionID(), and updateServer().