summaryrefslogtreecommitdiff
path: root/xml/Channel_Dispatcher_Interface_Messages_DRAFT.xml
blob: 61a398b79f6611ad61f30485b703b906389face1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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>