LLInventoryCategory Class Reference

#include <llinventory.h>

Inheritance diagram for LLInventoryCategory:

Inheritance graph
[legend]
Collaboration diagram for LLInventoryCategory:

Collaboration graph
[legend]
List of all members.

Public Types

typedef LLDynamicArray< LLPointer<
LLInventoryCategory > > 
cat_array_t

Public Member Functions

 MEM_TYPE_NEW (LLMemType::MTYPE_INVENTORY)
 LLInventoryCategory (const LLUUID &uuid, const LLUUID &parent_uuid, LLAssetType::EType preferred_type, const LLString &name)
 LLInventoryCategory ()
 LLInventoryCategory (const LLInventoryCategory *other)
virtual void copy (const LLInventoryCategory *other)
LLAssetType::EType getPreferredType () const
void setPreferredType (LLAssetType::EType type)
virtual void packMessage (LLMessageSystem *msg) const
virtual void unpackMessage (LLMessageSystem *msg, const char *block, S32 block_num=0)
virtual BOOL importFile (FILE *fp)
virtual BOOL exportFile (FILE *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

Protected Member Functions

 ~LLInventoryCategory ()

Protected Attributes

LLAssetType::EType mPreferredType

Detailed Description

Definition at line 264 of file llinventory.h.


Member Typedef Documentation

typedef LLDynamicArray<LLPointer<LLInventoryCategory> > LLInventoryCategory::cat_array_t

Reimplemented in LLViewerInventoryCategory.

Definition at line 267 of file llinventory.h.


Constructor & Destructor Documentation

LLInventoryCategory::~LLInventoryCategory (  )  [protected]

Definition at line 1339 of file llinventory.cpp.

LLInventoryCategory::LLInventoryCategory ( const LLUUID uuid,
const LLUUID parent_uuid,
LLAssetType::EType  preferred_type,
const LLString name 
)

---------------------------------------------------------------------------- Class LLInventoryCategory ----------------------------------------------------------------------------

Definition at line 1317 of file llinventory.cpp.

LLInventoryCategory::LLInventoryCategory (  ) 

Definition at line 1327 of file llinventory.cpp.

References LLAssetType::AT_CATEGORY, and LLInventoryObject::mType.

LLInventoryCategory::LLInventoryCategory ( const LLInventoryCategory other  ) 

Definition at line 1333 of file llinventory.cpp.

References copy().


Member Function Documentation

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

Definition at line 1344 of file llinventory.cpp.

References LLInventoryObject::copy(), and mPreferredType.

Referenced by LLViewerInventoryCategory::copy(), and LLInventoryCategory().

BOOL LLInventoryCategory::exportFile ( FILE *  fp,
BOOL  include_asset_key = TRUE 
) const [virtual]

Reimplemented from LLInventoryObject.

Definition at line 1453 of file llinventory.cpp.

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

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

Reimplemented from LLInventoryObject.

Definition at line 1532 of file llinventory.cpp.

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

LLAssetType::EType LLInventoryCategory::getPreferredType (  )  const

Definition at line 1350 of file llinventory.cpp.

References mPreferredType.

Referenced by LLInventoryModel::buildParentChildMap(), LLFolderBridge::dragCategoryIntoFolder(), LLFolderBridge::folderOptionsMenu(), LLFolderBridge::getIcon(), LLFolderBridge::isItemRemovable(), LLFolderBridge::isItemRenameable(), LLNoPreferredTypeOrItem::operator()(), and LLNoPreferredType::operator()().

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

Definition at line 1387 of file llinventory.cpp.

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

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

Reimplemented from LLInventoryObject.

Definition at line 1470 of file llinventory.cpp.

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

LLInventoryCategory::MEM_TYPE_NEW ( LLMemType::MTYPE_INVENTORY   ) 

Reimplemented from LLInventoryObject.

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

Definition at line 1361 of file llinventory.cpp.

References _PREHASH_FolderID, _PREHASH_Name, _PREHASH_ParentID, _PREHASH_Type, LLMessageSystem::addS8Fast(), LLMessageSystem::addStringFast(), LLMessageSystem::addUUIDFast(), LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPreferredType, LLInventoryObject::mUUID, and type.

Referenced by LLViewerInventoryCategory::updateServer().

void LLInventoryCategory::setPreferredType ( LLAssetType::EType  type  ) 

Definition at line 1355 of file llinventory.cpp.

References mPreferredType.

Referenced by LLInventoryModel::loadSkeleton().

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

Definition at line 1371 of file llinventory.cpp.

References _PREHASH_FolderID, _PREHASH_Name, _PREHASH_ParentID, _PREHASH_Type, DB_INV_ITEM_NAME_BUF_SIZE, LLMessageSystem::getS8Fast(), LLMessageSystem::getStringFast(), LLMessageSystem::getUUIDFast(), LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPreferredType, LLInventoryObject::mUUID, LLStringBase< char >::replaceNonstandardASCII(), and type.


Member Data Documentation

LLAssetType::EType LLInventoryCategory::mPreferredType [protected]

Definition at line 298 of file llinventory.h.

Referenced by copy(), exportFile(), LLViewerInventoryCategory::exportFileLocal(), exportLegacyStream(), getPreferredType(), importFile(), LLViewerInventoryCategory::importFileLocal(), importLegacyStream(), packMessage(), LLViewerInventoryCategory::removeFromServer(), setPreferredType(), unpackMessage(), and LLViewerInventoryCategory::updateServer().


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