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

View File

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

View File

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

View File

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

View File

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