2006-12-19 23:15:29 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
|
|
|
|
|
namespace libsecondlife.InventorySystem
|
|
|
|
|
{
|
|
|
|
|
public class DownloadRequest_Folder
|
|
|
|
|
{
|
2007-01-05 02:32:21 +00:00
|
|
|
public LLUUID FolderID;
|
|
|
|
|
|
|
|
|
|
public int Expected = int.MaxValue;
|
|
|
|
|
public int Received = 0;
|
|
|
|
|
public int LastReceivedAtTick = 0;
|
|
|
|
|
|
|
|
|
|
public bool FetchFolders = true;
|
|
|
|
|
public bool FetchItems = true;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Do we want to recursively download this folder?
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Recurse = true;
|
|
|
|
|
|
|
|
|
|
public ManualResetEvent RequestComplete = new ManualResetEvent(false);
|
|
|
|
|
|
2007-01-05 22:38:15 +00:00
|
|
|
public DownloadRequest_Folder(LLUUID folderID, bool recurse, bool fetchFolders, bool fetchItems)
|
2007-01-05 02:32:21 +00:00
|
|
|
{
|
|
|
|
|
FolderID = folderID;
|
|
|
|
|
Recurse = recurse;
|
|
|
|
|
FetchFolders = fetchFolders;
|
|
|
|
|
FetchItems = fetchItems;
|
|
|
|
|
LastReceivedAtTick = Environment.TickCount;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DownloadRequest_EventArgs : EventArgs
|
|
|
|
|
{
|
|
|
|
|
public DownloadRequest_Folder DownloadRequest;
|
2006-12-19 23:15:29 +00:00
|
|
|
}
|
|
|
|
|
}
|