Add the events needed for profiles.

Fixes Mantis #3324
0.6.5-rc1
Melanie Thielker 2009-03-27 22:47:41 +00:00
parent 0e44666976
commit cbef90fec6
6 changed files with 83 additions and 0 deletions

View File

@ -742,6 +742,10 @@ namespace OpenSim.Client.MXP.ClientStack
public event Action<IClientAPI> OnLogout;
public event Action<IClientAPI> OnConnectionClosed;
public event RetrieveInstantMessages OnRetrieveInstantMessages;
public event PickDelete OnPickDelete;
public event PickGodDelete OnPickGodDelete;
public event PickInfoUpdate OnPickInfoUpdate;
public event AvatarNotesUpdate OnAvatarNotesUpdate;
#pragma warning restore 67
#endregion

View File

@ -427,6 +427,10 @@ 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);
public delegate void PickDelete(IClientAPI client, UUID pickID);
public delegate void PickGodDelete(IClientAPI client, UUID agentID, UUID pickID, UUID queryID);
public delegate void PickInfoUpdate(IClientAPI client, UUID pickID, UUID creatorID, bool topPick, string name, string desc, UUID snapshotID, int sortOrder, bool enabled);
public delegate void AvatarNotesUpdate(IClientAPI client, UUID targetID, string notes);
#endregion
@ -755,6 +759,11 @@ namespace OpenSim.Framework
event UpdateUserInfo OnUpdateUserInfo;
event RetrieveInstantMessages OnRetrieveInstantMessages;
event PickDelete OnPickDelete;
event PickGodDelete OnPickGodDelete;
event PickInfoUpdate OnPickInfoUpdate;
event AvatarNotesUpdate OnAvatarNotesUpdate;
/// <summary>
/// Set the debug level at which packet output should be printed to console.

View File

@ -298,6 +298,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
private RetrieveInstantMessages handlerRetrieveInstantMessages;
private PickDelete handlerPickDelete;
private PickGodDelete handlerPickGodDelete;
private PickInfoUpdate handlerPickInfoUpdate;
private AvatarNotesUpdate handlerAvatarNotesUpdate;
private readonly IGroupsModule m_GroupsModule;
//private TerrainUnacked handlerUnackedTerrain = null;
@ -1083,6 +1088,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public event RetrieveInstantMessages OnRetrieveInstantMessages;
public event PickDelete OnPickDelete;
public event PickGodDelete OnPickGodDelete;
public event PickInfoUpdate OnPickInfoUpdate;
public event AvatarNotesUpdate OnAvatarNotesUpdate;
public void ActivateGesture(UUID assetId, UUID gestureId)
{
}
@ -7517,6 +7527,51 @@ namespace OpenSim.Region.ClientStack.LindenUDP
handlerRetrieveInstantMessages(this);
break;
case PacketType.PickDelete:
PickDeletePacket pickDelete =
(PickDeletePacket)Pack;
handlerPickDelete = OnPickDelete;
if (handlerPickDelete != null)
handlerPickDelete(this, pickDelete.Data.PickID);
break;
case PacketType.PickGodDelete:
PickGodDeletePacket pickGodDelete =
(PickGodDeletePacket)Pack;
handlerPickGodDelete = OnPickGodDelete;
if (handlerPickGodDelete != null)
handlerPickGodDelete(this,
pickGodDelete.AgentData.AgentID,
pickGodDelete.Data.PickID,
pickGodDelete.Data.QueryID);
break;
case PacketType.PickInfoUpdate:
PickInfoUpdatePacket pickInfoUpdate =
(PickInfoUpdatePacket)Pack;
handlerPickInfoUpdate = OnPickInfoUpdate;
if (handlerPickInfoUpdate != null)
handlerPickInfoUpdate(this,
pickInfoUpdate.Data.PickID,
pickInfoUpdate.Data.CreatorID,
pickInfoUpdate.Data.TopPick,
Utils.BytesToString(pickInfoUpdate.Data.Name),
Utils.BytesToString(pickInfoUpdate.Data.Desc),
pickInfoUpdate.Data.SnapshotID,
pickInfoUpdate.Data.SortOrder,
pickInfoUpdate.Data.Enabled);
break;
case PacketType.AvatarNotesUpdate:
AvatarNotesUpdatePacket avatarNotesUpdate =
(AvatarNotesUpdatePacket)Pack;
handlerAvatarNotesUpdate = OnAvatarNotesUpdate;
if (handlerAvatarNotesUpdate != null)
handlerAvatarNotesUpdate(this,
avatarNotesUpdate.Data.TargetID,
Utils.BytesToString(avatarNotesUpdate.Data.Notes));
break;
default:
m_log.Warn("[CLIENT]: unhandled packet " + Pack);
break;

View File

@ -255,6 +255,11 @@ namespace OpenSim.Region.Examples.SimpleModule
public event RetrieveInstantMessages OnRetrieveInstantMessages;
public event PickDelete OnPickDelete;
public event PickGodDelete OnPickGodDelete;
public event PickInfoUpdate OnPickInfoUpdate;
public event AvatarNotesUpdate OnAvatarNotesUpdate;
#pragma warning restore 67
private UUID myID = UUID.Random();

View File

@ -361,6 +361,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC
public event RetrieveInstantMessages OnRetrieveInstantMessages;
public event PickDelete OnPickDelete;
public event PickGodDelete OnPickGodDelete;
public event PickInfoUpdate OnPickInfoUpdate;
public event AvatarNotesUpdate OnAvatarNotesUpdate;
#pragma warning restore 67
#endregion

View File

@ -268,6 +268,11 @@ namespace OpenSim.Tests.Common.Mock
public event RetrieveInstantMessages OnRetrieveInstantMessages;
public event PickDelete OnPickDelete;
public event PickGodDelete OnPickGodDelete;
public event PickInfoUpdate OnPickInfoUpdate;
public event AvatarNotesUpdate OnAvatarNotesUpdate;
#pragma warning restore 67
/// <value>