Plumb in the RetrieveInstantMessages event that is sent by the viewer

when it is ready to receive offline IM
GenericGridServerConcept
Melanie Thielker 2009-02-26 20:11:55 +00:00
parent 18382ebfd9
commit ed2de7ac82
6 changed files with 21 additions and 0 deletions

View File

@ -1082,6 +1082,8 @@ namespace OpenSim.Client.MXP.ClientStack
public event Action<IClientAPI> OnLogout; public event Action<IClientAPI> OnLogout;
public event Action<IClientAPI> OnConnectionClosed; public event Action<IClientAPI> OnConnectionClosed;
public event RetrieveInstantMessages OnRetrieveInstantMessages;
public void SendBlueBoxMessage(UUID FromAvatarID, string FromAvatarName, string Message) public void SendBlueBoxMessage(UUID FromAvatarID, string FromAvatarName, string Message)
{ {

View File

@ -426,6 +426,7 @@ namespace OpenSim.Framework
public delegate void UserInfoRequest(IClientAPI client); public delegate void UserInfoRequest(IClientAPI client);
public delegate void UpdateUserInfo(bool imViaEmail, bool visible, IClientAPI client); public delegate void UpdateUserInfo(bool imViaEmail, bool visible, IClientAPI client);
public delegate void RetrieveInstantMessages(IClientAPI client);
#endregion #endregion
@ -752,6 +753,8 @@ namespace OpenSim.Framework
event UserInfoRequest OnUserInfoRequest; event UserInfoRequest OnUserInfoRequest;
event UpdateUserInfo OnUpdateUserInfo; event UpdateUserInfo OnUpdateUserInfo;
event RetrieveInstantMessages OnRetrieveInstantMessages;
/// <summary> /// <summary>
/// Set the debug level at which packet output should be printed to console. /// Set the debug level at which packet output should be printed to console.

View File

@ -292,6 +292,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
private UserInfoRequest handlerUserInfoRequest; private UserInfoRequest handlerUserInfoRequest;
private UpdateUserInfo handlerUpdateUserInfo; private UpdateUserInfo handlerUpdateUserInfo;
private RetrieveInstantMessages handlerRetrieveInstantMessages;
private readonly IGroupsModule m_GroupsModule; private readonly IGroupsModule m_GroupsModule;
//private TerrainUnacked handlerUnackedTerrain = null; //private TerrainUnacked handlerUnackedTerrain = null;
@ -1075,6 +1077,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public event UserInfoRequest OnUserInfoRequest; public event UserInfoRequest OnUserInfoRequest;
public event UpdateUserInfo OnUpdateUserInfo; public event UpdateUserInfo OnUpdateUserInfo;
public event RetrieveInstantMessages OnRetrieveInstantMessages;
public void ActivateGesture(UUID assetId, UUID gestureId) public void ActivateGesture(UUID assetId, UUID gestureId)
{ {
} }
@ -7433,6 +7437,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
eventNotificationRemove.EventData.EventID, this); eventNotificationRemove.EventData.EventID, this);
break; break;
case PacketType.RetrieveInstantMessages:
handlerRetrieveInstantMessages = OnRetrieveInstantMessages;
if (handlerRetrieveInstantMessages != null)
handlerRetrieveInstantMessages(this);
break;
default: default:
m_log.Warn("[CLIENT]: unhandled packet " + Pack); m_log.Warn("[CLIENT]: unhandled packet " + Pack);
break; break;

View File

@ -253,6 +253,8 @@ namespace OpenSim.Region.Examples.SimpleModule
public event UserInfoRequest OnUserInfoRequest; public event UserInfoRequest OnUserInfoRequest;
public event UpdateUserInfo OnUpdateUserInfo; public event UpdateUserInfo OnUpdateUserInfo;
public event RetrieveInstantMessages OnRetrieveInstantMessages;
#pragma warning restore 67 #pragma warning restore 67
private UUID myID = UUID.Random(); private UUID myID = UUID.Random();

View File

@ -359,6 +359,8 @@ namespace OpenSim.Region.OptionalModules.World.NPC
public event UserInfoRequest OnUserInfoRequest; public event UserInfoRequest OnUserInfoRequest;
public event UpdateUserInfo OnUpdateUserInfo; public event UpdateUserInfo OnUpdateUserInfo;
public event RetrieveInstantMessages OnRetrieveInstantMessages;
#pragma warning restore 67 #pragma warning restore 67
#endregion #endregion

View File

@ -264,6 +264,8 @@ namespace OpenSim.Tests.Common.Mock
public event UserInfoRequest OnUserInfoRequest; public event UserInfoRequest OnUserInfoRequest;
public event UpdateUserInfo OnUpdateUserInfo; public event UpdateUserInfo OnUpdateUserInfo;
public event RetrieveInstantMessages OnRetrieveInstantMessages;
#pragma warning restore 67 #pragma warning restore 67
/// <value> /// <value>