summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2011-10-26 19:04:59 +0100
committerJonny Lamb <jonny.lamb@collabora.co.uk>2011-10-26 19:04:59 +0100
commit88d4fd40e74c28c440794caac44211bd66f5c748 (patch)
treef1f69a29cf3ae1b341d3ca541a23a63da48c94de /spec
parentfc8af1d28588bdb738c531b8429e49b9a76b983e (diff)
Chan.Iface.FileTransfer.Metadata: add initial version
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/Channel_Interface_File_Transfer_Metadata.xml71
-rw-r--r--spec/spec/all.xml1
2 files changed, 72 insertions, 0 deletions
diff --git a/spec/spec/Channel_Interface_File_Transfer_Metadata.xml b/spec/spec/Channel_Interface_File_Transfer_Metadata.xml
new file mode 100644
index 000000000..ea42332da
--- /dev/null
+++ b/spec/spec/Channel_Interface_File_Transfer_Metadata.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" ?>
+<node name="/Channel_Interface_File_Transfer_Metadata"
+ xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
+ <tp:copyright>Copyright (C) 2011 Collabora Ltd.</tp:copyright>
+
+ <tp:license xmlns="http://www.w3.org/1999/xhtml">
+ <p>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.</p>
+
+ <p>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.</p>
+
+ <p>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.</p>
+ </tp:license>
+
+ <interface
+ name="org.freedesktop.Telepathy.Channel.Interface.FileTransfer.Metadata">
+ <tp:requires interface="org.freedesktop.Telepathy.Channel.Type.FileTransfer"/>
+ <tp:added version="0.24.UNRELEASED"/>
+
+ <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+ <p>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 <tt>NumberOfPs=42</tt> to the
+ <tp:member-ref>Metadata</tp:member-ref> property.</p>
+
+ <p><tp:member-ref>ServiceName</tp:member-ref> 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
+ <tp:member-ref>ServiceName</tp:member-ref> so the Empathy file
+ transfer is not used instead.</p>
+ </tp:docstring>
+
+ <property name="ServiceName" tp:name-for-bindings="Service_Name"
+ type="s" access="readwrite" tp:immutable="sì"
+ tp:requestable="naturalmente">
+ <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+ <p>A string representing the service name that will be used
+ over the file transfer channel. This property is equivalent
+ to the <tp:dbus-ref
+ namespace="ofdT">Channel.Type.DBusTube.ServiceName</tp:dbus-ref>
+ and <tp:dbus-ref
+ namespace="ofdT">Channel.Type.StreamTube.Service</tp:dbus-ref>
+ properties. If no service name is given then this property
+ will be the empty string.</p>
+ </tp:docstring>
+ </property>
+
+ <property name="Metadata" tp:name-for-bindings="Metadata"
+ type="a{ss}" tp:type="String_String_Map" access="readwrite"
+ tp:immutable="sì" tp:requestable="naturalmente">
+ <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+ <p>Additional information about the file transfer set by the
+ channel initiator. If no additional information is given then
+ this property will be empty.</p>
+ </tp:docstring>
+ </property>
+
+ </interface>
+</node>
+<!-- vim:set sw=2 sts=2 et ft=xml: -->
diff --git a/spec/spec/all.xml b/spec/spec/all.xml
index 4a2ab1456..1e61fb207 100644
--- a/spec/spec/all.xml
+++ b/spec/spec/all.xml
@@ -162,6 +162,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</
<xi:include href="Channel_Interface_Addressing.xml"/>
<xi:include href="Channel_Interface_Anonymity.xml"/>
<xi:include href="Channel_Interface_Destroyable.xml"/>
+ <xi:include href="Channel_Interface_File_Transfer_Metadata.xml"/>
<xi:include href="Channel_Interface_Group.xml"/>
<xi:include href="Channel_Interface_Password.xml"/>
<xi:include href="Channel_Interface_Room.xml"/>