aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMW2008-12-12 21:17:49 +0000
committerMW2008-12-12 21:17:49 +0000
commit6e07ef9cb9637a54e8e5d60ed898a6449a812865 (patch)
treec2e06f2c99a4292535da7dd049884db899fa50dc
parent* minor: remove mono compiler warning (diff)
downloadopensim-SC-6e07ef9cb9637a54e8e5d60ed898a6449a812865.zip
opensim-SC-6e07ef9cb9637a54e8e5d60ed898a6449a812865.tar.gz
opensim-SC-6e07ef9cb9637a54e8e5d60ed898a6449a812865.tar.bz2
opensim-SC-6e07ef9cb9637a54e8e5d60ed898a6449a812865.tar.xz
Add OpenSim.Framework.IClientFileTransfer.
-rw-r--r--OpenSim/Framework/IClientFileTransfer.cs14
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLFileTransfer.cs5
2 files changed, 15 insertions, 4 deletions
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 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4
5namespace OpenSim.Framework
6{
7 public delegate void UploadComplete(string filename, byte[] fileData, IClientAPI remoteClient);
8 public delegate void UploadAborted(string filename, ulong id, IClientAPI remoteClient);
9
10 public interface IClientFileTransfer
11 {
12 bool RequestUpload(string clientFileName, UploadComplete uploadCompleteCallback, UploadAborted abortCallback);
13 }
14}
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;
13 13
14namespace OpenSim.Region.ClientStack.LindenUDP 14namespace OpenSim.Region.ClientStack.LindenUDP
15{ 15{
16 public delegate void UploadComplete(string filename, byte[] fileData, IClientAPI remoteClient); 16 public class LLFileTransfer : IClientFileTransfer
17 public delegate void UploadAborted(string filename, ulong id, IClientAPI remoteClient);
18
19 public class LLFileTransfer
20 { 17 {
21 protected IClientAPI m_clientAPI; 18 protected IClientAPI m_clientAPI;
22 19