summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Dasmohapatra <vivek@collabora.co.uk>2011-03-21 17:59:45 +0000
committerVivek Dasmohapatra <vivek@collabora.co.uk>2011-04-05 14:19:09 +0100
commitf83fbe87848689edc028837de829b8f0748c9eaa (patch)
tree36989fd4cac6c59382b701734a143962bc732940
parent71940213008b3c46ffb66af68ff4ae17c6fa72cd (diff)
downloadtelepathy-mission-control-f83fbe87848689edc028837de829b8f0748c9eaa.tar.gz
Draft messages interface for the channel dispatcher
-rw-r--r--src/dispatcher.xml1
-rw-r--r--xml/Channel_Dispatcher_Interface_Messages_DRAFT.xml57
-rw-r--r--xml/Makefile.am1
3 files changed, 59 insertions, 0 deletions
diff --git a/src/dispatcher.xml b/src/dispatcher.xml
index be7c7e24..8f5abd22 100644
--- a/src/dispatcher.xml
+++ b/src/dispatcher.xml
@@ -3,5 +3,6 @@
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="../xml/Channel_Dispatcher_Interface_Redispatch.xml"/>
+<xi:include href="../xml/Channel_Dispatcher_Interface_Messages_DRAFT.xml"/>
</tp:spec>
diff --git a/xml/Channel_Dispatcher_Interface_Messages_DRAFT.xml b/xml/Channel_Dispatcher_Interface_Messages_DRAFT.xml
new file mode 100644
index 00000000..61a398b7
--- /dev/null
+++ b/xml/Channel_Dispatcher_Interface_Messages_DRAFT.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" ?>
+<node name="/Channel_Dispatcher_Interface_Messages_Draft"
+ xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
+
+ <tp:copyright>Copyright (C) 2011 Collabora Ltd.</tp:copyright>
+ <tp:copyright>Copyright (C) 2011 Nokia Corporation</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.ChannelDispatcher.Interface.Messages.DRAFT"
+ tp:causes-havoc="not yet final">
+
+ <tp:requires interface="org.freedesktop.Telepathy.ChannelDispatcher"/>
+
+ <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
+ <p>
+ This interface allows DBus clients to use the ChannelDispatcher to
+ send one-off text messages to a contact, identified by account and
+ target ID, without requiring the caller to handle channels or be
+ the primary message UI.
+ </p>
+
+ <tp:rationale>
+ <p>
+ This enables entities other than the main UI to send messages
+ to contacts.
+ </p>
+ </tp:rationale>
+ </tp:docstring>
+
+ <method name="SendMessage" tp:name-for-bindings="Send_Message">
+ <arg direction="in" name="Account" type="o"/>
+ <arg direction="in" name="TargetID" type="s"/>
+ <arg direction="in" name="Message" type="aa{sv}"
+ tp:type="Message_Part[]"/>
+ <arg direction="in" name="Flags" type="u"/>
+ <arg direction="out" name="Token" type="s"/>
+ </method>
+
+ </interface>
+</node>
+
diff --git a/xml/Makefile.am b/xml/Makefile.am
index dc6a6aa9..e2ac35b6 100644
--- a/xml/Makefile.am
+++ b/xml/Makefile.am
@@ -29,6 +29,7 @@ SPECS = \
Connection_Manager_Interface_Account_Storage.xml \
Connection_Interface_Contact_Capabilities.xml \
Connection_Interface_Contact_Capabilities_Draft1.xml \
+ Channel_Dispatcher_Interface_Messages_DRAFT.xml \
Connection_Interface_Power_Saving.xml