#include <llwearablelist.h>
Collaboration diagram for LLWearableList:
Public Member Functions | |
LLWearableList () | |
~LLWearableList () | |
S32 | getLength () |
const LLWearable * | getFirst () |
const LLWearable * | getNext () |
void | getAsset (const LLAssetID &assetID, const LLString &wearable_name, LLAssetType::EType asset_type, void(*asset_arrived_callback)(LLWearable *, void *userdata), void *userdata) |
LLWearable * | createLegacyWearableFromAvatar (EWearableType type) |
LLWearable * | createWearableMatchedToInventoryItem (LLWearable *old_wearable, LLViewerInventoryItem *item) |
LLWearable * | createCopyFromAvatar (LLWearable *old_wearable, const std::string &new_name=std::string()) |
LLWearable * | createCopy (LLWearable *old_wearable) |
LLWearable * | createNewWearable (EWearableType type) |
Static Public Member Functions | |
static void | processGetAssetReply (const char *filename, const LLAssetID &assetID, void *user_data, S32 status, LLExtStat ext_status) |
Protected Attributes | |
LLPtrSkipMap< const LLUUID, LLWearable * > | mList |
Definition at line 40 of file llwearablelist.h.
LLWearableList::LLWearableList | ( | ) | [inline] |
Definition at line 43 of file llwearablelist.h.
LLWearableList::~LLWearableList | ( | ) |
Definition at line 74 of file llwearablelist.cpp.
References LLPtrSkipMap< INDEX_T, DATA_T, BINARY_DEPTH >::deleteAllData(), and mList.
LLWearable * LLWearableList::createCopy | ( | LLWearable * | old_wearable | ) |
Definition at line 294 of file llwearablelist.cpp.
References LLWearable::copyDataFrom(), gAgent, LLUUID::generate(), LLAgent::getID(), LLWearable::getPermissions(), LLAgent::getSecureSessionID(), lldebugs, llendl, LLTransactionID::makeAssetID(), mList, LLUUID::null, LLWearable::saveNewAsset(), and LLWearable::setPermissions().
Referenced by LLAgent::makeNewOutfit(), and LLAgent::setWearableName().
LLWearable * LLWearableList::createCopyFromAvatar | ( | LLWearable * | old_wearable, | |
const std::string & | new_name = std::string() | |||
) |
Definition at line 267 of file llwearablelist.cpp.
References LLWearable::copyDataFrom(), gAgent, LLUUID::generate(), LLAgent::getID(), LLWearable::getPermissions(), LLAgent::getSecureSessionID(), lldebugs, llendl, LLTransactionID::makeAssetID(), mList, LLUUID::null, LLWearable::readFromAvatar(), LLWearable::saveNewAsset(), LLWearable::setName(), and LLWearable::setPermissions().
Referenced by LLAgent::copyWearableToInventory(), LLAgent::saveWearable(), and LLAgent::saveWearableAs().
LLWearable * LLWearableList::createLegacyWearableFromAvatar | ( | EWearableType | type | ) |
Definition at line 209 of file llwearablelist.cpp.
References gAgent, LLUUID::generate(), LLAgent::getAvatarObject(), LLVOAvatar::getID(), LLAgent::getSecureSessionID(), LLWearable::getTypeLabel(), LLPermissions::init(), LLPermissions::initMasks(), llendl, llinfos, LLTransactionID::makeAssetID(), mList, LLUUID::null, PERM_MOVE, PERM_NONE, PERM_TRANSFER, LLWearable::readFromAvatar(), LLWearable::saveNewAsset(), LLWearable::setDescription(), LLWearable::setName(), LLWearable::setPermissions(), and LLWearable::setType().
LLWearable * LLWearableList::createNewWearable | ( | EWearableType | type | ) |
Definition at line 316 of file llwearablelist.cpp.
References gAgent, LLUUID::generate(), LLAgent::getID(), LLAgent::getSecureSessionID(), LLWearable::getTypeLabel(), LLPermissions::init(), LLPermissions::initMasks(), lldebugs, llendl, LLTransactionID::makeAssetID(), mList, LLUUID::null, PERM_ALL, PERM_MOVE, PERM_NONE, PERM_TRANSFER, LLWearable::saveNewAsset(), LLWearable::setName(), LLWearable::setParamsToDefaults(), LLWearable::setPermissions(), LLWearable::setTexturesToDefaults(), and LLWearable::setType().
Referenced by LLAgent::createStandardWearables(), LLFolderBridge::createWearable(), LLPanelEditWearable::onSelectAutoWearOption(), and LLAgent::recoverMissingWearable().
LLWearable * LLWearableList::createWearableMatchedToInventoryItem | ( | LLWearable * | old_wearable, | |
LLViewerInventoryItem * | item | |||
) |
Definition at line 243 of file llwearablelist.cpp.
References LLWearable::copyDataFrom(), gAgent, LLInventoryItem::getDescription(), LLInventoryObject::getName(), LLInventoryItem::getPermissions(), LLInventoryItem::getSaleInfo(), LLAgent::getSecureSessionID(), lldebugs, llendl, LLTransactionID::makeAssetID(), mList, LLWearable::saveNewAsset(), LLWearable::setDescription(), LLWearable::setName(), LLWearable::setPermissions(), and LLWearable::setSaleInfo().
void LLWearableList::getAsset | ( | const LLAssetID & | assetID, | |
const LLString & | wearable_name, | |||
LLAssetType::EType | asset_type, | |||
void(*)(LLWearable *, void *userdata) | asset_arrived_callback, | |||
void * | userdata | |||
) |
Definition at line 79 of file llwearablelist.cpp.
References LLAssetType::AT_BODYPART, LLAssetType::AT_CLOTHING, gAssetStorage, LLAssetStorage::getAssetData(), LLPtrSkipMap< INDEX_T, DATA_T, BINARY_DEPTH >::getIfThere(), llassert, mList, processGetAssetReply(), and TRUE.
Referenced by LLWearableBridge::onRemoveFromAvatar(), LLWearableBridge::performAction(), LLAgent::processAgentInitialWearablesUpdate(), remove_inventory_category_from_avatar_step2(), wear_inventory_category_on_avatar_step2(), and wear_inventory_item_on_avatar().
const LLWearable* LLWearableList::getFirst | ( | ) | [inline] |
Definition at line 47 of file llwearablelist.h.
References LLPtrSkipMap< INDEX_T, DATA_T, BINARY_DEPTH >::getFirstData(), and mList.
S32 LLWearableList::getLength | ( | ) | [inline] |
Definition at line 46 of file llwearablelist.h.
References LLPtrSkipMap< INDEX_T, DATA_T, BINARY_DEPTH >::getLength(), and mList.
const LLWearable* LLWearableList::getNext | ( | ) | [inline] |
Definition at line 48 of file llwearablelist.h.
References LLPtrSkipMap< INDEX_T, DATA_T, BINARY_DEPTH >::getNextData(), and mList.
void LLWearableList::processGetAssetReply | ( | const char * | filename, | |
const LLAssetID & | assetID, | |||
void * | user_data, | |||
S32 | status, | |||
LLExtStat | ext_status | |||
) | [static] |
Definition at line 99 of file llwearablelist.cpp.
References FALSE, LLFile::fopen(), gAssetStorage, LLAssetStorage::getAssetData(), LLAssetStorage::getErrorString(), gViewerStats, gWearableList, LLWearable::importFile(), LLViewerStats::incStat(), LL_ERR_ASSET_REQUEST_NOT_IN_DATABASE, llendl, llinfos, llwarns, LLAssetType::lookupHumanReadable(), LLWearableArrivedData::mAssetType, LLWearableArrivedData::mCallback, mList, LLWearableArrivedData::mName, LLWearableArrivedData::mUserdata, NULL, LLFile::remove(), LLNotifyBox::showXml(), LLViewerStats::ST_DOWNLOAD_FAILED, and TRUE.
Referenced by getAsset().
LLPtrSkipMap< const LLUUID, LLWearable* > LLWearableList::mList [protected] |
Definition at line 68 of file llwearablelist.h.
Referenced by createCopy(), createCopyFromAvatar(), createLegacyWearableFromAvatar(), createNewWearable(), createWearableMatchedToInventoryItem(), getAsset(), getFirst(), getLength(), getNext(), processGetAssetReply(), and ~LLWearableList().