diff options
| author | Leyla Farazha <leyla@lindenlab.com> | 2011-06-01 15:44:46 -0700 | 
|---|---|---|
| committer | Leyla Farazha <leyla@lindenlab.com> | 2011-06-01 15:44:46 -0700 | 
| commit | 926a9dcb58106650e8efda7a8a32b58bb6fcbd9e (patch) | |
| tree | 6d569bbcee6f8448f3307149e4394e9dee9b20b8 /indra/llinventory | |
| parent | fe9eccdbae9af3c61bff4637c1a61cdc09068a32 (diff) | |
| parent | 5093f604cb04e8de54750498fd7fa01538f4b22c (diff) | |
merge
Diffstat (limited to 'indra/llinventory')
| -rw-r--r-- | indra/llinventory/llparcel.cpp | 9 | ||||
| -rw-r--r-- | indra/llinventory/llparcel.h | 13 | 
2 files changed, 18 insertions, 4 deletions
diff --git a/indra/llinventory/llparcel.cpp b/indra/llinventory/llparcel.cpp index 0a4cd51ea0..e8cd871157 100644 --- a/indra/llinventory/llparcel.cpp +++ b/indra/llinventory/llparcel.cpp @@ -1348,3 +1348,12 @@ LLParcel::ECategory category_ui_string_to_category(const std::string& s)      // is a distinct option from "None" and "Other"      return LLParcel::C_ANY;  } + +void LLParcel::updateQuota( const LLUUID& objectId,  const ParcelQuota& quota ) +{ +	if ( mID == objectId ) +	{ +		mQuota = quota; +	} +} + diff --git a/indra/llinventory/llparcel.h b/indra/llinventory/llparcel.h index 71b65d99ce..4893337967 100644 --- a/indra/llinventory/llparcel.h +++ b/indra/llinventory/llparcel.h @@ -34,7 +34,7 @@  #include "llpermissions.h"  #include "lltimer.h"  #include "v3math.h" - +#include "llaccountingquota.h"  // Grid out of which parcels taken is stepped every 4 meters.  const F32 PARCEL_GRID_STEP_METERS	= 4.f; @@ -586,7 +586,11 @@ public:  	LLUUID	getPreviousOwnerID() const		{ return mPreviousOwnerID; }  	BOOL	getPreviouslyGroupOwned() const	{ return mPreviouslyGroupOwned; }  	BOOL	getSellWithObjects() const		{ return (mParcelFlags & PF_SELL_PARCEL_OBJECTS) ? TRUE : FALSE; } - +	 +	 +			void		 updateQuota( const LLUUID& objectId, const ParcelQuota& quota ); +	const	ParcelQuota& getQuota( void ) { return mQuota; }	 +	  protected:  	LLUUID mID;  	LLUUID				mOwnerID; @@ -657,8 +661,9 @@ protected:  	BOOL				mRegionPushOverride;  	BOOL				mRegionDenyAnonymousOverride;  	BOOL				mRegionDenyAgeUnverifiedOverride; - - +	 +	ParcelQuota			mQuota; +	  public:  	// HACK, make private  	S32					mLocalID;  | 
