LLViewerInventoryCategory Class Reference

#include <llviewerinventory.h>

Inheritance diagram for LLViewerInventoryCategory:

Inheritance graph
[legend]
Collaboration diagram for LLViewerInventoryCategory:

Collaboration graph
[legend]
List of all members.

Public Types

typedef LLDynamicArray< LLPointer<
LLViewerInventoryCategory > > 
cat_array_t
 VERSION_UNKNOWN = -1
 VERSION_INITIAL = 1
 DESCENDENT_COUNT_UNKNOWN = -1
enum  { VERSION_UNKNOWN = -1, VERSION_INITIAL = 1 }
enum  { DESCENDENT_COUNT_UNKNOWN = -1 }

Public Member Functions

 LLViewerInventoryCategory (const LLUUID &uuid, const LLUUID &parent_uuid, LLAssetType::EType preferred_type, const LLString &name, const LLUUID &owner_id)
 LLViewerInventoryCategory (const LLUUID &owner_id)
 LLViewerInventoryCategory (const LLViewerInventoryCategory *other)
virtual void copy (const LLViewerInventoryCategory *other)
virtual void removeFromServer ()
virtual void updateParentOnServer (BOOL restamp_children) const
virtual void updateServer (BOOL is_new) const
const LLUUIDgetOwnerID () const
S32 getVersion () const
void setVersion (S32 version)
bool fetchDescendents ()
S32 getDescendentCount () const
void setDescendentCount (S32 descendents)
bool exportFileLocal (FILE *fp) const
bool importFileLocal (FILE *fp)

Protected Member Functions

 ~LLViewerInventoryCategory ()

Protected Attributes

LLUUID mOwnerID
S32 mVersion
S32 mDescendentCount
LLFrameTimer mDescendentsRequested

Detailed Description

Definition at line 140 of file llviewerinventory.h.


Member Typedef Documentation

typedef LLDynamicArray<LLPointer<LLViewerInventoryCategory> > LLViewerInventoryCategory::cat_array_t

Reimplemented from LLInventoryCategory.

Definition at line 143 of file llviewerinventory.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
VERSION_UNKNOWN 
VERSION_INITIAL 

Definition at line 168 of file llviewerinventory.h.

anonymous enum

Enumerator:
DESCENDENT_COUNT_UNKNOWN 

Definition at line 178 of file llviewerinventory.h.


Constructor & Destructor Documentation

LLViewerInventoryCategory::~LLViewerInventoryCategory (  )  [protected]

Definition at line 350 of file llviewerinventory.cpp.

LLViewerInventoryCategory::LLViewerInventoryCategory ( const LLUUID uuid,
const LLUUID parent_uuid,
LLAssetType::EType  pref,
const LLString name,
const LLUUID owner_id 
)

---------------------------------------------------------------------------- Class LLViewerInventoryCategory ----------------------------------------------------------------------------

Definition at line 324 of file llviewerinventory.cpp.

References mDescendentsRequested, and LLFrameTimer::reset().

LLViewerInventoryCategory::LLViewerInventoryCategory ( const LLUUID owner_id  ) 

Definition at line 337 of file llviewerinventory.cpp.

References mDescendentsRequested, and LLFrameTimer::reset().

LLViewerInventoryCategory::LLViewerInventoryCategory ( const LLViewerInventoryCategory other  ) 

Definition at line 345 of file llviewerinventory.cpp.

References copy().


Member Function Documentation

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

Definition at line 355 of file llviewerinventory.cpp.

References LLInventoryCategory::copy(), mDescendentCount, mDescendentsRequested, mOwnerID, and mVersion.

Referenced by LLViewerInventoryCategory(), and LLInventoryModel::updateCategory().

bool LLViewerInventoryCategory::exportFileLocal ( FILE *  fp  )  const

Definition at line 527 of file llviewerinventory.cpp.

References LLAssetType::lookup(), LLInventoryObject::mName, mOwnerID, LLInventoryObject::mParentUUID, LLInventoryCategory::mPreferredType, LLInventoryObject::mType, LLInventoryObject::mUUID, mVersion, LLUUID::toString(), and UUID_STR_LENGTH.

Referenced by LLInventoryModel::saveToFile().

bool LLViewerInventoryCategory::fetchDescendents (  ) 

Definition at line 426 of file llviewerinventory.cpp.

References LLMessageSystem::addBOOL(), LLMessageSystem::addS32(), LLMessageSystem::addUUID(), f, FALSE, gAgent, LLAgent::getID(), LLAgent::getSessionID(), LLControlGroup::getU32(), gMessageSystem, gSavedSettings, LLFrameTimer::hasExpired(), mDescendentsRequested, mOwnerID, LLInventoryObject::mUUID, mVersion, LLMessageSystem::newMessage(), LLMessageSystem::nextBlock(), LLFrameTimer::reset(), LLAgent::sendReliableMessage(), LLFrameTimer::setTimerExpirySec(), TRUE, and VERSION_UNKNOWN.

Referenced by LLInventoryModel::backgroundFetch(), LLInventoryFetchComboObserver::fetch(), LLInventoryFetchDescendentsObserver::fetchDescendents(), and LLInventoryModel::fetchDescendentsOf().

S32 LLViewerInventoryCategory::getDescendentCount (  )  const [inline]

Definition at line 179 of file llviewerinventory.h.

References mDescendentCount.

