diff options
author | Justin Clarke Casey | 2009-02-17 15:39:18 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-02-17 15:39:18 +0000 |
commit | 229b69e044ca81233f248ff623b22516136bb3c6 (patch) | |
tree | 6c8d1d8f145b5bb2ec7745fe1209b1d3221496c3 /OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs | |
parent | * Ignored a bunch of genned files (diff) | |
download | opensim-SC-229b69e044ca81233f248ff623b22516136bb3c6.zip opensim-SC-229b69e044ca81233f248ff623b22516136bb3c6.tar.gz opensim-SC-229b69e044ca81233f248ff623b22516136bb3c6.tar.bz2 opensim-SC-229b69e044ca81233f248ff623b22516136bb3c6.tar.xz |
* 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
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs | 22 |
1 files changed, 20 insertions, 2 deletions
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 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | using System; | ||
28 | using System.IO; | 29 | using System.IO; |
30 | using OpenSim.Framework.Communications.Cache; | ||
29 | 31 | ||
30 | namespace OpenSim.Region.Framework.Interfaces | 32 | namespace OpenSim.Region.Framework.Interfaces |
31 | { | 33 | { |
32 | public interface IInventoryArchiverModule | 34 | /// <summary> |
35 | /// Used for the OnInventoryArchiveSaved event. | ||
36 | /// </summary> | ||
37 | /// <param name="succeeded">true if the save succeeded, false otherwise</param> | ||
38 | /// <param name="userInfo">The user for whom the save was conducted</param> | ||
39 | /// <param name="invPath">The inventory path saved</param> | ||
40 | /// <param name="savePath">The stream to which the archive was saved</param> | ||
41 | /// <param name="reportedException">Contains the exception generated if the save did not succeed</param> | ||
42 | public delegate void InventoryArchiveSaved( | ||
43 | bool succeeded, CachedUserInfo userInfo, string invPath, Stream saveStream, Exception reportedException); | ||
44 | |||
45 | public interface IInventoryArchiverModule | ||
33 | { | 46 | { |
34 | /// <summary> | 47 | /// <summary> |
48 | /// Fired when an archive inventory save has been completed. | ||
49 | /// </summary> | ||
50 | event InventoryArchiveSaved OnInventoryArchiveSaved; | ||
51 | |||
52 | /// <summary> | ||
35 | /// Dearchive a user's inventory folder from the given stream | 53 | /// Dearchive a user's inventory folder from the given stream |
36 | /// </summary> | 54 | /// </summary> |
37 | /// <param name="firstName"></param> | 55 | /// <param name="firstName"></param> |