aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs41
1 files changed, 40 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index c40c0ec..557ab30 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -59,7 +59,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
59 /// Handles new client connections 59 /// Handles new client connections
60 /// Constructor takes a single Packet and authenticates everything 60 /// Constructor takes a single Packet and authenticates everything
61 /// </summary> 61 /// </summary>
62 public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat, IClientIPEndpoint, IStatsCollector 62 public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat, IClientInventory, IClientIPEndpoint, IStatsCollector
63 { 63 {
64 /// <value> 64 /// <value>
65 /// Debug packet level. See OpenSim.RegisterConsoleCommands() for more details. 65 /// Debug packet level. See OpenSim.RegisterConsoleCommands() for more details.
@@ -460,6 +460,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
460// DebugPacketLevel = 1; 460// DebugPacketLevel = 1;
461 461
462 RegisterInterface<IClientIM>(this); 462 RegisterInterface<IClientIM>(this);
463 RegisterInterface<IClientInventory>(this);
463 RegisterInterface<IClientChat>(this); 464 RegisterInterface<IClientChat>(this);
464 RegisterInterface<IClientIPEndpoint>(this); 465 RegisterInterface<IClientIPEndpoint>(this);
465 466
@@ -12421,5 +12422,43 @@ namespace OpenSim.Region.ClientStack.LindenUDP
12421 if (reply != null) 12422 if (reply != null)
12422 OutPacket(reply, ThrottleOutPacketType.Task); 12423 OutPacket(reply, ThrottleOutPacketType.Task);
12423 } 12424 }
12425
12426 public void SendRemoveInventoryFolders(UUID[] folders)
12427 {
12428 IEventQueue eq = Scene.RequestModuleInterface<IEventQueue>();
12429
12430 if (eq == null)
12431 {
12432 m_log.DebugFormat("[LLCLIENT]: Null event queue");
12433 return;
12434 }
12435
12436 OSDMap llsd = new OSDMap(3);
12437
12438 OSDMap AgentDataMap = new OSDMap(1);
12439 AgentDataMap.Add("AgentID", OSD.FromUUID(AgentId));
12440 AgentDataMap.Add("SessionID", OSD.FromUUID(SessionId));
12441
12442 OSDArray AgentData = new OSDArray(1);
12443 AgentData.Add(AgentDataMap);
12444
12445 llsd.Add("AgentData", AgentData);
12446
12447 OSDArray FolderData = new OSDArray();
12448
12449 foreach (UUID folder in folders)
12450 {
12451 OSDMap FolderDataMap = new OSDMap(2);
12452 FolderDataMap.Add("FolderID", OSD.FromUUID(folder));
12453 FolderDataMap.Add("AgentID", OSD.FromUUID(AgentId));
12454
12455 FolderData.Add(FolderDataMap);
12456 }
12457
12458 llsd.Add("FolderData", FolderData);
12459
12460 eq.Enqueue(BuildEvent("RemoveInventoryFolder",
12461 llsd), AgentId);
12462 }
12424 } 12463 }
12425} 12464}