diff --git a/OpenSim/Framework/IClientFileTransfer.cs b/OpenSim/Framework/IClientFileTransfer.cs new file mode 100644 index 0000000000..8cdf795521 --- /dev/null +++ b/OpenSim/Framework/IClientFileTransfer.cs @@ -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); + } +} diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLFileTransfer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLFileTransfer.cs index 27ebfdd79a..b2e7bc491a 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLFileTransfer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLFileTransfer.cs @@ -13,10 +13,7 @@ using OpenSim.Region.Environment.Scenes; namespace OpenSim.Region.ClientStack.LindenUDP { - public delegate void UploadComplete(string filename, byte[] fileData, IClientAPI remoteClient); - public delegate void UploadAborted(string filename, ulong id, IClientAPI remoteClient); - - public class LLFileTransfer + public class LLFileTransfer : IClientFileTransfer { protected IClientAPI m_clientAPI;