diff options
author | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2007-01-02 08:33:20 +0000 |
commit | 420b91db29485df39fd6e724e782c449158811cb (patch) | |
tree | b471a94563af914d3ed3edd3e856d21cb1b69945 /indra/newview/llwearablelist.h |
Print done when done.
Diffstat (limited to 'indra/newview/llwearablelist.h')
-rw-r--r-- | indra/newview/llwearablelist.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/indra/newview/llwearablelist.h b/indra/newview/llwearablelist.h new file mode 100644 index 0000000000..587ea9e507 --- /dev/null +++ b/indra/newview/llwearablelist.h @@ -0,0 +1,50 @@ +/** + * @file llwearablelist.h + * @brief LLWearableList class header file + * + * Copyright (c) 2002-$CurrentYear$, Linden Research, Inc. + * $License$ + */ + +#ifndef LL_LLWEARABLELIST_H +#define LL_LLWEARABLELIST_H + +#include "llwearable.h" +#include "llskiplist.h" +#include "lluuid.h" +#include "llassetstorage.h" + +class LLWearableList +{ +public: + LLWearableList() {} + ~LLWearableList(); + + S32 getLength() { return mList.getLength(); } + const LLWearable* getFirst() { return mList.getFirstData(); } + const LLWearable* getNext() { return mList.getNextData(); } + + 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 = "" ); + LLWearable* createCopy( LLWearable* old_wearable ); + LLWearable* createNewWearable( EWearableType type ); + + // Pseudo-private + static void processGetAssetReply(const char* filename, const LLAssetID& assetID, void* user_data, S32 status); + +protected: + LLPtrSkipMap< const LLUUID, LLWearable* > mList; +}; + +extern LLWearableList gWearableList; + +#endif // LL_LLWEARABLELIST_H |