00001
00032 #ifndef LLINVENTORYTYPE_H
00033 #define LLINVENTORYTYPE_H
00034
00035 #include "llassettype.h"
00036
00037
00038
00039
00040
00041
00042
00043 class LLInventoryType
00044 {
00045 public:
00046 enum EType
00047 {
00048 IT_TEXTURE = 0,
00049 IT_SOUND = 1,
00050 IT_CALLINGCARD = 2,
00051 IT_LANDMARK = 3,
00052
00053
00054 IT_OBJECT = 6,
00055 IT_NOTECARD = 7,
00056 IT_CATEGORY = 8,
00057 IT_ROOT_CATEGORY = 9,
00058 IT_LSL = 10,
00059
00060
00061
00062
00063 IT_SNAPSHOT = 15,
00064
00065 IT_ATTACHMENT = 17,
00066 IT_WEARABLE = 18,
00067 IT_ANIMATION = 19,
00068 IT_GESTURE = 20,
00069 IT_COUNT = 21,
00070
00071 IT_NONE = -1
00072 };
00073
00074
00075 static EType lookup(const char* name);
00076 static const char* lookup(EType type);
00077
00078
00079 static const char* lookupHumanReadable(EType type);
00080
00081
00082 static EType defaultForAssetType(LLAssetType::EType asset_type);
00083
00084 private:
00085
00086 LLInventoryType( void );
00087 ~LLInventoryType( void );
00088 };
00089
00090
00091
00092
00093 bool inventory_and_asset_types_match(
00094 LLInventoryType::EType inventory_type,
00095 LLAssetType::EType asset_type);
00096
00097 #endif