aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llinventory.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:56 -0500
committerJacek Antonelli2008-08-15 23:44:56 -0500
commitc07901e29ed545bbb02e3bddf148fe1104b94e9f (patch)
treef1ada64ce834acd7d92a425efb96c4b86bcf16b1 /linden/indra/llinventory/llinventory.h
parentSecond Life viewer sources 1.15.0.2 (diff)
downloadmeta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.zip
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.gz
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.bz2
meta-impy-c07901e29ed545bbb02e3bddf148fe1104b94e9f.tar.xz
Second Life viewer sources 1.15.1.3
Diffstat (limited to 'linden/indra/llinventory/llinventory.h')
-rw-r--r--linden/indra/llinventory/llinventory.h58
1 files changed, 1 insertions, 57 deletions
diff --git a/linden/indra/llinventory/llinventory.h b/linden/indra/llinventory/llinventory.h
index 6e64412..b24fe79 100644
--- a/linden/indra/llinventory/llinventory.h
+++ b/linden/indra/llinventory/llinventory.h
@@ -33,6 +33,7 @@
33 33
34#include "llassetstorage.h" 34#include "llassetstorage.h"
35#include "lldarray.h" 35#include "lldarray.h"
36#include "llinventorytype.h"
36#include "llmemtype.h" 37#include "llmemtype.h"
37#include "llpermissions.h" 38#include "llpermissions.h"
38#include "llsaleinfo.h" 39#include "llsaleinfo.h"
@@ -51,63 +52,6 @@ enum
51 MAX_INVENTORY_BUFFER_SIZE = 1024 52 MAX_INVENTORY_BUFFER_SIZE = 1024
52}; 53};
53 54
54//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55// Class LLInventoryType
56//
57// Class used to encapsulate operations around inventory type.
58//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
59
60class LLInventoryType
61{
62public:
63 enum EType
64 {
65 IT_TEXTURE = 0,
66 IT_SOUND = 1,
67 IT_CALLINGCARD = 2,
68 IT_LANDMARK = 3,
69 //IT_SCRIPT = 4,
70 //IT_CLOTHING = 5,
71 IT_OBJECT = 6,
72 IT_NOTECARD = 7,
73 IT_CATEGORY = 8,
74 IT_ROOT_CATEGORY = 9,
75 IT_LSL = 10,
76 //IT_LSL_BYTECODE = 11,
77 //IT_TEXTURE_TGA = 12,
78 //IT_BODYPART = 13,
79 //IT_TRASH = 14,
80 IT_SNAPSHOT = 15,
81 //IT_LOST_AND_FOUND = 16,
82 IT_ATTACHMENT = 17,
83 IT_WEARABLE = 18,
84 IT_ANIMATION = 19,
85 IT_GESTURE = 20,
86 IT_COUNT = 21,
87
88 IT_NONE = -1
89 };
90
91 // machine transation between type and strings
92 static EType lookup(const char* name);
93 static const char* lookup(EType type);
94
95 // translation from a type to a human readable form.
96 static const char* lookupHumanReadable(EType type);
97
98 // return the default inventory for the given asset type.
99 static EType defaultForAssetType(LLAssetType::EType asset_type);
100
101private:
102 // don't instantiate or derive one of these objects
103 LLInventoryType( void ) {}
104 ~LLInventoryType( void ) {}
105
106//private:
107// static const char* mInventoryTypeNames[];
108// static const char* mInventoryTypeHumanNames[];
109// static LLInventoryType::EType mInventoryAssetType[];
110};
111 55
112 56
113//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 57//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~