Referenced by LLInventoryModel::accountForUpdate(), LLInventoryModel::categoryHasChildren(), LLInventoryModel::isCategoryComplete(), and LLInventoryFetchDescendentsObserver::isComplete().

const LLUUID& LLViewerInventoryCategory::getOwnerID (  )  const [inline]

Definition at line 165 of file llviewerinventory.h.

References mOwnerID.

Referenced by LLFolderBridge::isItemRenameable().

S32 LLViewerInventoryCategory::getVersion (  )  const [inline]

Definition at line 169 of file llviewerinventory.h.

References mVersion.

Referenced by LLInventoryModel::accountForUpdate(), LLInventoryModel::backgroundFetch(), LLInventoryModel::categoryHasChildren(), LLInventoryModel::isCategoryComplete(), LLInventoryFetchDescendentsObserver::isComplete(), LLFolderBridge::isUpToDate(), LLInventoryModel::loadSkeleton(), and LLInventoryModel::saveToFile().

bool LLViewerInventoryCategory::importFileLocal ( FILE *  fp  ) 

Definition at line 458 of file llviewerinventory.cpp.

References llendl, llwarns, LLAssetType::lookup(), MAX_STRING, LLInventoryObject::mName, mOwnerID, LLInventoryObject::mParentUUID, LLInventoryCategory::mPreferredType, LLInventoryObject::mType, LLInventoryObject::mUUID, mVersion, NULL, LLStringBase< char >::replaceChar(), LLStringBase< char >::replaceNonstandardASCII(), and LLUUID::set().

void LLViewerInventoryCategory::removeFromServer (  )  [virtual]

Reimplemented from LLInventoryObject.

Definition at line 402 of file llviewerinventory.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_FolderData, _PREHASH_FolderID, _PREHASH_RemoveInventoryFolder, _PREHASH_SessionID, LLInventoryModel::accountForUpdate(), LLMessageSystem::addUUIDFast(), LLAssetType::AT_NONE, gAgent, LLAgent::getID(), LLAgent::getSessionID(), gInventory, gMessageSystem, llendl, llinfos, LLInventoryObject::mParentUUID, LLInventoryCategory::mPreferredType, LLInventoryObject::mUUID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLAgent::sendReliableMessage(), and LLNotifyBox::showXml().

void LLViewerInventoryCategory::setDescendentCount ( S32  descendents  )  [inline]

Definition at line 180 of file llviewerinventory.h.

References mDescendentCount.

Referenced by LLInventoryModel::accountForUpdate(), LLInventoryModel::loadSkeleton(), and LLInventoryModel::processInventoryDescendents().

void LLViewerInventoryCategory::setVersion ( S32  version  )  [inline]

Definition at line 170 of file llviewerinventory.h.

References mVersion.

Referenced by LLInventoryModel::accountForUpdate(), LLInventoryModel::loadSkeleton(), and LLInventoryModel::processInventoryDescendents().

void LLViewerInventoryCategory::updateParentOnServer ( BOOL  restamp_children  )  const [virtual]

Reimplemented from LLInventoryObject.

Definition at line 365 of file llviewerinventory.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_FolderID, _PREHASH_InventoryData, _PREHASH_MoveInventoryFolder, _PREHASH_ParentID, _PREHASH_SessionID, LLMessageSystem::addBOOL(), LLMessageSystem::addUUIDFast(), gAgent, LLAgent::getID(), LLAgent::getSessionID(), gMessageSystem, LLInventoryObject::mParentUUID, LLInventoryObject::mUUID, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), and LLAgent::sendReliableMessage().

void LLViewerInventoryCategory::updateServer ( BOOL  is_new  )  const [virtual]

Reimplemented from LLInventoryObject.

Definition at line 380 of file llviewerinventory.cpp.

References _PREHASH_AgentData, _PREHASH_AgentID, _PREHASH_FolderData, _PREHASH_SessionID, _PREHASH_UpdateInventoryFolder, LLInventoryModel::accountForUpdate(), LLMessageSystem::addUUIDFast(), LLAssetType::AT_NONE, gAgent, LLAgent::getID(), LLAgent::getSessionID(), gInventory, gMessageSystem, LLInventoryObject::mParentUUID, LLInventoryCategory::mPreferredType, LLMessageSystem::newMessageFast(), LLMessageSystem::nextBlockFast(), LLInventoryCategory::packMessage(), LLAgent::sendReliableMessage(), and LLNotifyBox::showXml().

Referenced by LLInventoryModel::buildParentChildMap().


Member Data Documentation

S32 LLViewerInventoryCategory::mDescendentCount [protected]

Definition at line 190 of file llviewerinventory.h.

Referenced by copy(), getDescendentCount(), and setDescendentCount().

LLFrameTimer LLViewerInventoryCategory::mDescendentsRequested [protected]

Definition at line 191 of file llviewerinventory.h.

Referenced by copy(), fetchDescendents(), and LLViewerInventoryCategory().

LLUUID LLViewerInventoryCategory::mOwnerID [protected]

Definition at line 188 of file llviewerinventory.h.

Referenced by copy(), exportFileLocal(), fetchDescendents(), getOwnerID(), and importFileLocal().

S32 LLViewerInventoryCategory::mVersion [protected]

Definition at line 189 of file llviewerinventory.h.

Referenced by copy(), exportFileLocal(), fetchDescendents(), getVersion(), importFileLocal(), and setVersion().


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