From 5ece0fd90c64c8e26515d37c398c49475d9bd7de Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Thu, 27 Oct 2011 14:20:14 +0100 Subject: extensions: add Chan.I.FileTransfer.Metadata draft interface Signed-off-by: Jonny Lamb --- .../Channel_Interface_File_Transfer_Metadata.xml | 71 ++++++++++++++++++++++ extensions/Makefile.am | 1 + extensions/all.xml | 3 + 3 files changed, 75 insertions(+) create mode 100644 extensions/Channel_Interface_File_Transfer_Metadata.xml (limited to 'extensions') diff --git a/extensions/Channel_Interface_File_Transfer_Metadata.xml b/extensions/Channel_Interface_File_Transfer_Metadata.xml new file mode 100644 index 00000000..ea42332d --- /dev/null +++ b/extensions/Channel_Interface_File_Transfer_Metadata.xml @@ -0,0 +1,71 @@ + + + Copyright (C) 2011 Collabora Ltd. + + +

This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version.

+ +

This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details.

+ +

You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA.

+
+ + + + + + +

This interface exists to provide a mechanism to include + arbitrary additional information in file transfers. For + example, one might want to send a document and include the + number of times the character P appeared in the file, so would + add NumberOfPs=42 to the + Metadata property.

+ +

ServiceName living in its own + property makes it easier for specific applications to send + files to each other, bypassing the standard handler. For + example, the Banshee Telepathy plugin handler could match on + ServiceName so the Empathy file + transfer is not used instead.

+
+ + + +

A string representing the service name that will be used + over the file transfer channel. This property is equivalent + to the Channel.Type.DBusTube.ServiceName + and Channel.Type.StreamTube.Service + properties. If no service name is given then this property + will be the empty string.

+
+
+ + + +

Additional information about the file transfer set by the + channel initiator. If no additional information is given then + this property will be empty.

+
+
+ +
+
+ diff --git a/extensions/Makefile.am b/extensions/Makefile.am index de6c2566..2a4dbdc4 100644 --- a/extensions/Makefile.am +++ b/extensions/Makefile.am @@ -6,6 +6,7 @@ EXTRA_DIST = \ connection.xml \ Salut_Plugin_Test.xml \ Connection_Future.xml \ + Channel_Interface_File_Transfer_Metadata.xml \ all.xml noinst_LTLIBRARIES = libsalut-extensions.la diff --git a/extensions/all.xml b/extensions/all.xml index 59586e7c..73132972 100644 --- a/extensions/all.xml +++ b/extensions/all.xml @@ -25,6 +25,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

+ from="Telepathy specification"/> +