From 7b1c42836d58bd0b2f03ad45575520d8ecf8119d Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 20 Feb 2009 12:15:40 +0000 Subject: Committing interface and stubs for IM interception --- .../CoreModules/Avatar/InstantMessage/MessageTransferModule.cs | 7 +++++++ OpenSim/Region/Framework/Interfaces/IMessageTransferModule.cs | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs index 94a856b..4ba11ac 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs @@ -647,5 +647,12 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage return gim; } + public void RegisterMessageFilter(Byte dialog, bool always, MessageFilterDelegate fn) + { + } + + public void DeregisterMessageFilter(Byte dialog, MessageFilterDelegate fn) + { + } } } diff --git a/OpenSim/Region/Framework/Interfaces/IMessageTransferModule.cs b/OpenSim/Region/Framework/Interfaces/IMessageTransferModule.cs index 40c224d..51ac37c 100644 --- a/OpenSim/Region/Framework/Interfaces/IMessageTransferModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IMessageTransferModule.cs @@ -25,14 +25,19 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +using System; using OpenSim.Framework; namespace OpenSim.Region.Framework.Interfaces { public delegate void MessageResultNotification(bool success); - + public delegate bool MessageFilterDelegate(GridInstantMessage im); + public interface IMessageTransferModule { void SendInstantMessage(GridInstantMessage im, MessageResultNotification result); + + void RegisterMessageFilter(Byte dialog, bool always, MessageFilterDelegate fn); + void DeregisterMessageFilter(Byte dialog, MessageFilterDelegate fn); } } -- cgit v1.1