aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar
diff options
context:
space:
mode:
authorDiva Canto2012-11-11 07:31:25 -0800
committerDiva Canto2012-11-11 07:31:25 -0800
commit79d51c27bb4a38040216b607eb0dac8e25167727 (patch)
tree04369135e37a2b7d045cf837e51d39b0daa3d191 /OpenSim/Region/CoreModules/Avatar
parentOne more module converted: GroupsModule. (diff)
downloadopensim-SC_OLD-79d51c27bb4a38040216b607eb0dac8e25167727.zip
opensim-SC_OLD-79d51c27bb4a38040216b607eb0dac8e25167727.tar.gz
opensim-SC_OLD-79d51c27bb4a38040216b607eb0dac8e25167727.tar.bz2
opensim-SC_OLD-79d51c27bb4a38040216b607eb0dac8e25167727.tar.xz
One more module converted: InventoryArchiverModule.
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs39
1 files changed, 31 insertions, 8 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs
index fdba682..f5a146d 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiverModule.cs
@@ -39,20 +39,18 @@ using OpenSim.Framework.Console;
39using OpenSim.Region.Framework.Interfaces; 39using OpenSim.Region.Framework.Interfaces;
40using OpenSim.Region.Framework.Scenes; 40using OpenSim.Region.Framework.Scenes;
41using OpenSim.Services.Interfaces; 41using OpenSim.Services.Interfaces;
42using Mono.Addins;
42 43
43namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver 44namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
44{ 45{
45 /// <summary> 46 /// <summary>
46 /// This module loads and saves OpenSimulator inventory archives 47 /// This module loads and saves OpenSimulator inventory archives
47 /// </summary> 48 /// </summary>
48 public class InventoryArchiverModule : IRegionModule, IInventoryArchiverModule 49 [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
50 public class InventoryArchiverModule : ISharedRegionModule, IInventoryArchiverModule
49 { 51 {
50 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 52 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
51 53
52 public string Name { get { return "Inventory Archiver Module"; } }
53
54 public bool IsSharedModule { get { return true; } }
55
56 /// <value> 54 /// <value>
57 /// Enable or disable checking whether the iar user is actually logged in 55 /// Enable or disable checking whether the iar user is actually logged in
58 /// </value> 56 /// </value>
@@ -99,9 +97,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
99// public InventoryArchiverModule(bool disablePresenceChecks) 97// public InventoryArchiverModule(bool disablePresenceChecks)
100// { 98// {
101// DisablePresenceChecks = disablePresenceChecks; 99// DisablePresenceChecks = disablePresenceChecks;
102// } 100 // }
101
102 #region ISharedRegionModule
103 103
104 public void Initialise(Scene scene, IConfigSource source) 104 public void Initialise(IConfigSource source)
105 {
106 }
107
108 public void AddRegion(Scene scene)
105 { 109 {
106 if (m_scenes.Count == 0) 110 if (m_scenes.Count == 0)
107 { 111 {
@@ -144,10 +148,29 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
144 m_scenes[scene.RegionInfo.RegionID] = scene; 148 m_scenes[scene.RegionInfo.RegionID] = scene;
145 } 149 }
146 150
147 public void PostInitialise() {} 151 public void RemoveRegion(Scene scene)
152 {
153 }
148 154
149 public void Close() {} 155 public void Close() {}
150 156
157 public void RegionLoaded(Scene scene)
158 {
159 }
160
161 public void PostInitialise()
162 {
163 }
164
165 public Type ReplaceableInterface
166 {
167 get { return null; }
168 }
169
170 public string Name { get { return "Inventory Archiver Module"; } }
171
172 #endregion
173
151 /// <summary> 174 /// <summary>
152 /// Trigger the inventory archive saved event. 175 /// Trigger the inventory archive saved event.
153 /// </summary> 176 /// </summary>