OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
/// <summary>
/// Tell the client about the various child items and folders contained in the requested folder.
/// </summary>
/// <param name="remoteClient"></param>
/// <param name="folderID"></param>
/// <param name="ownerID"></param>
/// <param name="fetchFolders"></param>
/// <param name="fetchItems"></param>
/// <param name="sortOrder"></param>
Tell the client about the various child items and folders contained in the requested folder.
Tell the client about the various child items and folders contained in the requested folder .
public void HandleFetchInventoryDescendents(IClientAPI remoteClient, UUID folderID, UUID ownerID,
                                                    bool fetchFolders, bool fetchItems, int sortOrder)
        {
            if (folderID == UUID.Zero)
                return;
            InventoryFolderImpl fold = null;
            if (LibraryService != null && LibraryService.LibraryRootFolder != null)
            {
                if ((fold = LibraryService.LibraryRootFolder.FindFolder(folderID)) != null)
                {
                    remoteClient.SendInventoryFolderDetails(
                        fold.Owner, folderID, fold.RequestListOfItems(),
                        fold.RequestListOfFolders(), fold.Version, fetchFolders, fetchItems);
                    return;
                }
            }
            SendInventoryDelegate d = SendInventoryAsync;
            d.BeginInvoke(remoteClient, folderID, ownerID, fetchFolders, fetchItems, sortOrder, SendInventoryComplete, d);
        }
public void HandleFetchInventoryDescendents ( IClientAPI remoteClient , UUID folderID , UUID ownerID , bool fetchFolders , bool fetchItems , int sortOrder ) { if ( folderID == UUID . Zero ) return ; InventoryFolderImpl fold = null ; if ( LibraryService != null && LibraryService . LibraryRootFolder != null ) { if ( ( fold = LibraryService . LibraryRootFolder . FindFolder ( folderID ) ) != null ) { remoteClient . SendInventoryFolderDetails ( fold . Owner , folderID , fold . RequestListOfItems ( ) , fold . RequestListOfFolders ( ) , fold . Version , fetchFolders , fetchItems ) ; return ; } } SendInventoryDelegate d = SendInventoryAsync ; d . BeginInvoke ( remoteClient , folderID , ownerID , fetchFolders , fetchItems , sortOrder , SendInventoryComplete , d ) ; }
Tell the client about the various child items and folders contained in the requested folder.
Tell the client about the various child items and folders contained in the requested folder .
//            m_log.DebugFormat( //                "[USER INVENTORY]: HandleFetchInventoryDescendents() for {0}, folder={1}, fetchFolders={2}, fetchItems={3}, sortOrder={4}", //                remoteClient.Name, folderID, fetchFolders, fetchItems, sortOrder); // FIXME MAYBE: We're not handling sortOrder! // TODO: This code for looking in the folder for the library should be folded somewhere else // so that this class doesn't have to know the details (and so that multiple libraries, etc. // can be handled transparently). // We're going to send the reply async, because there may be // an enormous quantity of packets -- basically the entire inventory! // We don't want to block the client thread while all that is happening.
remoteClient
IClientAPI
None
folderID
UUID
None
ownerID
UUID
None
fetchFolders
bool
None
fetchItems
bool
None
sortOrder
int
None