diff options
author | Teravus Ovares | 2008-04-30 16:08:24 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-04-30 16:08:24 +0000 |
commit | a9cc76e0efba7496909d613c75b81de6a9c5d979 (patch) | |
tree | e83763d4dfb3b78ead9b5926dce1d2468b496845 /OpenSim/Framework/Communications | |
parent | move IUserService into the OpenSim.Framework.Communications assembly (diff) | |
download | opensim-SC-a9cc76e0efba7496909d613c75b81de6a9c5d979.zip opensim-SC-a9cc76e0efba7496909d613c75b81de6a9c5d979.tar.gz opensim-SC-a9cc76e0efba7496909d613c75b81de6a9c5d979.tar.bz2 opensim-SC-a9cc76e0efba7496909d613c75b81de6a9c5d979.tar.xz |
* Long awaited patch from A_Biondi Mantis 923. Kept alive by Melanie. Thanks A_Biondi and Melanie!
* This builds but might not work. JustinCC will examine.. it may work out of the box.
Diffstat (limited to 'OpenSim/Framework/Communications')
3 files changed, 19 insertions, 1 deletions
diff --git a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs index 9749366..847909a 100644 --- a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs +++ b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | |||
@@ -325,7 +325,7 @@ namespace OpenSim.Framework.Communications.Cache | |||
325 | { | 325 | { |
326 | if ((userID == UserProfile.ID) && HasInventory) | 326 | if ((userID == UserProfile.ID) && HasInventory) |
327 | { | 327 | { |
328 | m_commsManager.InventoryService.AddNewInventoryItem(userID, itemInfo); | 328 | m_commsManager.InventoryService.UpdateInventoryItem(userID, itemInfo); |
329 | } | 329 | } |
330 | } | 330 | } |
331 | 331 | ||
diff --git a/OpenSim/Framework/Communications/IInventoryServices.cs b/OpenSim/Framework/Communications/IInventoryServices.cs index 5690f89..c82c946 100644 --- a/OpenSim/Framework/Communications/IInventoryServices.cs +++ b/OpenSim/Framework/Communications/IInventoryServices.cs | |||
@@ -78,6 +78,13 @@ namespace OpenSim.Framework.Communications | |||
78 | void AddNewInventoryItem(LLUUID userID, InventoryItemBase item); | 78 | void AddNewInventoryItem(LLUUID userID, InventoryItemBase item); |
79 | 79 | ||
80 | /// <summary> | 80 | /// <summary> |
81 | /// Update an item in the given user's inventory | ||
82 | /// </summary> | ||
83 | /// <param name="userID"></param> | ||
84 | /// <param name="item"></param> | ||
85 | void UpdateInventoryItem(LLUUID userID, InventoryItemBase item); | ||
86 | |||
87 | /// <summary> | ||
81 | /// Delete an item from the given user's inventory | 88 | /// Delete an item from the given user's inventory |
82 | /// </summary> | 89 | /// </summary> |
83 | /// <param name="userID"></param> | 90 | /// <param name="userID"></param> |
diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index 0528b91..dab6a16 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs | |||
@@ -172,6 +172,9 @@ namespace OpenSim.Framework.Communications | |||
172 | 172 | ||
173 | // See IInventoryServices | 173 | // See IInventoryServices |
174 | public abstract void AddNewInventoryItem(LLUUID userID, InventoryItemBase item); | 174 | public abstract void AddNewInventoryItem(LLUUID userID, InventoryItemBase item); |
175 | |||
176 | // See IInventoryServices | ||
177 | public abstract void UpdateInventoryItem(LLUUID userID, InventoryItemBase item); | ||
175 | 178 | ||
176 | // See IInventoryServices | 179 | // See IInventoryServices |
177 | public abstract void DeleteInventoryItem(LLUUID userID, InventoryItemBase item); | 180 | public abstract void DeleteInventoryItem(LLUUID userID, InventoryItemBase item); |
@@ -230,6 +233,14 @@ namespace OpenSim.Framework.Communications | |||
230 | } | 233 | } |
231 | } | 234 | } |
232 | 235 | ||
236 | protected void UpdateItem(InventoryItemBase item) | ||
237 | { | ||
238 | foreach (KeyValuePair<string, IInventoryData> plugin in m_plugins) | ||
239 | { | ||
240 | plugin.Value.updateInventoryItem(item); | ||
241 | } | ||
242 | } | ||
243 | |||
233 | protected void DeleteItem(InventoryItemBase item) | 244 | protected void DeleteItem(InventoryItemBase item) |
234 | { | 245 | { |
235 | foreach (KeyValuePair<string, IInventoryData> plugin in m_plugins) | 246 | foreach (KeyValuePair<string, IInventoryData> plugin in m_plugins) |