aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorBrian McBee2007-12-11 03:51:32 +0000
committerBrian McBee2007-12-11 03:51:32 +0000
commit16903ec488f53fe1bab6b4c4408dde31d03367ff (patch)
treede93756adda1b308fcb9606cc703bf90e11ff112 /OpenSim/Framework
parentrefactor SunModule a bit to make more sensible (diff)
downloadopensim-SC-16903ec488f53fe1bab6b4c4408dde31d03367ff.zip
opensim-SC-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.gz
opensim-SC-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.bz2
opensim-SC-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.xz
Implementing updateinventoryfolder: Should now be able to rename folders in inventory
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs20
-rw-r--r--OpenSim/Framework/IClientAPI.cs4
2 files changed, 24 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
index 70aec47..32d941c 100644
--- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
+++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
@@ -127,6 +127,26 @@ namespace OpenSim.Framework.Communications.Cache
127 } 127 }
128 } 128 }
129 129
130 public void HandleUpdateInventoryFolder(IClientAPI remoteClient, LLUUID folderID, ushort type, string name, LLUUID parentID)
131 {
132 CachedUserInfo userProfile;
133
134 if (m_userProfiles.TryGetValue(remoteClient.AgentId, out userProfile))
135 {
136 if (userProfile.RootFolder != null)
137 {
138 InventoryFolderBase baseFolder = new InventoryFolderBase();
139 baseFolder.agentID = remoteClient.AgentId;
140 baseFolder.folderID = folderID;
141 baseFolder.name = name;
142 baseFolder.parentID = parentID;
143 baseFolder.type = (short)type;
144 baseFolder.version = userProfile.RootFolder.version;
145 m_parent.InventoryService.AddNewInventoryFolder(remoteClient.AgentId, baseFolder);
146 }
147 }
148 }
149
130 /// <summary> 150 /// <summary>
131 /// Tell the client about the various child items and folders contained in the requested folder. 151 /// Tell the client about the various child items and folders contained in the requested folder.
132 /// </summary> 152 /// </summary>
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs
index 98c7a18..8075d0d 100644
--- a/OpenSim/Framework/IClientAPI.cs
+++ b/OpenSim/Framework/IClientAPI.cs
@@ -327,6 +327,9 @@ namespace OpenSim.Framework
327 public delegate void CreateInventoryFolder( 327 public delegate void CreateInventoryFolder(
328 IClientAPI remoteClient, LLUUID folderID, ushort folderType, string folderName, LLUUID parentID); 328 IClientAPI remoteClient, LLUUID folderID, ushort folderType, string folderName, LLUUID parentID);
329 329
330 public delegate void UpdateInventoryFolder(
331 IClientAPI remoteClient, LLUUID folderID, ushort type, string name, LLUUID parentID);
332
330 public delegate void CreateNewInventoryItem( 333 public delegate void CreateNewInventoryItem(
331 IClientAPI remoteClient, LLUUID transActionID, LLUUID folderID, uint callbackID, string description, string name, 334 IClientAPI remoteClient, LLUUID transActionID, LLUUID folderID, uint callbackID, string description, string name,
332 sbyte invType, sbyte type, byte wearableType, uint nextOwnerMask); 335 sbyte invType, sbyte type, byte wearableType, uint nextOwnerMask);
@@ -428,6 +431,7 @@ namespace OpenSim.Framework
428 431
429 event CreateNewInventoryItem OnCreateNewInventoryItem; 432 event CreateNewInventoryItem OnCreateNewInventoryItem;
430 event CreateInventoryFolder OnCreateNewInventoryFolder; 433 event CreateInventoryFolder OnCreateNewInventoryFolder;
434 event UpdateInventoryFolder OnUpdateInventoryFolder;
431 event FetchInventoryDescendents OnFetchInventoryDescendents; 435 event FetchInventoryDescendents OnFetchInventoryDescendents;
432 event PurgeInventoryDescendents OnPurgeInventoryDescendents; 436 event PurgeInventoryDescendents OnPurgeInventoryDescendents;
433 event FetchInventory OnFetchInventory; 437 event FetchInventory OnFetchInventory;