summaryrefslogtreecommitdiff
path: root/indra/llinventory
diff options
context:
space:
mode:
authorDave SIMmONs <simon@lindenlab.com>2011-06-09 13:46:19 -0700
committerDave SIMmONs <simon@lindenlab.com>2011-06-09 13:46:19 -0700
commit50393788693578a2fe3a934faa04b382d75f1657 (patch)
treee7b6229da6628aaa28e8912065662bd827c19256 /indra/llinventory
parent484a4733b7b361d87c6092f4f399951e84c2aacd (diff)
ER-910: Parcel Privacy. Rename things in code to reflect feature name change to "hidden avatars"
Diffstat (limited to 'indra/llinventory')
-rw-r--r--indra/llinventory/llparcel.cpp18
-rw-r--r--indra/llinventory/llparcel.h14
-rw-r--r--indra/llinventory/llparcelflags.h2
3 files changed, 17 insertions, 17 deletions
diff --git a/indra/llinventory/llparcel.cpp b/indra/llinventory/llparcel.cpp
index c79d410ade..b388d34580 100644
--- a/indra/llinventory/llparcel.cpp
+++ b/indra/llinventory/llparcel.cpp
@@ -227,8 +227,8 @@ void LLParcel::init(const LLUUID &owner_id,
setPreviousOwnerID(LLUUID::null);
setPreviouslyGroupOwned(FALSE);
- setPrivacy(false);
- setHavePrivacyData(false);
+ setHiddenAVs(false);
+ setHaveHiddenAVsData(false);
}
void LLParcel::overrideOwner(const LLUUID& owner_id, BOOL is_group_owned)
@@ -705,7 +705,7 @@ void LLParcel::packMessage(LLSD& msg)
msg["user_location"] = ll_sd_from_vector3(mUserLocation);
msg["user_look_at"] = ll_sd_from_vector3(mUserLookAt);
msg["landing_type"] = (U8)mLandingType;
- msg["privacy"] = (LLSD::Boolean) getPrivacy();
+ msg["hidden_avs"] = (LLSD::Boolean) getHiddenAVs();
}
@@ -724,14 +724,14 @@ void LLParcel::unpackMessage(LLMessageSystem* msg)
msg->getStringFast( _PREHASH_ParcelData,_PREHASH_MediaURL, buffer );
setMediaURL(buffer);
- BOOL private_parcel = FALSE;
- bool have_privacy_data = (msg->getSizeFast(_PREHASH_ParcelData, _PREHASH_Privacy) > 0);
- if (have_privacy_data)
+ BOOL hidden_avs = FALSE;
+ bool have_hidden_av_data = (msg->getSizeFast(_PREHASH_ParcelData, _PREHASH_HiddenAVs) > 0);
+ if (have_hidden_av_data)
{
- msg->getBOOLFast(_PREHASH_ParcelData, _PREHASH_Privacy, private_parcel);
+ msg->getBOOLFast(_PREHASH_ParcelData, _PREHASH_HiddenAVs, hidden_avs);
}
- setPrivacy((bool) private_parcel);
- setHavePrivacyData(have_privacy_data);
+ setHiddenAVs((bool) hidden_avs);
+ setHaveHiddenAVsData(have_hidden_av_data);
// non-optimized version
msg->getU8 ( "ParcelData", "MediaAutoScale", mMediaAutoScale );
diff --git a/indra/llinventory/llparcel.h b/indra/llinventory/llparcel.h
index edf1e9d4fd..e785dba91b 100644
--- a/indra/llinventory/llparcel.h
+++ b/indra/llinventory/llparcel.h
@@ -75,7 +75,7 @@ const U8 PARCEL_AUCTION = 0x05;
// unused 0x06
// unused 0x07
// flag, unused 0x08
-const U8 PARCEL_PRIVATE = 0x10;
+const U8 PARCEL_HIDDENAVS = 0x10; // avatars not visible outside of parcel
const U8 PARCEL_SOUND_LOCAL = 0x20;
const U8 PARCEL_WEST_LINE = 0x40; // flag, property line on west edge
const U8 PARCEL_SOUTH_LINE = 0x80; // flag, property line on south edge
@@ -271,8 +271,8 @@ public:
void setUserLocation(const LLVector3& pos) { mUserLocation = pos; }
void setUserLookAt(const LLVector3& rot) { mUserLookAt = rot; }
void setLandingType(const ELandingType type) { mLandingType = type; }
- void setPrivacy(bool privacy) { mPrivacy = privacy; }
- void setHavePrivacyData(bool have_privacy_data) { mHavePrivacyData = have_privacy_data; } // Remove this once parcel privacy is fully available grid-wide
+ void setHiddenAVs(bool hidden_avs) { mHiddenAVs = hidden_avs; }
+ void setHaveHiddenAVsData(bool have_hidden_av_data) { mHaveHiddenAVData = have_hidden_av_data; } // Remove this once hidden AV feature is fully available grid-wide
void setAuctionID(U32 auction_id) { mAuctionID = auction_id;}
@@ -375,8 +375,8 @@ public:
const LLVector3& getUserLocation() const { return mUserLocation; }
const LLVector3& getUserLookAt() const { return mUserLookAt; }
ELandingType getLandingType() const { return mLandingType; }
- bool getPrivacy() const { return mPrivacy; }
- bool getHavePrivacyData() const { return mHavePrivacyData; }
+ bool getHiddenAVs() const { return mHiddenAVs; }
+ bool getHaveHiddenAVsData() const { return mHaveHiddenAVData; }
// User-specified snapshot
const LLUUID& getSnapshotID() const { return mSnapshotID; }
@@ -616,8 +616,8 @@ protected:
LLVector3 mUserLocation;
LLVector3 mUserLookAt;
ELandingType mLandingType;
- bool mPrivacy;
- bool mHavePrivacyData; // Remove once parcel privacy is grid-wide
+ bool mHiddenAVs; // Avatars are hidden on this parcel from outside it
+ bool mHaveHiddenAVData; // Remove once hidden AV feature is grid-wide
LLTimer mSaleTimerExpires;
LLTimer mMediaResetTimer;
diff --git a/indra/llinventory/llparcelflags.h b/indra/llinventory/llparcelflags.h
index a3d131c7a2..a85a6a51b3 100644
--- a/indra/llinventory/llparcelflags.h
+++ b/indra/llinventory/llparcelflags.h
@@ -127,6 +127,6 @@ const S32 PARCEL_DETAILS_OWNER = 2;
const S32 PARCEL_DETAILS_GROUP = 3;
const S32 PARCEL_DETAILS_AREA = 4;
const S32 PARCEL_DETAILS_ID = 5;
-const S32 PARCEL_DETAILS_PRIVACY = 6;
+const S32 PARCEL_DETAILS_HIDDEN_AVS = 6;
#endif