From 29530f30296271f2d5641091e45d5f396a7d4dec Mon Sep 17 00:00:00 2001
From: Melanie Thielker
Date: Tue, 19 Aug 2008 07:11:58 +0000
Subject: Attachment persistence!!! Patch #9170 (Mantis #1171) Attachments now
persist across logouts. Mostly untested.
---
OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'OpenSim/Framework/Communications')
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
internal delegate void SendInventoryDescendentsDelegate(
IClientAPI client, LLUUID folderID, bool fetchFolders, bool fetchItems);
+ public delegate void OnItemReceivedDelegate(LLUUID itemID);
+
///
/// Stores user profile and inventory data received from backend services for a particular user.
///
public class CachedUserInfo
{
+ public event OnItemReceivedDelegate OnItemReceived;
+
private static readonly ILog m_log
= LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
@@ -306,6 +310,9 @@ namespace OpenSim.Framework.Communications.Cache
{
folder.Items[itemInfo.ID] = itemInfo;
}
+
+ if (OnItemReceived != null)
+ OnItemReceived(itemInfo.ID);
}
///
--
cgit v1.1