PageRenderTime 693ms CodeModel.GetById 353ms app.highlight 16ms RepoModel.GetById 227ms app.codeStats 0ms

/indra/newview/llwearabletype.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 76 lines | 44 code | 7 blank | 25 comment | 0 complexity | 349028a75da08f534a3dabd0657b07a8 MD5 | raw file
 1/** 
 2 * @file llwearabletype.h
 3 * @brief LLWearableType class header file
 4 *
 5 * $LicenseInfo:firstyear=2002&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2010, Linden Research, Inc.
 8 * 
 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation;
12 * version 2.1 of the License only.
13 * 
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Lesser General Public License for more details.
18 * 
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 * 
23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
24 * $/LicenseInfo$
25 */
26
27#ifndef LL_LLWEARABLETYPE_H
28#define LL_LLWEARABLETYPE_H
29
30#include "llassettype.h"
31#include "lldictionary.h"
32#include "llinventoryicon.h"
33#include "llsingleton.h"
34
35class LLWearableType
36{
37public: 
38	enum EType
39	{
40		WT_SHAPE	  = 0,
41		WT_SKIN		  = 1,
42		WT_HAIR		  = 2,
43		WT_EYES		  = 3,
44		WT_SHIRT	  = 4,
45		WT_PANTS	  = 5,
46		WT_SHOES	  = 6,
47		WT_SOCKS	  = 7,
48		WT_JACKET	  = 8,
49		WT_GLOVES	  = 9,
50		WT_UNDERSHIRT = 10,
51		WT_UNDERPANTS = 11,
52		WT_SKIRT	  = 12,
53		WT_ALPHA	  = 13,
54		WT_TATTOO	  = 14,
55		WT_PHYSICS	  = 15,
56		WT_COUNT	  = 16,
57
58		WT_INVALID	  = 255,
59		WT_NONE		  = -1,
60	};
61
62	static const std::string& 			getTypeName(EType type);
63	static const std::string& 			getTypeDefaultNewName(EType type);
64	static const std::string& 			getTypeLabel(EType type);
65	static LLAssetType::EType 			getAssetType(EType type);
66	static EType 						typeNameToType(const std::string& type_name);
67	static LLInventoryIcon::EIconName 	getIconName(EType type);
68	static BOOL 						getDisableCameraSwitch(EType type);
69	static BOOL 						getAllowMultiwear(EType type);
70
71protected:
72	LLWearableType() {}
73	~LLWearableType() {}
74};
75
76#endif  // LL_LLWEARABLETYPE_H