aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory/llparcel.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llinventory/llparcel.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/llinventory/llparcel.h')
-rw-r--r--linden/indra/llinventory/llparcel.h60
1 files changed, 30 insertions, 30 deletions
diff --git a/linden/indra/llinventory/llparcel.h b/linden/indra/llinventory/llparcel.h
index 9c91d94..e8f18f2 100644
--- a/linden/indra/llinventory/llparcel.h
+++ b/linden/indra/llinventory/llparcel.h
@@ -207,12 +207,12 @@ public:
207 207
208 // MANIPULATORS 208 // MANIPULATORS
209 void generateNewID() { mID.generate(); } 209 void generateNewID() { mID.generate(); }
210 void setName(const LLString& name); 210 void setName(const std::string& name);
211 void setDesc(const LLString& desc); 211 void setDesc(const std::string& desc);
212 void setMusicURL(const LLString& url); 212 void setMusicURL(const std::string& url);
213 void setMediaURL(const LLString& url); 213 void setMediaURL(const std::string& url);
214 void setMediaType(const char* type); 214 void setMediaType(const std::string& type);
215 void setMediaDesc(const char* desc); 215 void setMediaDesc(const std::string& desc);
216 void setMediaID(const LLUUID& id) { mMediaID = id; } 216 void setMediaID(const LLUUID& id) { mMediaID = id; }
217 void setMediaAutoScale ( U8 flagIn ) { mMediaAutoScale = flagIn; } 217 void setMediaAutoScale ( U8 flagIn ) { mMediaAutoScale = flagIn; }
218 void setMediaLoop (U8 loop) { mMediaLoop = loop; } 218 void setMediaLoop (U8 loop) { mMediaLoop = loop; }
@@ -266,7 +266,7 @@ public:
266 void setDrawDistance(F32 dist) { mDrawDistance = dist; } 266 void setDrawDistance(F32 dist) { mDrawDistance = dist; }
267 void setSalePrice(S32 price) { mSalePrice = price; } 267 void setSalePrice(S32 price) { mSalePrice = price; }
268 void setGroupID(const LLUUID& id) { mGroupID = id; } 268 void setGroupID(const LLUUID& id) { mGroupID = id; }
269 //void setGroupName(const LLString& s) { mGroupName.assign(s); } 269 //void setGroupName(const std::string& s) { mGroupName.assign(s); }
270 void setPassPrice(S32 price) { mPassPrice = price; } 270 void setPassPrice(S32 price) { mPassPrice = price; }
271 void setPassHours(F32 hours) { mPassHours = hours; } 271 void setPassHours(F32 hours) { mPassHours = hours; }
272 272
@@ -303,12 +303,12 @@ public:
303 303
304 // ACCESSORS 304 // ACCESSORS
305 const LLUUID& getID() const { return mID; } 305 const LLUUID& getID() const { return mID; }
306 const LLString& getName() const { return mName; } 306 const std::string& getName() const { return mName; }
307 const LLString& getDesc() const { return mDesc; } 307 const std::string& getDesc() const { return mDesc; }
308 const LLString& getMusicURL() const { return mMusicURL; } 308 const std::string& getMusicURL() const { return mMusicURL; }
309 const LLString& getMediaURL() const { return mMediaURL; } 309 const std::string& getMediaURL() const { return mMediaURL; }
310 const char* getMediaDesc() const { return mMediaDesc.c_str(); } 310 const std::string& getMediaDesc() const { return mMediaDesc; }
311 const char* getMediaType() const { return mMediaType.c_str(); } 311 const std::string& getMediaType() const { return mMediaType; }
312 const LLUUID& getMediaID() const { return mMediaID; } 312 const LLUUID& getMediaID() const { return mMediaID; }
313 S32 getMediaWidth() const { return mMediaWidth; } 313 S32 getMediaWidth() const { return mMediaWidth; }
314 S32 getMediaHeight() const { return mMediaHeight; } 314 S32 getMediaHeight() const { return mMediaHeight; }
@@ -351,18 +351,18 @@ public:
351 351
352 // functions to deal with ownership status. 352 // functions to deal with ownership status.
353 EOwnershipStatus getOwnershipStatus() const { return mStatus; } 353 EOwnershipStatus getOwnershipStatus() const { return mStatus; }
354 static const char* getOwnershipStatusString(EOwnershipStatus status); 354 static const std::string& getOwnershipStatusString(EOwnershipStatus status);
355 void setOwnershipStatus(EOwnershipStatus status) { mStatus = status; } 355 void setOwnershipStatus(EOwnershipStatus status) { mStatus = status; }
356 356
357 // dealing with parcel category information 357 // dealing with parcel category information
358 ECategory getCategory() const {return mCategory; } 358 ECategory getCategory() const {return mCategory; }
359 static const char* getCategoryString(ECategory category); 359 static const std::string& getCategoryString(ECategory category);
360 static const char* getCategoryUIString(ECategory category); 360 static const std::string& getCategoryUIString(ECategory category);
361 static ECategory getCategoryFromString(const char* string); 361 static ECategory getCategoryFromString(const std::string& string);
362 static ECategory getCategoryFromUIString(const char* string); 362 static ECategory getCategoryFromUIString(const std::string& string);
363 363
364 // functions for parcel action (used for logging) 364 // functions for parcel action (used for logging)
365 static const char* getActionString(EAction action); 365 static const std::string& getActionString(EAction action);
366 366
367 // dealing with sales and parcel conversion. 367 // dealing with sales and parcel conversion.
368 // 368 //
@@ -444,9 +444,9 @@ public:
444 { return (mParcelFlags & PF_FOR_SALE) ? TRUE : FALSE; } 444 { return (mParcelFlags & PF_FOR_SALE) ? TRUE : FALSE; }
445 BOOL getSoundLocal() const 445 BOOL getSoundLocal() const
446 { return (mParcelFlags & PF_SOUND_LOCAL) ? TRUE : FALSE; } 446 { return (mParcelFlags & PF_SOUND_LOCAL) ? TRUE : FALSE; }
447 BOOL getVoiceEnabled() const 447 BOOL getParcelFlagAllowVoice() const
448 { return (mParcelFlags & PF_ALLOW_VOICE_CHAT) ? TRUE : FALSE; } 448 { return (mParcelFlags & PF_ALLOW_VOICE_CHAT) ? TRUE : FALSE; }
449 BOOL getVoiceUseEstateChannel() const 449 BOOL getParcelFlagUseEstateVoiceChannel() const
450 { return (mParcelFlags & PF_USE_ESTATE_VOICE_CHAN) ? TRUE : FALSE; } 450 { return (mParcelFlags & PF_USE_ESTATE_VOICE_CHAN) ? TRUE : FALSE; }
451 BOOL getAllowPublish() const 451 BOOL getAllowPublish() const
452 { return (mParcelFlags & PF_ALLOW_PUBLISH) ? TRUE : FALSE; } 452 { return (mParcelFlags & PF_ALLOW_PUBLISH) ? TRUE : FALSE; }
@@ -514,7 +514,7 @@ public:
514 S32 getSimWidePrimCount() const { return mSimWidePrimCount; } 514 S32 getSimWidePrimCount() const { return mSimWidePrimCount; }
515 515
516 // this parcel only (not simwide) 516 // this parcel only (not simwide)
517 S32 getMaxPrimCapacity() const { return mMaxPrimCapacity; } 517 S32 getMaxPrimCapacity() const { return mMaxPrimCapacity; } // Does not include prim bonus
518 S32 getPrimCount() const { return mOwnerPrimCount + mGroupPrimCount + mOtherPrimCount + mSelectedPrimCount; } 518 S32 getPrimCount() const { return mOwnerPrimCount + mGroupPrimCount + mOtherPrimCount + mSelectedPrimCount; }
519 S32 getOwnerPrimCount() const { return mOwnerPrimCount; } 519 S32 getOwnerPrimCount() const { return mOwnerPrimCount; }
520 S32 getGroupPrimCount() const { return mGroupPrimCount; } 520 S32 getGroupPrimCount() const { return mGroupPrimCount; }
@@ -525,7 +525,7 @@ public:
525 525
526 S32 getCleanOtherTime() const { return mCleanOtherTime; } 526 S32 getCleanOtherTime() const { return mCleanOtherTime; }
527 527
528 void setMaxPrimCapacity(S32 max) { mMaxPrimCapacity = max; } 528 void setMaxPrimCapacity(S32 max) { mMaxPrimCapacity = max; } // Does not include prim bonus
529 // simwide 529 // simwide
530 void setSimWideMaxPrimCapacity(S32 current) { mSimWideMaxPrimCapacity = current; } 530 void setSimWideMaxPrimCapacity(S32 current) { mSimWideMaxPrimCapacity = current; }
531 void setSimWidePrimCount(S32 current) { mSimWidePrimCount = current; } 531 void setSimWidePrimCount(S32 current) { mSimWidePrimCount = current; }
@@ -587,12 +587,12 @@ protected:
587 F32 mDrawDistance; 587 F32 mDrawDistance;
588 U32 mParcelFlags; 588 U32 mParcelFlags;
589 S32 mSalePrice; // linden dollars 589 S32 mSalePrice; // linden dollars
590 LLString mName; 590 std::string mName;
591 LLString mDesc; 591 std::string mDesc;
592 LLString mMusicURL; 592 std::string mMusicURL;
593 LLString mMediaURL; 593 std::string mMediaURL;
594 std::string mMediaDesc; 594 std::string mMediaDesc;
595 std::string mMediaType; 595 std::string mMediaType;
596 S32 mMediaWidth; 596 S32 mMediaWidth;
597 S32 mMediaHeight; 597 S32 mMediaHeight;
598 U8 mMediaAutoScale; 598 U8 mMediaAutoScale;
@@ -604,7 +604,7 @@ protected:
604 F32 mPassHours; 604 F32 mPassHours;
605 LLVector3 mAABBMin; 605 LLVector3 mAABBMin;
606 LLVector3 mAABBMax; 606 LLVector3 mAABBMax;
607 S32 mMaxPrimCapacity; 607 S32 mMaxPrimCapacity; // Prims allowed on parcel, does not include prim bonus
608 S32 mSimWidePrimCount; 608 S32 mSimWidePrimCount;
609 S32 mSimWideMaxPrimCapacity; 609 S32 mSimWideMaxPrimCapacity;
610 //S32 mSimWidePrimCorrection; 610 //S32 mSimWidePrimCorrection;