diff options
Diffstat (limited to 'linden/indra/llinventory/llinventory.h')
-rw-r--r-- | linden/indra/llinventory/llinventory.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/llinventory/llinventory.h b/linden/indra/llinventory/llinventory.h index d3cce6b..c573f74 100644 --- a/linden/indra/llinventory/llinventory.h +++ b/linden/indra/llinventory/llinventory.h | |||
@@ -42,6 +42,7 @@ | |||
42 | #include "llsaleinfo.h" | 42 | #include "llsaleinfo.h" |
43 | #include "llsd.h" | 43 | #include "llsd.h" |
44 | #include "lluuid.h" | 44 | #include "lluuid.h" |
45 | #include "llwearabletype.h" | ||
45 | #include "llxmlnode.h" | 46 | #include "llxmlnode.h" |
46 | 47 | ||
47 | // consts for Key field in the task inventory update message | 48 | // consts for Key field in the task inventory update message |
@@ -56,6 +57,10 @@ enum | |||
56 | }; | 57 | }; |
57 | 58 | ||
58 | 59 | ||
60 | LLInventoryType::NType calc_ntype( LLInventoryType::EType inv_type, | ||
61 | LLAssetType::EType asset_type, | ||
62 | U32 flags ); | ||
63 | |||
59 | 64 | ||
60 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | 65 | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
61 | // Class LLInventoryObject | 66 | // Class LLInventoryObject |
@@ -131,6 +136,7 @@ protected: | |||
131 | std::string mDescription; | 136 | std::string mDescription; |
132 | LLSaleInfo mSaleInfo; | 137 | LLSaleInfo mSaleInfo; |
133 | LLInventoryType::EType mInventoryType; | 138 | LLInventoryType::EType mInventoryType; |
139 | LLInventoryType::NType mNInventoryType; | ||
134 | U32 mFlags; | 140 | U32 mFlags; |
135 | time_t mCreationDate; // seconds from 1/1/1970, UTC | 141 | time_t mCreationDate; // seconds from 1/1/1970, UTC |
136 | 142 | ||
@@ -236,6 +242,7 @@ public: | |||
236 | const std::string& getDescription() const; | 242 | const std::string& getDescription() const; |
237 | const LLSaleInfo& getSaleInfo() const; | 243 | const LLSaleInfo& getSaleInfo() const; |
238 | LLInventoryType::EType getInventoryType() const; | 244 | LLInventoryType::EType getInventoryType() const; |
245 | LLInventoryType::NType getNInventoryType() const; | ||
239 | U32 getFlags() const; | 246 | U32 getFlags() const; |
240 | time_t getCreationDate() const; | 247 | time_t getCreationDate() const; |
241 | U32 getCRC32() const; // really more of a checksum. | 248 | U32 getCRC32() const; // really more of a checksum. |
@@ -246,7 +253,9 @@ public: | |||
246 | void setDescription(const std::string& new_desc); | 253 | void setDescription(const std::string& new_desc); |
247 | void setSaleInfo(const LLSaleInfo& sale_info); | 254 | void setSaleInfo(const LLSaleInfo& sale_info); |
248 | void setPermissions(const LLPermissions& perm); | 255 | void setPermissions(const LLPermissions& perm); |
256 | void setType(LLAssetType::EType type); | ||
249 | void setInventoryType(LLInventoryType::EType inv_type); | 257 | void setInventoryType(LLInventoryType::EType inv_type); |
258 | void setNInventoryType(LLInventoryType::NType inv_type); | ||
250 | void setFlags(U32 flags); | 259 | void setFlags(U32 flags); |
251 | void setCreationDate(time_t creation_date_utc); | 260 | void setCreationDate(time_t creation_date_utc); |
252 | 261 | ||
@@ -277,6 +286,9 @@ public: | |||
277 | LLSD asLLSD() const; | 286 | LLSD asLLSD() const; |
278 | bool fromLLSD(LLSD& sd); | 287 | bool fromLLSD(LLSD& sd); |
279 | 288 | ||
289 | private: | ||
290 | void recalcNInventoryType(); | ||
291 | |||
280 | }; | 292 | }; |
281 | 293 | ||
282 | BOOL item_dictionary_sort(LLInventoryItem* a,LLInventoryItem* b); | 294 | BOOL item_dictionary_sort(LLInventoryItem* a,LLInventoryItem* b); |