From 72bd68a21f916db918aeb3dd60a1f391e41ed7c2 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 4 Jun 2010 22:17:23 +0100
Subject: add ability for load iar/save iar to take in arbitrary options
not used for anything yet
---
.../Interfaces/IInventoryArchiverModule.cs | 29 ++++++++++++++++++++++
1 file changed, 29 insertions(+)
(limited to 'OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs')
diff --git a/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs b/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs
index fbadd91..01066e6 100644
--- a/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IInventoryArchiverModule.cs
@@ -26,6 +26,7 @@
*/
using System;
+using System.Collections.Generic;
using System.IO;
using OpenSim.Services.Interfaces;
@@ -59,6 +60,20 @@ namespace OpenSim.Region.Framework.Interfaces
/// The stream from which the inventory archive will be loaded
/// true if the first stage of the operation succeeded, false otherwise
bool DearchiveInventory(string firstName, string lastName, string invPath, string pass, Stream loadStream);
+
+ ///
+ /// Dearchive a user's inventory folder from the given stream
+ ///
+ ///
+ ///
+ /// The inventory path in which to place the loaded folders and items
+ /// The stream from which the inventory archive will be loaded
+ /// Dearchiving options. At the moment, the only option is ("merge", true). This merges
+ /// the loaded IAR with existing folders where possible.
+ /// true if the first stage of the operation succeeded, false otherwise
+ bool DearchiveInventory(
+ string firstName, string lastName, string invPath, string pass, Stream loadStream,
+ Dictionary options);
///
/// Archive a user's inventory folder to the given stream
@@ -70,5 +85,19 @@ namespace OpenSim.Region.Framework.Interfaces
/// The stream to which the inventory archive will be saved
/// true if the first stage of the operation succeeded, false otherwise
bool ArchiveInventory(Guid id, string firstName, string lastName, string invPath, string pass, Stream saveStream);
+
+ ///
+ /// Archive a user's inventory folder to the given stream
+ ///
+ /// ID representing this request. This will later be returned in the save event
+ ///
+ ///
+ /// The inventory path from which the inventory should be saved.
+ /// The stream to which the inventory archive will be saved
+ /// Archiving options. Currently, there are none.
+ /// true if the first stage of the operation succeeded, false otherwise
+ bool ArchiveInventory(
+ Guid id, string firstName, string lastName, string invPath, string pass, Stream saveStream,
+ Dictionary options);
}
}
--
cgit v1.1