A better purge of trash folder.

This commit is contained in:
Diva Canto
2009-08-19 00:13:51 -07:00
parent e5f33e7505
commit c5af39239f
20 changed files with 107 additions and 54 deletions

View File

@@ -653,7 +653,9 @@ namespace OpenSim.Framework.Communications.Cache
if (RootFolder.DeleteItem(item.ID))
{
return m_InventoryService.DeleteItem(item);
List<UUID> uuids = new List<UUID>();
uuids.Add(itemID);
return m_InventoryService.DeleteItems(this.UserProfile.ID, uuids);
}
}
else

View File

@@ -547,7 +547,7 @@ namespace OpenSim.Framework.Communications.Tests
return false;
}
public bool DeleteItem(InventoryItemBase item)
public bool DeleteItems(UUID owner, List<UUID> items)
{
return false;
}

View File

@@ -257,7 +257,7 @@ namespace OpenSim.Framework
IClientAPI remoteClient, UUID folderID, UUID itemID, int length, string newName);
public delegate void RemoveInventoryItem(
IClientAPI remoteClient, UUID itemID);
IClientAPI remoteClient, List<UUID> itemIDs);
public delegate void RemoveInventoryFolder(
IClientAPI remoteClient, UUID folderID);