LLViewerInventoryItem Class Reference

#include <llviewerinventory.h>

Inheritance diagram for LLViewerInventoryItem:

Inheritance graph
[legend]
Collaboration diagram for LLViewerInventoryItem:

Collaboration graph
[legend]
List of all members.

Public Types

typedef LLDynamicArray< LLPointer<
LLViewerInventoryItem > > 
item_array_t

Public Member Functions

 LLViewerInventoryItem (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)
 LLViewerInventoryItem (const LLUUID &item_id, const LLUUID &parent_id, const char *name, LLInventoryType::EType inv_type)
 LLViewerInventoryItem ()
 LLViewerInventoryItem (const LLViewerInventoryItem *other)
 LLViewerInventoryItem (const LLInventoryItem *other)
virtual void copy (const LLViewerInventoryItem *other)
virtual void copy (const LLInventoryItem *other)
virtual void clone (LLPointer< LLViewerInventoryItem > &newitem) const
virtual void removeFromServer (void)
virtual void updateParentOnServer (BOOL restamp) const
virtual void updateServer (BOOL is_new) const
void fetchFromServer (void) const
virtual BOOL unpackMessage (LLMessageSystem *msg, const char *block, S32 block_num=0)
virtual BOOL importFile (FILE *fp)
virtual BOOL importLegacyStream (std::istream &input_stream)
bool exportFileLocal (FILE *fp) const
bool importFileLocal (FILE *fp)
BOOL isComplete () const
void setComplete (BOOL complete)
virtual void packMessage (LLMessageSystem *msg) const
virtual void setTransactionID (const LLTransactionID &transaction_id)
LLTransactionID getTransactionID () const

Protected Member Functions

 ~LLViewerInventoryItem (void)

Protected Attributes

BOOL mIsComplete
LLTransactionID mTransactionID

Classes

struct  comparePointers

Detailed Description

Definition at line 46 of file llviewerinventory.h.


Member Typedef Documentation

typedef LLDynamicArray<LLPointer<LLViewerInventoryItem> > LLViewerInventoryItem::item_array_t

Reimplemented from LLInventoryItem.

Definition at line 49 of file llviewerinventory.h.


Constructor & Destructor Documentation

LLViewerInventoryItem::~LLViewerInventoryItem ( void   )  [protected]

Definition at line 119 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 
)

---------------------------------------------------------------------------- Class LLViewerInventoryItem ----------------------------------------------------------------------------

Definition at line 60 of file llviewerinventory.cpp.

LLViewerInventoryItem::LLViewerInventoryItem ( const LLUUID item_id,
const LLUUID parent_id,
const char *  name,
LLInventoryType::EType  inv_type 
)

Definition at line 77 of file llviewerinventory.cpp.

References LLInventoryItem::mInventoryType, LLInventoryObject::mName, LLInventoryObject::mParentUUID, and LLInventoryObject::mUUID.

LLViewerInventoryItem::LLViewerInventoryItem (  ) 

Definition at line 90 of file llviewerinventory.cpp.

Referenced by clone().

LLViewerInventoryItem::LLViewerInventoryItem ( const LLViewerInventoryItem other  ) 

Definition at line 96 of file llviewerinventory.cpp.

References copy(), llendl, llwarns, mIsComplete, and LLInventoryObject::mUUID.

LLViewerInventoryItem::LLViewerInventoryItem ( const LLInventoryItem other  ) 

Definition at line 107 of file llviewerinventory.cpp.

References LLInventoryItem::copy(), llendl, llwarns, mIsComplete, and LLInventoryObject::mUUID.


Member Function Documentation

void LLViewerInventoryItem::clone ( LLPointer< LLViewerInventoryItem > &  newitem  )  const [virtual]

Definition at line 139 of file llviewerinventory.cpp.

References LLViewerInventoryItem(), and LLPointer< Type >::notNull().

void LLViewerInventoryItem::copy ( const LLInventoryItem other  )  [virtual]

Reimplemented from LLInventoryItem.

Definition at line 131 of file llviewerinventory.cpp.

References LLInventoryItem::copy(), mIsComplete, mTransactionID, and LLUUID::setNull().

