diff options
Diffstat (limited to 'linden/indra/llinventory/llinventory.h')
-rw-r--r-- | linden/indra/llinventory/llinventory.h | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/linden/indra/llinventory/llinventory.h b/linden/indra/llinventory/llinventory.h index 1623edf..b4199db 100644 --- a/linden/indra/llinventory/llinventory.h +++ b/linden/indra/llinventory/llinventory.h | |||
@@ -135,15 +135,40 @@ protected: | |||
135 | S32 mCreationDate; // seconds from 1/1/1970, UTC | 135 | S32 mCreationDate; // seconds from 1/1/1970, UTC |
136 | 136 | ||
137 | public: | 137 | public: |
138 | |||
139 | /** | ||
140 | * Anonymous enumeration for specifying the inventory item flags. | ||
141 | */ | ||
138 | enum | 142 | enum |
139 | { | 143 | { |
140 | // The meaning of LLInventoryItem::mFlags is distinct for each | 144 | // The shared flags at the top are shared among all inventory |
141 | // inventory type. | 145 | // types. After that section, all values of flags are type |
146 | // dependent. The shared flags will start at 2^30 and work | ||
147 | // down while item type specific flags will start at 2^0 and | ||
148 | // work up. | ||
142 | II_FLAGS_NONE = 0, | 149 | II_FLAGS_NONE = 0, |
143 | 150 | ||
144 | // landmark flags | 151 | |
152 | // | ||
153 | // Shared flags | ||
154 | // | ||
155 | // | ||
156 | |||
157 | // This value means that the asset has only one reference in | ||
158 | // the system. If the inventory item is deleted, or the asset | ||
159 | // id updated, then we can remove the old reference. | ||
160 | II_FLAGS_SHARED_SINGLE_REFERENCE = 0x40000000, | ||
161 | |||
162 | |||
163 | // | ||
164 | // Landmark flags | ||
165 | // | ||
145 | II_FLAGS_LANDMARK_VISITED = 1, | 166 | II_FLAGS_LANDMARK_VISITED = 1, |
146 | 167 | ||
168 | // | ||
169 | // Object flags | ||
170 | // | ||
171 | |||
147 | // flag to indicate that object permissions should have next | 172 | // flag to indicate that object permissions should have next |
148 | // owner perm be more restrictive on rez. We bump this into | 173 | // owner perm be more restrictive on rez. We bump this into |
149 | // the second byte of the flags since the low byte is used to | 174 | // the second byte of the flags since the low byte is used to |
@@ -169,8 +194,11 @@ public: | |||
169 | // of muiltiple items or not. | 194 | // of muiltiple items or not. |
170 | II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS = 0x200000, | 195 | II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS = 0x200000, |
171 | 196 | ||
197 | // | ||
172 | // wearables use the low order byte of flags to store the | 198 | // wearables use the low order byte of flags to store the |
173 | // EWearableType enumeration found in newview/llwearable.h | 199 | // EWearableType enumeration found in newview/llwearable.h |
200 | // | ||
201 | II_FLAGS_WEARABLES_MASK = 0xff, | ||
174 | }; | 202 | }; |
175 | 203 | ||
176 | protected: | 204 | protected: |