From 33c4631c6d1912fb4e5af65ece7a2aa80c8b0005 Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 5 Feb 2008 13:02:03 +0000 Subject: some small changes, like adding a couple of extra methods to IInventoryServices so that a check can be done to see if a inventory set exists for a certain user. --- OpenSim/Framework/Communications/IInventoryServices.cs | 2 ++ OpenSim/Framework/Communications/InventoryServiceBase.cs | 10 ++++++++++ 2 files changed, 12 insertions(+) (limited to 'OpenSim/Framework/Communications') diff --git a/OpenSim/Framework/Communications/IInventoryServices.cs b/OpenSim/Framework/Communications/IInventoryServices.cs index f2e5cc5..15a2f02 100644 --- a/OpenSim/Framework/Communications/IInventoryServices.cs +++ b/OpenSim/Framework/Communications/IInventoryServices.cs @@ -44,6 +44,8 @@ namespace OpenSim.Framework.Communications void AddNewInventoryItem(LLUUID userID, InventoryItemBase item); void DeleteInventoryItem(LLUUID userID, InventoryItemBase item); void CreateNewUserInventory(LLUUID user); + bool HasInventoryForUser(LLUUID userID); + InventoryFolderBase RequestRootFolder(LLUUID userID); /// /// Returns the root folder plus any folders in root (so down one level in the Inventory folders tree) diff --git a/OpenSim/Framework/Communications/InventoryServiceBase.cs b/OpenSim/Framework/Communications/InventoryServiceBase.cs index 2f466a3..a48988d 100644 --- a/OpenSim/Framework/Communications/InventoryServiceBase.cs +++ b/OpenSim/Framework/Communications/InventoryServiceBase.cs @@ -194,6 +194,16 @@ namespace OpenSim.Framework.Communications } } + public virtual bool HasInventoryForUser(LLUUID userID) + { + return false; + } + + public InventoryFolderBase RequestRootFolder(LLUUID userID) + { + return RequestUsersRoot(userID); + } + /// /// /// -- cgit v1.1