~ubuntu-branches/ubuntu/feisty/libtelepathy/feisty

« back to all changes in this revision

Viewing changes to spec/Connection_Interface_Contact_Info.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sjoerd Simons
  • Date: 2007-03-12 11:43:26 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20070312114326-v4aezxb6sr8utds1
Tags: 0.0.51-2
Bump shlibs

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" ?>
 
2
<node name="/Connection_Interface_Contact_Info" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
 
3
  <tp:copyright> Copyright (C) 2005, 2006 Collabora Limited </tp:copyright>
 
4
  <tp:copyright> Copyright (C) 2005, 2006 Nokia Corporation </tp:copyright>
 
5
  <tp:copyright> Copyright (C) 2006 INdT </tp:copyright>
 
6
  <tp:license xmlns="http://www.w3.org/1999/xhtml">
 
7
    <p>This library is free software; you can redistribute it and/or
 
8
modify it under the terms of the GNU Lesser General Public
 
9
License as published by the Free Software Foundation; either
 
10
version 2.1 of the License, or (at your option) any later version.</p>
 
11
 
 
12
<p>This library is distributed in the hope that it will be useful,
 
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
15
Library General Public License for more details.</p>
 
16
 
 
17
<p>You should have received a copy of the GNU Lesser General Public
 
18
License along with this library; if not, write to the Free Software
 
19
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA</p>
 
20
  </tp:license>
 
21
  <interface name="org.freedesktop.Telepathy.Connection.Interface.ContactInfo">
 
22
    <tp:requires interface="org.freedesktop.Telepathy.Connection"/>
 
23
    <signal name="GotContactInfo">
 
24
      <arg name="contact" type="u">
 
25
        <tp:docstring>
 
26
          An integer handle of the contact ID on the server
 
27
        </tp:docstring>
 
28
      </arg>
 
29
      <arg name="vcard" type="s">
 
30
        <tp:docstring>
 
31
          The XML string containing their vcard information
 
32
        </tp:docstring>
 
33
      </arg>
 
34
      <tp:docstring>
 
35
        Emitted when information has been received from the server with
 
36
        the details of a particular contact.
 
37
      </tp:docstring>
 
38
    </signal>
 
39
    <method name="RequestContactInfo">
 
40
      <arg direction="in" name="contact" type="u">
 
41
        <tp:docstring>
 
42
          An integer handle for the contact to request info for
 
43
        </tp:docstring>
 
44
      </arg>
 
45
      <tp:docstring>
 
46
        Request information for a given contact. The function will return
 
47
        after a GotContactInfo signal has been emitted for the contact, or
 
48
        an error returned.
 
49
      </tp:docstring>
 
50
      <tp:possible-errors>
 
51
        <tp:error name="org.freedesktop.Telepathy.Error.Disconnected"/>
 
52
        <tp:error name="org.freedesktop.Telepathy.Error.NetworkError"/>
 
53
        <tp:error name="org.freedesktop.Telepathy.Error.InvalidHandle"/>
 
54
        <tp:error name="org.freedesktop.Telepathy.Error.PermissionDenied"/>
 
55
        <tp:error name="org.freedesktop.Telepathy.Error.NotAvailable"/>
 
56
      </tp:possible-errors>
 
57
    </method>
 
58
    <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
 
59
      <p>THIS INTERFACE IS DEPRECATED AND SHOULD NOT BE USED. A new version
 
60
        will be proposed in the 0.13 specification branch.</p>
 
61
 
 
62
      <p>An interface for requesting information about a contact on a given
 
63
    connection. Information is returned as a vCard represented as an XML
 
64
    string, in the format defined by JEP-0054: vcard-temp specifiation
 
65
    from the Jabber Software Foundation (this is derived from the
 
66
    aborted IETF draft draft-dawson-vcard-xml-dtd-01).</p>
 
67
 
 
68
    <p>Implementations using PHOTO or SOUND elements should use the URI encoding
 
69
    where possible, and not provide base64 encoded data to avoid unnecessary
 
70
    bus traffic. Clients should not implement support for these encoded forms.
 
71
    A separate interface will be provided for transferring user avatars.</p>
 
72
 
 
73
    <p>The following extended element names are also added to represent
 
74
      information from other systems which are not based around vCards:</p>
 
75
    <dl>
 
76
      <dt>USERNAME</dt><dd>the username of the contact on their local system (used on IRC for example)</dd>
 
77
      <dt>HOSTNAME</dt><dd>the fully qualified hostname, or IPv4 or IPv6 address of the contact in dotted quad or colon-separated form</dd>
 
78
    </dl>
 
79
    </tp:docstring>
 
80
  </interface>
 
81
</node>
 
82
<!-- vim:set sw=2 sts=2 et ft=xml: -->