void LLViewerInventoryItem::copy ( const LLViewerInventoryItem other  )  [virtual]

Definition at line 124 of file llviewerinventory.cpp.

References LLInventoryItem::copy(), mIsComplete, and mTransactionID.

Referenced by LLViewerInventoryItem(), and LLInventoryModel::updateItem().

bool LLViewerInventoryItem::exportFileLocal ( FILE *  fp  )  const

Definition at line 277 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.

void LLViewerInventoryItem::fetchFromServer ( void   )  const

Definition at line 200 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().

LLTransactionID LLViewerInventoryItem::getTransactionID (  )  const [inline]

Definition at line 124 of file llviewerinventory.h.

References mTransactionID.

Referenced by LLViewerObject::saveScript(), and LLViewerObject::updateInventory().

BOOL LLViewerInventoryItem::importFile ( FILE *  fp  )  [virtual]

Reimplemented from LLInventoryItem.

Definition at line 254 of file llviewerinventory.cpp.

References LLInventoryItem::importFile(), mIsComplete, and TRUE.

bool LLViewerInventoryItem::importFileLocal ( FILE *  fp  ) 

Definition at line 269 of file llviewerinventory.cpp.

References LLInventoryItem::importFile(), and mIsComplete.

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

Reimplemented from LLInventoryItem.

Definition at line 262 of file llviewerinventory.cpp.

References LLInventoryItem::importLegacyStream(), mIsComplete, and TRUE.

BOOL LLViewerInventoryItem::isComplete (  )  const [inline]

Definition at line 111 of file llviewerinventory.h.

References mIsComplete.

Referenced by 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(), LLAttachObject::handleEvent(), inventory_offer_callback(), LLPanelEditWearable::onBtnRandomize(), LLPreview::onCommit(), LLFloaterProperties::onCommitPermissions(), LLWearableBridge::openItem(), LLObjectBridge::performAction(), LLPreviewGesture::refresh(), LLItemBridge::selectItem(), LLPanelEditWearable::setSubpart(), LLPreviewGesture::show(), LLFloaterCustomize::updateInventoryUI(), LLFloaterProperties::updateSaleInfo(), LLFloaterCustomize::updateScrollingPanelUI(), LLToolDragAndDrop::willObjectAcceptInventory(), and LLWearable::writeToAvatar().

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

Reimplemented from LLInventoryItem.

Definition at line 235 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(), LLPermissions::packMessage(), and type.

Referenced by LLToolDragAndDrop::dropObject(), and updateServer().

void LLViewerInventoryItem::removeFromServer ( void   )  [virtual]

Reimplemented from LLInventoryObject.

Definition at line 150 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::setComplete ( BOOL  complete  )  [inline]

Definition at line 112 of file llviewerinventory.h.

References mIsComplete.

Referenced by LLPreviewGesture::saveIfNeeded().

void LLViewerInventoryItem::setTransactionID ( const LLTransactionID transaction_id  )  [virtual]

Definition at line 230 of file llviewerinventory.cpp.

References mTransactionID.

Referenced by LLAgent::addWearabletoAgentInventoryDone(), LLPreviewNotecard::onSaveComplete(), and LLPreviewGesture::onSaveComplete().

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

Reimplemented from LLInventoryItem.

Definition at line 222 of file llviewerinventory.cpp.

References mIsComplete, TRUE, and LLInventoryItem::unpackMessage().

void LLViewerInventoryItem::updateParentOnServer ( BOOL  restamp  )  const [virtual]

Reimplemented from LLInventoryObject.

Definition at line 295 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 168 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().


Member Data Documentation

BOOL LLViewerInventoryItem::mIsComplete [protected]

Definition at line 127 of file llviewerinventory.h.

Referenced by copy(), fetchFromServer(), importFile(), importFileLocal(), importLegacyStream(), isComplete(), LLViewerInventoryItem(), setComplete(), unpackMessage(), and updateServer().

LLTransactionID LLViewerInventoryItem::mTransactionID [protected]

Definition at line 128 of file llviewerinventory.h.

Referenced by copy(), getTransactionID(), packMessage(), setTransactionID(), and updateServer().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:57 2010 for Second Life Viewer by  doxygen 1.4.7