Add OpenSim.Framework.IClientFileTransfer.
parent
96ea54409f
commit
6e07ef9cb9
|
@ -0,0 +1,14 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace OpenSim.Framework
|
||||||
|
{
|
||||||
|
public delegate void UploadComplete(string filename, byte[] fileData, IClientAPI remoteClient);
|
||||||
|
public delegate void UploadAborted(string filename, ulong id, IClientAPI remoteClient);
|
||||||
|
|
||||||
|
public interface IClientFileTransfer
|
||||||
|
{
|
||||||
|
bool RequestUpload(string clientFileName, UploadComplete uploadCompleteCallback, UploadAborted abortCallback);
|
||||||
|
}
|
||||||
|
}
|
|
@ -13,10 +13,7 @@ using OpenSim.Region.Environment.Scenes;
|
||||||
|
|
||||||
namespace OpenSim.Region.ClientStack.LindenUDP
|
namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
{
|
{
|
||||||
public delegate void UploadComplete(string filename, byte[] fileData, IClientAPI remoteClient);
|
public class LLFileTransfer : IClientFileTransfer
|
||||||
public delegate void UploadAborted(string filename, ulong id, IClientAPI remoteClient);
|
|
||||||
|
|
||||||
public class LLFileTransfer
|
|
||||||
{
|
{
|
||||||
protected IClientAPI m_clientAPI;
|
protected IClientAPI m_clientAPI;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue