From 6e07ef9cb9637a54e8e5d60ed898a6449a812865 Mon Sep 17 00:00:00 2001 From: MW Date: Fri, 12 Dec 2008 21:17:49 +0000 Subject: Add OpenSim.Framework.IClientFileTransfer. --- OpenSim/Framework/IClientFileTransfer.cs | 14 ++++++++++++++ OpenSim/Region/ClientStack/LindenUDP/LLFileTransfer.cs | 5 +---- 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 OpenSim/Framework/IClientFileTransfer.cs (limited to 'OpenSim') diff --git a/OpenSim/Framework/IClientFileTransfer.cs b/OpenSim/Framework/IClientFileTransfer.cs new file mode 100644 index 0000000..8cdf795 --- /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 27ebfdd..b2e7bc4 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; -- cgit v1.1