From c98a9d1ccd3b7f4862e2dfcf85017067607c83f5 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 19 Feb 2009 13:02:11 +0000 Subject: Make the implementation of the message transfer module protected virtual throughout --- .../Avatar/InstantMessage/MessageTransferModule.cs | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'OpenSim/Region/CoreModules/Avatar') diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs index 38d2d21..94a856b 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs @@ -44,11 +44,11 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); // private bool m_Enabled = false; - private bool m_Gridmode = false; - private List m_Scenes = new List(); - private Dictionary m_UserRegionMap = new Dictionary(); + protected bool m_Gridmode = false; + protected List m_Scenes = new List(); + protected Dictionary m_UserRegionMap = new Dictionary(); - public void Initialise(Scene scene, IConfigSource config) + public virtual void Initialise(Scene scene, IConfigSource config) { IConfig cnf = config.Configs["Messaging"]; if (cnf != null && cnf.GetString( @@ -75,25 +75,25 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage } } - public void PostInitialise() + public virtual void PostInitialise() { } - public void Close() + public virtual void Close() { } - public string Name + public virtual string Name { get { return "MessageTransferModule"; } } - public bool IsSharedModule + public virtual bool IsSharedModule { get { return true; } } - public void SendInstantMessage(GridInstantMessage im, MessageResultNotification result) + public virtual void SendInstantMessage(GridInstantMessage im, MessageResultNotification result) { UUID toAgentID = new UUID(im.toAgentID); @@ -402,7 +402,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage /// public delegate void GridInstantMessageDelegate(GridInstantMessage im, MessageResultNotification result, ulong prevRegionHandle); - private void GridInstantMessageCompleted(IAsyncResult iar) + protected virtual void GridInstantMessageCompleted(IAsyncResult iar) { GridInstantMessageDelegate icon = (GridInstantMessageDelegate)iar.AsyncState; @@ -551,7 +551,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage /// RegionInfo we pull the data out of to send the request to /// The Instant Message data Hashtable /// Bool if the message was successfully delivered at the other side. - private bool doIMSending(RegionInfo reginfo, Hashtable xmlrpcdata) + protected virtual bool doIMSending(RegionInfo reginfo, Hashtable xmlrpcdata) { ArrayList SendParams = new ArrayList(); @@ -595,7 +595,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage /// /// UUID of region to get the region handle for /// -// private ulong getLocalRegionHandleFromUUID(UUID regionID) +// private virtual ulong getLocalRegionHandleFromUUID(UUID regionID) // { // ulong returnhandle = 0; // @@ -618,7 +618,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage /// /// The GridInstantMessage object /// Hashtable containing the XMLRPC request - private Hashtable ConvertGridInstantMessageToXMLRPC(GridInstantMessage msg) + protected virtual Hashtable ConvertGridInstantMessageToXMLRPC(GridInstantMessage msg) { Hashtable gim = new Hashtable(); gim["from_agent_id"] = msg.fromAgentID.ToString(); -- cgit v1.1