#include <llinventory.h>
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) | |
void | copyCategory (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) |
LLSD | asLLSD () const |
bool | fromLLSD (LLSD &sd) |
virtual BOOL | importFile (LLFILE *fp) |
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 |
Protected Member Functions | |
~LLInventoryCategory () | |
Protected Attributes | |
LLAssetType::EType | mPreferredType |
Definition at line 294 of file llinventory.h.
LLInventoryCategory::~LLInventoryCategory | ( | ) | [protected] |
Definition at line 1341 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 1319 of file llinventory.cpp.
LLInventoryCategory::LLInventoryCategory | ( | ) |
Definition at line 1329 of file llinventory.cpp.
References LLAssetType::AT_CATEGORY, and LLInventoryObject::mType.
LLInventoryCategory::LLInventoryCategory | ( | const LLInventoryCategory * | other | ) |
Definition at line 1335 of file llinventory.cpp.
References copyCategory().
LLInventoryCategory::MEM_TYPE_NEW | ( | LLMemType::MTYPE_INVENTORY | ) |
Reimplemented from LLInventoryObject.
void LLInventoryCategory::copyCategory | ( | const LLInventoryCategory * | other | ) |
Definition at line 1346 of file llinventory.cpp.
References LLInventoryObject::copyObject(), and mPreferredType.
Referenced by LLViewerInventoryCategory::copyViewerCategory(), and LLInventoryCategory().
LLAssetType::EType LLInventoryCategory::getPreferredType | ( | ) | const |
Definition at line 1352 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()().
void LLInventoryCategory::setPreferredType | ( | LLAssetType::EType | type | ) |
void LLInventoryCategory::packMessage | ( | LLMessageSystem * | msg | ) | const [virtual] |
Definition at line 1376 of file llinventory.cpp.
References _PREHASH_FolderID, _PREHASH_Name, _PREHASH_ParentID, _PREHASH_Type, LLMessageSystem::addS8Fast(), LLMessageSystem::addStringFast(), LLMessageSystem::addUUIDFast(), LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPreferredType, and LLInventoryObject::mUUID.
Referenced by LLViewerInventoryCategory::updateServer().
void LLInventoryCategory::unpackMessage | ( | LLMessageSystem * | msg, | |
const char * | block, | |||
S32 | block_num = 0 | |||
) | [virtual] |
Definition at line 1416 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, and LLStringBase< char >::replaceNonstandardASCII().
LLSD LLInventoryCategory::asLLSD | ( | ) | const |
Definition at line 1362 of file llinventory.cpp.
References LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPreferredType, LLInventoryObject::mUUID, and tut::sd().
bool LLInventoryCategory::fromLLSD | ( | LLSD & | sd | ) |
Definition at line 1385 of file llinventory.cpp.
References LLSD::asString(), LLSD::has(), INV_ASSET_TYPE_LABEL(), INV_ITEM_ID_LABEL(), INV_NAME_LABEL(), INV_PARENT_ID_LABEL(), LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPreferredType, LLInventoryObject::mUUID, LLStringBase< char >::replaceChar(), and LLStringBase< char >::replaceNonstandardASCII().
Definition at line 1432 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.
Reimplemented from LLInventoryObject.
Definition at line 1498 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::importLegacyStream | ( | std::istream & | input_stream | ) | [virtual] |
Reimplemented from LLInventoryObject.
Definition at line 1515 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.
BOOL LLInventoryCategory::exportLegacyStream | ( | std::ostream & | output_stream, | |
BOOL | include_asset_key = TRUE | |||
) | const [virtual] |
Reimplemented from LLInventoryObject.
Definition at line 1577 of file llinventory.cpp.
References LLAssetType::lookup(), LLInventoryObject::mName, LLInventoryObject::mParentUUID, mPreferredType, LLInventoryObject::mType, LLInventoryObject::mUUID, LLUUID::toString(), TRUE, and UUID_STR_LENGTH.
Definition at line 331 of file llinventory.h.
Referenced by asLLSD(), copyCategory(), exportFile(), LLViewerInventoryCategory::exportFileLocal(), exportLegacyStream(), fromLLSD(), getPreferredType(), importFile(), LLViewerInventoryCategory::importFileLocal(), importLegacyStream(), packMessage(), LLViewerInventoryCategory::removeFromServer(), setPreferredType(), unpackMessage(), and LLViewerInventoryCategory::updateServer().