From 229b69e044ca81233f248ff623b22516136bb3c6 Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Tue, 17 Feb 2009 15:39:18 +0000
Subject: * Establish InventoryArchiveSaved event for unit tests * This is done
on the inventory archiver module directly rather than Scene.EventManager -
the module seems the more appropriate location
---
.../Interfaces/IInventoryArchiverModule.cs | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Region/Framework')
diff --git a/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs b/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs
index 0e1e851..652dbf8 100644
--- a/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs
@@ -25,13 +25,31 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+using System;
using System.IO;
+using OpenSim.Framework.Communications.Cache;
namespace OpenSim.Region.Framework.Interfaces
-{
- public interface IInventoryArchiverModule
+{
+ ///
+ /// Used for the OnInventoryArchiveSaved event.
+ ///
+ /// true if the save succeeded, false otherwise
+ /// The user for whom the save was conducted
+ /// The inventory path saved
+ /// The stream to which the archive was saved
+ /// Contains the exception generated if the save did not succeed
+ public delegate void InventoryArchiveSaved(
+ bool succeeded, CachedUserInfo userInfo, string invPath, Stream saveStream, Exception reportedException);
+
+ public interface IInventoryArchiverModule
{
///
+ /// Fired when an archive inventory save has been completed.
+ ///
+ event InventoryArchiveSaved OnInventoryArchiveSaved;
+
+ ///
/// Dearchive a user's inventory folder from the given stream
///
///
--
cgit v1.1