From 4db839c3b84bed8a775074beb1ae0b526bc05e81 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Wed, 23 Apr 2008 17:04:15 +0000 Subject: * Implement proper emptying of trashcan on standalone * On standalone, folders (and their items) should now be persistently deleted on trash emptying, as well as immediate child items * An implementation for grid mode will follow. --- OpenSim/Region/Communications/Local/LocalInventoryService.cs | 10 ++++++++++ OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs | 10 ++++++++++ 2 files changed, 20 insertions(+) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Communications/Local/LocalInventoryService.cs b/OpenSim/Region/Communications/Local/LocalInventoryService.cs index a567eeb..175829b 100644 --- a/OpenSim/Region/Communications/Local/LocalInventoryService.cs +++ b/OpenSim/Region/Communications/Local/LocalInventoryService.cs @@ -100,6 +100,16 @@ namespace OpenSim.Region.Communications.Local DeleteItem(item); } + /// + /// + /// + /// + /// + public override void PurgeInventoryFolder(LLUUID userID, InventoryFolderBase folder) + { + PurgeFolder(folder); + } + public override bool HasInventoryForUser(LLUUID userID) { InventoryFolderBase root = RequestRootFolder(userID); diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs index e0167a7..8c27cb1 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs @@ -175,6 +175,16 @@ namespace OpenSim.Region.Communications.OGS1 e.Source, e.Message); } } + + /// + /// + /// + /// + /// + public void PurgeInventoryFolder(LLUUID userID, InventoryFolderBase folder) + { + // XXX No implementation yet (temporarily)! + } public void AddNewInventoryItem(LLUUID userID, InventoryItemBase item) { -- cgit v1.1