PageRenderTime 518ms CodeModel.GetById 18ms RepoModel.GetById 1ms 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
Possible License(s): LGPL-2.1
  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. #ifndef LL_LLWEARABLETYPE_H
  27. #define LL_LLWEARABLETYPE_H
  28. #include "llassettype.h"
  29. #include "lldictionary.h"
  30. #include "llinventoryicon.h"
  31. #include "llsingleton.h"
  32. class LLWearableType
  33. {
  34. public:
  35. enum EType
  36. {
  37. WT_SHAPE = 0,
  38. WT_SKIN = 1,
  39. WT_HAIR = 2,
  40. WT_EYES = 3,
  41. WT_SHIRT = 4,
  42. WT_PANTS = 5,
  43. WT_SHOES = 6,
  44. WT_SOCKS = 7,
  45. WT_JACKET = 8,
  46. WT_GLOVES = 9,
  47. WT_UNDERSHIRT = 10,
  48. WT_UNDERPANTS = 11,
  49. WT_SKIRT = 12,
  50. WT_ALPHA = 13,
  51. WT_TATTOO = 14,
  52. WT_PHYSICS = 15,
  53. WT_COUNT = 16,
  54. WT_INVALID = 255,
  55. WT_NONE = -1,
  56. };
  57. static const std::string& getTypeName(EType type);
  58. static const std::string& getTypeDefaultNewName(EType type);
  59. static const std::string& getTypeLabel(EType type);
  60. static LLAssetType::EType getAssetType(EType type);
  61. static EType typeNameToType(const std::string& type_name);
  62. static LLInventoryIcon::EIconName getIconName(EType type);
  63. static BOOL getDisableCameraSwitch(EType type);
  64. static BOOL getAllowMultiwear(EType type);
  65. protected:
  66. LLWearableType() {}
  67. ~LLWearableType() {}
  68. };
  69. #endif // LL_LLWEARABLETYPE_H