diff options
author | Jacek Antonelli | 2008-12-07 23:35:25 -0600 |
---|---|---|
committer | Jacek Antonelli | 2008-12-08 00:42:40 -0600 |
commit | 131cc1d821fafde3aa20bba66f387e092adf6f59 (patch) | |
tree | 7134419d9f3b14df386097d449a9925c6b78f3cb /linden | |
parent | New enumerator for inventory types. (diff) | |
download | meta-impy-131cc1d821fafde3aa20bba66f387e092adf6f59.zip meta-impy-131cc1d821fafde3aa20bba66f387e092adf6f59.tar.gz meta-impy-131cc1d821fafde3aa20bba66f387e092adf6f59.tar.bz2 meta-impy-131cc1d821fafde3aa20bba66f387e092adf6f59.tar.xz |
Added LLInventoryItem::mNInventoryType (new type) field.
Will always by NIT_NONE so far.
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/llinventory/llinventory.cpp | 13 | ||||
-rw-r--r-- | linden/indra/llinventory/llinventory.h | 3 |
2 files changed, 16 insertions, 0 deletions
diff --git a/linden/indra/llinventory/llinventory.cpp b/linden/indra/llinventory/llinventory.cpp index 457a0cb..72eab74 100644 --- a/linden/indra/llinventory/llinventory.cpp +++ b/linden/indra/llinventory/llinventory.cpp | |||
@@ -287,6 +287,7 @@ LLInventoryItem::LLInventoryItem( | |||
287 | mDescription(desc), | 287 | mDescription(desc), |
288 | mSaleInfo(sale_info), | 288 | mSaleInfo(sale_info), |
289 | mInventoryType(inv_type), | 289 | mInventoryType(inv_type), |
290 | mNInventoryType(LLInventoryType::NIT_NONE), | ||
290 | mFlags(flags), | 291 | mFlags(flags), |
291 | mCreationDate(creation_date_utc) | 292 | mCreationDate(creation_date_utc) |
292 | { | 293 | { |
@@ -301,6 +302,7 @@ LLInventoryItem::LLInventoryItem() : | |||
301 | mDescription(), | 302 | mDescription(), |
302 | mSaleInfo(), | 303 | mSaleInfo(), |
303 | mInventoryType(LLInventoryType::IT_NONE), | 304 | mInventoryType(LLInventoryType::IT_NONE), |
305 | mNInventoryType(LLInventoryType::NIT_NONE), | ||
304 | mFlags(0), | 306 | mFlags(0), |
305 | mCreationDate(0) | 307 | mCreationDate(0) |
306 | { | 308 | { |
@@ -325,6 +327,7 @@ void LLInventoryItem::copyItem(const LLInventoryItem* other) | |||
325 | mDescription = other->mDescription; | 327 | mDescription = other->mDescription; |
326 | mSaleInfo = other->mSaleInfo; | 328 | mSaleInfo = other->mSaleInfo; |
327 | mInventoryType = other->mInventoryType; | 329 | mInventoryType = other->mInventoryType; |
330 | mNInventoryType = other->mNInventoryType; | ||
328 | mFlags = other->mFlags; | 331 | mFlags = other->mFlags; |
329 | mCreationDate = other->mCreationDate; | 332 | mCreationDate = other->mCreationDate; |
330 | } | 333 | } |
@@ -417,6 +420,11 @@ void LLInventoryItem::setInventoryType(LLInventoryType::EType inv_type) | |||
417 | mInventoryType = inv_type; | 420 | mInventoryType = inv_type; |
418 | } | 421 | } |
419 | 422 | ||
423 | void LLInventoryItem::setNInventoryType(LLInventoryType::NType inv_type) | ||
424 | { | ||
425 | mNInventoryType = inv_type; | ||
426 | } | ||
427 | |||
420 | void LLInventoryItem::setFlags(U32 flags) | 428 | void LLInventoryItem::setFlags(U32 flags) |
421 | { | 429 | { |
422 | mFlags = flags; | 430 | mFlags = flags; |
@@ -443,6 +451,11 @@ LLInventoryType::EType LLInventoryItem::getInventoryType() const | |||
443 | return mInventoryType; | 451 | return mInventoryType; |
444 | } | 452 | } |
445 | 453 | ||
454 | LLInventoryType::NType LLInventoryItem::getNInventoryType() const | ||
455 | { | ||
456 | return mNInventoryType; | ||
457 | } | ||
458 | |||
446 | U32 LLInventoryItem::getFlags() const | 459 | U32 LLInventoryItem::getFlags() const |
447 | { | 460 | { |
448 | return mFlags; | 461 | return mFlags; |
diff --git a/linden/indra/llinventory/llinventory.h b/linden/indra/llinventory/llinventory.h index d3cce6b..ac4e470 100644 --- a/linden/indra/llinventory/llinventory.h +++ b/linden/indra/llinventory/llinventory.h | |||
@@ -131,6 +131,7 @@ protected: | |||
131 | std::string mDescription; | 131 | std::string mDescription; |
132 | LLSaleInfo mSaleInfo; | 132 | LLSaleInfo mSaleInfo; |
133 | LLInventoryType::EType mInventoryType; | 133 | LLInventoryType::EType mInventoryType; |
134 | LLInventoryType::NType mNInventoryType; | ||
134 | U32 mFlags; | 135 | U32 mFlags; |
135 | time_t mCreationDate; // seconds from 1/1/1970, UTC | 136 | time_t mCreationDate; // seconds from 1/1/1970, UTC |
136 | 137 | ||
@@ -236,6 +237,7 @@ public: | |||
236 | const std::string& getDescription() const; | 237 | const std::string& getDescription() const; |
237 | const LLSaleInfo& getSaleInfo() const; | 238 | const LLSaleInfo& getSaleInfo() const; |
238 | LLInventoryType::EType getInventoryType() const; | 239 | LLInventoryType::EType getInventoryType() const; |
240 | LLInventoryType::NType getNInventoryType() const; | ||
239 | U32 getFlags() const; | 241 | U32 getFlags() const; |
240 | time_t getCreationDate() const; | 242 | time_t getCreationDate() const; |
241 | U32 getCRC32() const; // really more of a checksum. | 243 | U32 getCRC32() const; // really more of a checksum. |
@@ -247,6 +249,7 @@ public: | |||
247 | void setSaleInfo(const LLSaleInfo& sale_info); | 249 | void setSaleInfo(const LLSaleInfo& sale_info); |
248 | void setPermissions(const LLPermissions& perm); | 250 | void setPermissions(const LLPermissions& perm); |
249 | void setInventoryType(LLInventoryType::EType inv_type); | 251 | void setInventoryType(LLInventoryType::EType inv_type); |
252 | void setNInventoryType(LLInventoryType::NType inv_type); | ||
250 | void setFlags(U32 flags); | 253 | void setFlags(U32 flags); |
251 | void setCreationDate(time_t creation_date_utc); | 254 | void setCreationDate(time_t creation_date_utc); |
252 | 255 | ||