diff options
Diffstat (limited to 'linden/indra/llinventory/lluserrelations.h')
-rw-r--r-- | linden/indra/llinventory/lluserrelations.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/linden/indra/llinventory/lluserrelations.h b/linden/indra/llinventory/lluserrelations.h index 56cb331..c80a0cc 100644 --- a/linden/indra/llinventory/lluserrelations.h +++ b/linden/indra/llinventory/lluserrelations.h | |||
@@ -14,12 +14,12 @@ | |||
14 | * ("GPL"), unless you have obtained a separate licensing agreement | 14 | * ("GPL"), unless you have obtained a separate licensing agreement |
15 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 15 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
16 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 16 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
17 | * online at http://secondlife.com/developers/opensource/gplv2 | 17 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
18 | * | 18 | * |
19 | * There are special exceptions to the terms and conditions of the GPL as | 19 | * There are special exceptions to the terms and conditions of the GPL as |
20 | * it is applied to this Source Code. View the full text of the exception | 20 | * it is applied to this Source Code. View the full text of the exception |
21 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 21 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
22 | * online at http://secondlife.com/developers/opensource/flossexception | 22 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
23 | * | 23 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 24 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 25 | * that you have read and understood your obligations described above, |
@@ -142,8 +142,18 @@ public: | |||
142 | */ | 142 | */ |
143 | S32 getRightsGrantedFrom() const; | 143 | S32 getRightsGrantedFrom() const; |
144 | 144 | ||
145 | void setRightsTo(S32 to_agent) { mGrantToAgent = to_agent; } | 145 | void setRightsTo(S32 to_agent) { mGrantToAgent = to_agent; mChangeSerialNum++; } |
146 | void setRightsFrom(S32 from_agent) { mGrantFromAgent = from_agent; } | 146 | void setRightsFrom(S32 from_agent) { mGrantFromAgent = from_agent; mChangeSerialNum++;} |
147 | |||
148 | /** | ||
149 | * @brief Get the change count for this agent | ||
150 | * | ||
151 | * Every change to rights will increment the serial number | ||
152 | * allowing listeners to determine when a relationship value is actually new | ||
153 | * | ||
154 | * @return change serial number for relationship | ||
155 | */ | ||
156 | S32 getChangeSerialNum() const { return mChangeSerialNum; } | ||
147 | 157 | ||
148 | /** | 158 | /** |
149 | * @brief Grant a set of rights. | 159 | * @brief Grant a set of rights. |
@@ -171,6 +181,7 @@ public: | |||
171 | protected: | 181 | protected: |
172 | S32 mGrantToAgent; | 182 | S32 mGrantToAgent; |
173 | S32 mGrantFromAgent; | 183 | S32 mGrantFromAgent; |
184 | S32 mChangeSerialNum; | ||
174 | bool mIsOnline; | 185 | bool mIsOnline; |
175 | }; | 186 | }; |
176 | 187 | ||