aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Agent/Xfer
diff options
context:
space:
mode:
authorMelanie2010-01-26 14:53:14 +0000
committerMelanie2010-01-26 14:53:14 +0000
commitb80ea002654bd0ab232aee2b0f842be18b8d4edc (patch)
tree35971637efd7ec9cbfaee88bc5ea56edffddfc1b /OpenSim/Region/CoreModules/Agent/Xfer
parentMerge branch 'master' of ssh://melanie@3dhosting.de/var/git/careminster into ... (diff)
parentReplace dome tabs with spaces (diff)
downloadopensim-SC-b80ea002654bd0ab232aee2b0f842be18b8d4edc.zip
opensim-SC-b80ea002654bd0ab232aee2b0f842be18b8d4edc.tar.gz
opensim-SC-b80ea002654bd0ab232aee2b0f842be18b8d4edc.tar.bz2
opensim-SC-b80ea002654bd0ab232aee2b0f842be18b8d4edc.tar.xz
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/CoreModules/Agent/Xfer')
-rw-r--r--OpenSim/Region/CoreModules/Agent/Xfer/XferModule.cs30
1 files changed, 21 insertions, 9 deletions
diff --git a/OpenSim/Region/CoreModules/Agent/Xfer/XferModule.cs b/OpenSim/Region/CoreModules/Agent/Xfer/XferModule.cs
index ef7dce8..d062361 100644
--- a/OpenSim/Region/CoreModules/Agent/Xfer/XferModule.cs
+++ b/OpenSim/Region/CoreModules/Agent/Xfer/XferModule.cs
@@ -27,6 +27,7 @@
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using Mono.Addins;
30using Nini.Config; 31using Nini.Config;
31using OpenMetaverse; 32using OpenMetaverse;
32using OpenSim.Framework; 33using OpenSim.Framework;
@@ -35,7 +36,8 @@ using OpenSim.Region.Framework.Scenes;
35 36
36namespace OpenSim.Region.CoreModules.Agent.Xfer 37namespace OpenSim.Region.CoreModules.Agent.Xfer
37{ 38{
38 public class XferModule : IRegionModule, IXfer 39 [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule")]
40 public class XferModule : INonSharedRegionModule, IXfer
39 { 41 {
40 private Scene m_scene; 42 private Scene m_scene;
41 private Dictionary<string, XferRequest> Requests = new Dictionary<string, XferRequest>(); 43 private Dictionary<string, XferRequest> Requests = new Dictionary<string, XferRequest>();
@@ -52,9 +54,13 @@ namespace OpenSim.Region.CoreModules.Agent.Xfer
52 public DateTime timeStamp; 54 public DateTime timeStamp;
53 } 55 }
54 56
55 #region IRegionModule Members 57 #region INonSharedRegionModule Members
56 58
57 public void Initialise(Scene scene, IConfigSource config) 59 public void Initialise(IConfigSource config)
60 {
61 }
62
63 public void AddRegion(Scene scene)
58 { 64 {
59 m_scene = scene; 65 m_scene = scene;
60 m_scene.EventManager.OnNewClient += NewClient; 66 m_scene.EventManager.OnNewClient += NewClient;
@@ -62,22 +68,28 @@ namespace OpenSim.Region.CoreModules.Agent.Xfer
62 m_scene.RegisterModuleInterface<IXfer>(this); 68 m_scene.RegisterModuleInterface<IXfer>(this);
63 } 69 }
64 70
65 public void PostInitialise() 71 public Type ReplaceableInterface
66 { 72 {
73 get { return null; }
67 } 74 }
68 75
69 public void Close() 76 public void RegionLoaded(Scene scene)
70 { 77 {
71 } 78 }
72 79
73 public string Name 80 public void RemoveRegion(Scene scene)
74 { 81 {
75 get { return "XferModule"; } 82 scene.EventManager.OnNewClient -= NewClient;
83 scene.UnregisterModuleInterface<IXfer>(this);
76 } 84 }
77 85
78 public bool IsSharedModule 86 public void Close()
87 {
88 }
89
90 public string Name
79 { 91 {
80 get { return false; } 92 get { return "XferModule"; }
81 } 93 }
82 94
83 #endregion 95 #endregion