From 7d89e122930be39e84a6d174548fa2d12ac0484a Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Sat, 6 Sep 2008 07:52:41 +0000 Subject: * This is the fabled LibOMV update with all of the libOMV types from JHurliman * This is a HUGE OMG update and will definitely have unknown side effects.. so this is really only for the strong hearted at this point. Regular people should let the dust settle. * This has been tested to work with most basic functions. However.. make sure you back up 'everything' before using this. It's that big! * Essentially we're back at square 1 in the testing phase.. so lets identify things that broke. --- .../Cache/UserProfileCacheService.cs | 38 +++++++++++----------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs') diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs index 45f6c7e..3675053 100644 --- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs +++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs @@ -29,7 +29,7 @@ using System; using System.Collections.Generic; using System.Reflection; using System.Threading; -using libsecondlife; +using OpenMetaverse; using log4net; namespace OpenSim.Framework.Communications.Cache @@ -49,7 +49,7 @@ namespace OpenSim.Framework.Communications.Cache /// /// Each user has a cached profile. /// - private readonly Dictionary m_userProfiles = new Dictionary(); + private readonly Dictionary m_userProfiles = new Dictionary(); public readonly LibraryRootFolder libraryRoot = new LibraryRootFolder(); @@ -63,9 +63,9 @@ namespace OpenSim.Framework.Communications.Cache /// A new user has moved into a region in this instance so retrieve their profile from the user service. /// /// - public void AddNewUser(LLUUID userID) + public void AddNewUser(UUID userID) { - if (userID == LLUUID.Zero) + if (userID == UUID.Zero) return; m_log.DebugFormat("[USER CACHE]: Adding user profile for {0}", userID); GetUserDetails(userID); @@ -76,7 +76,7 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// true if the user was successfully removed, false otherwise - public bool RemoveUser(LLUUID userId) + public bool RemoveUser(UUID userId) { lock (m_userProfiles) { @@ -99,7 +99,7 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// - public void RequestInventoryForUser(LLUUID userID) + public void RequestInventoryForUser(UUID userID) { CachedUserInfo userInfo = GetUserDetails(userID); if (userInfo != null) @@ -130,9 +130,9 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// null if no user details are found - public CachedUserInfo GetUserDetails(LLUUID userID) + public CachedUserInfo GetUserDetails(UUID userID) { - if (userID == LLUUID.Zero) + if (userID == UUID.Zero) return null; lock (m_userProfiles) @@ -164,9 +164,9 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// - public void PreloadUserCache(LLUUID userID, UserProfileData userData) + public void PreloadUserCache(UUID userID, UserProfileData userData) { - if (userID == LLUUID.Zero) + if (userID == UUID.Zero) return; lock (m_userProfiles) @@ -192,8 +192,8 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// - public void HandleCreateInventoryFolder(IClientAPI remoteClient, LLUUID folderID, ushort folderType, - string folderName, LLUUID parentID) + public void HandleCreateInventoryFolder(IClientAPI remoteClient, UUID folderID, ushort folderType, + string folderName, UUID parentID) { CachedUserInfo userProfile; @@ -226,8 +226,8 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// - public void HandleUpdateInventoryFolder(IClientAPI remoteClient, LLUUID folderID, ushort type, string name, - LLUUID parentID) + public void HandleUpdateInventoryFolder(IClientAPI remoteClient, UUID folderID, ushort type, string name, + UUID parentID) { // m_log.DebugFormat( // "[AGENT INVENTORY]: Updating inventory folder {0} {1} for {2} {3}", folderID, name, remoteClient.Name, remoteClient.AgentId); @@ -257,7 +257,7 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// - public void HandleMoveInventoryFolder(IClientAPI remoteClient, LLUUID folderID, LLUUID parentID) + public void HandleMoveInventoryFolder(IClientAPI remoteClient, UUID folderID, UUID parentID) { CachedUserInfo userProfile; @@ -287,7 +287,7 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// - public void HandleFetchInventoryDescendents(IClientAPI remoteClient, LLUUID folderID, LLUUID ownerID, + public void HandleFetchInventoryDescendents(IClientAPI remoteClient, UUID folderID, UUID ownerID, bool fetchFolders, bool fetchItems, int sortOrder) { // FIXME MAYBE: We're not handling sortOrder! @@ -327,7 +327,7 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// null if the inventory look up failed - public List HandleFetchInventoryDescendentsCAPS(LLUUID agentID, LLUUID folderID, LLUUID ownerID, + public List HandleFetchInventoryDescendentsCAPS(UUID agentID, UUID folderID, UUID ownerID, bool fetchFolders, bool fetchItems, int sortOrder) { // m_log.DebugFormat( @@ -405,7 +405,7 @@ namespace OpenSim.Framework.Communications.Cache /// /// /// - public void HandlePurgeInventoryDescendents(IClientAPI remoteClient, LLUUID folderID) + public void HandlePurgeInventoryDescendents(IClientAPI remoteClient, UUID folderID) { CachedUserInfo userProfile; @@ -426,7 +426,7 @@ namespace OpenSim.Framework.Communications.Cache } } - public void HandleFetchInventory(IClientAPI remoteClient, LLUUID itemID, LLUUID ownerID) + public void HandleFetchInventory(IClientAPI remoteClient, UUID itemID, UUID ownerID) { if (ownerID == libraryRoot.Owner) { -- cgit v1.1