aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache
diff options
context:
space:
mode:
authorMelanie Thielker2008-08-19 07:11:58 +0000
committerMelanie Thielker2008-08-19 07:11:58 +0000
commit29530f30296271f2d5641091e45d5f396a7d4dec (patch)
treec0c01f8eabe0b8c3b0db20b3eb3c3c68018d450c /OpenSim/Framework/Communications/Cache
parent* This reverts a change where m_regions[RegionHandle] was replaced instead of... (diff)
downloadopensim-SC_OLD-29530f30296271f2d5641091e45d5f396a7d4dec.zip
opensim-SC_OLD-29530f30296271f2d5641091e45d5f396a7d4dec.tar.gz
opensim-SC_OLD-29530f30296271f2d5641091e45d5f396a7d4dec.tar.bz2
opensim-SC_OLD-29530f30296271f2d5641091e45d5f396a7d4dec.tar.xz
Attachment persistence!!! Patch #9170 (Mantis #1171)
Attachments now persist across logouts. Mostly untested.
Diffstat (limited to 'OpenSim/Framework/Communications/Cache')
-rw-r--r--OpenSim/Framework/Communications/Cache/CachedUserInfo.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
index c337907..a7d6349 100644
--- a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
+++ b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs
@@ -47,11 +47,15 @@ namespace OpenSim.Framework.Communications.Cache
47 internal delegate void SendInventoryDescendentsDelegate( 47 internal delegate void SendInventoryDescendentsDelegate(
48 IClientAPI client, LLUUID folderID, bool fetchFolders, bool fetchItems); 48 IClientAPI client, LLUUID folderID, bool fetchFolders, bool fetchItems);
49 49
50 public delegate void OnItemReceivedDelegate(LLUUID itemID);
51
50 /// <summary> 52 /// <summary>
51 /// Stores user profile and inventory data received from backend services for a particular user. 53 /// Stores user profile and inventory data received from backend services for a particular user.
52 /// </summary> 54 /// </summary>
53 public class CachedUserInfo 55 public class CachedUserInfo
54 { 56 {
57 public event OnItemReceivedDelegate OnItemReceived;
58
55 private static readonly ILog m_log 59 private static readonly ILog m_log
56 = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 60 = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
57 61
@@ -306,6 +310,9 @@ namespace OpenSim.Framework.Communications.Cache
306 { 310 {
307 folder.Items[itemInfo.ID] = itemInfo; 311 folder.Items[itemInfo.ID] = itemInfo;
308 } 312 }
313
314 if (OnItemReceived != null)
315 OnItemReceived(itemInfo.ID);
309 } 316 }
310 317
311 /// <summary> 318 /// <summary>