~ubuntu-branches/ubuntu/precise/telepathy-glib/precise-201111172307

« back to all changes in this revision

Viewing changes to spec/Channel_Interface_Picture.xml

  • Committer: Ken VanDine
  • Date: 2011-11-17 20:53:21 UTC
  • mfrom: (1.6.34 upstream)
  • Revision ID: ken.vandine@canonical.com-20111117205321-l704j7kr1zgw5v9h
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" ?>
 
2
<node name="/Channel_Interface_Picture"
 
3
  xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
 
4
 
 
5
  <tp:copyright>Copyright © 2010–2011 Collabora Ltd.</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
      Lesser 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., 51 Franklin Street, Fifth Floor, Boston, MA
 
20
      02110-1301, USA.</p>
 
21
  </tp:license>
 
22
 
 
23
  <interface name="org.freedesktop.Telepathy.Channel.Interface.Picture1"
 
24
             tp:causes-havoc="draft">
 
25
    <tp:requires interface="org.freedesktop.Telepathy.Channel"/>
 
26
    <tp:added version="0.25.0"/>
 
27
    <annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal"
 
28
                value="true"/>
 
29
 
 
30
    <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
 
31
      <p>An interface channels can implement to support a picture. Most
 
32
        of the time this will be implemented by channels implementing
 
33
        the <tp:dbus-ref
 
34
        namespace="ofdT.Channel.Interface">Room2</tp:dbus-ref>
 
35
        interface. Note that this interface is not restricted to
 
36
        Text channels, and can also be used on Call channels.</p>
 
37
 
 
38
      <tp:rationale>
 
39
        This is a separate interface from
 
40
        <tp:dbus-ref namespace="ofdT.Channel.Interface">RoomConfig1</tp:dbus-ref>
 
41
        because (a) it's possible some protocol might support pictures for
 
42
        1:1 chats; and (b) it avoids downloading an unwanted picture in a
 
43
        GetAll request.
 
44
      </tp:rationale>
 
45
    </tp:docstring>
 
46
 
 
47
    <method name="SetPicture" tp:name-for-bindings="Set_Picture">
 
48
      <arg direction="in" type="ay" name="Picture">
 
49
        <tp:docstring>The new picture.</tp:docstring>
 
50
      </arg>
 
51
      <arg direction="in" type="s" name="MIME_Type">
 
52
        <tp:docstring>The MIME type.</tp:docstring>
 
53
      </arg>
 
54
      <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
 
55
        <p>Set the room's picture. Clients SHOULD look at the picture
 
56
          flags before calling this method as the user might not have
 
57
          permission to set the picture.</p>
 
58
 
 
59
        <p>A successful return of this method indicates a successful
 
60
          change in picture, but clients should still listen for changes
 
61
          to the <tp:member-ref>Picture</tp:member-ref> property for
 
62
          further changes by other users or the server.</p>
 
63
      </tp:docstring>
 
64
      <tp:possible-errors>
 
65
        <tp:error name="org.freedesktop.Telepathy.Error.NotImplemented"/>
 
66
        <tp:error name="org.freedesktop.Telepathy.Error.InvalidArgument">
 
67
          <tp:docstring>
 
68
            Picture is somehow invalid: e.g. unsupported MIME type,
 
69
            too big, etc.
 
70
          </tp:docstring>
 
71
        </tp:error>
 
72
        <tp:error name="org.freedesktop.Telepathy.Error.PermissionDenied"/>
 
73
      </tp:possible-errors>
 
74
    </method>
 
75
 
 
76
    <property name="Picture" tp:name-for-bindings="Picture"
 
77
              type="(ays)" tp:type="Avatar" access="read">
 
78
      <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
 
79
        <p>The picture representing this channel.</p>
 
80
 
 
81
        <p>This property may change during the lifetime of the channel and
 
82
          MUST not be included in a channel request.</p>
 
83
      </tp:docstring>
 
84
    </property>
 
85
 
 
86
    <property name="Actor" tp:name-for-bindings="Actor"
 
87
              type="s" access="read">
 
88
      <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
 
89
        <p>The normalized contact ID representing who last modified
 
90
          the picture, or the empty string if it is not known.</p>
 
91
      </tp:docstring>
 
92
    </property>
 
93
 
 
94
    <property name="ActorHandle" tp:name-for-bindings="Actor_Handle"
 
95
              type="u" tp:type="Contact_Handle" access="read">
 
96
      <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
 
97
        <p>The handle corresponding to <tp:member-ref>Actor</tp:member-ref>,
 
98
        or 0 if the <tp:member-ref>Actor</tp:member-ref> is unknown.</p>
 
99
      </tp:docstring>
 
100
    </property>
 
101
 
 
102
    <property name="Timestamp" tp:name-for-bindings="Timestamp"
 
103
              type="x" tp:type="Unix_Timestamp64" access="read">
 
104
      <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
 
105
        <p>A unix timestamp indicating when the picture was last
 
106
         modified, or <code>INT_MAX64</code> if unknown.</p>
 
107
      </tp:docstring>
 
108
    </property>
 
109
 
 
110
    <property name="CanSet" tp:name-for-bindings="Can_Set"
 
111
              type="b" access="read">
 
112
      <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
 
113
        <p>TRUE if the <tp:member-ref>Picture</tp:member-ref> property
 
114
          can be set by the user by calling
 
115
          <tp:member-ref>SetPicture</tp:member-ref>, otherwise
 
116
          FALSE.</p>
 
117
 
 
118
        <p>If implementations are unsure of what this value should be
 
119
          it SHOULD still be set to what it believes the value
 
120
          is. As a result, clients should be aware that
 
121
          <tp:member-ref>SetPicture</tp:member-ref> can still fail
 
122
          even with this property set to TRUE.</p>
 
123
      </tp:docstring>
 
124
    </property>
 
125
 
 
126
    <property name="SupportedMIMETypes"
 
127
      tp:name-for-bindings="Supported_MIME_Types"
 
128
      type="as" access="read" tp:immutable="yes">
 
129
      <tp:docstring>
 
130
        An array of supported MIME types (e.g. "image/jpeg").
 
131
        Clients MAY assume that the first type in this array is preferred.
 
132
      </tp:docstring>
 
133
    </property>
 
134
 
 
135
    <property name="MinimumHeight"
 
136
      tp:name-for-bindings="Minimum_Height"
 
137
      type="u" access="read" tp:immutable="yes">
 
138
      <tp:docstring>
 
139
        The minimum height in pixels of the picture, which MAY be 0.
 
140
      </tp:docstring>
 
141
    </property>
 
142
 
 
143
    <property name="MinimumWidth"
 
144
      tp:name-for-bindings="Minimum_Width"
 
145
      type="u" access="read" tp:immutable="yes">
 
146
      <tp:docstring>
 
147
        The minimum width in pixels of the picture, which MAY be 0.
 
148
      </tp:docstring>
 
149
    </property>
 
150
 
 
151
    <property name="RecommendedHeight"
 
152
      tp:name-for-bindings="Recommended_Height"
 
153
      type="u" access="read" tp:immutable="yes">
 
154
      <tp:docstring>
 
155
        The recommended height in pixels of the picture, or 0 if
 
156
        there is no preferred height.
 
157
      </tp:docstring>
 
158
    </property>
 
159
 
 
160
    <property name="RecommendedWidth"
 
161
      tp:name-for-bindings="Recommended_Width"
 
162
      type="u" access="read" tp:immutable="yes">
 
163
      <tp:docstring>
 
164
        The recommended width in pixels of the picture, or 0 if
 
165
        there is no preferred width.
 
166
      </tp:docstring>
 
167
    </property>
 
168
 
 
169
    <property name="MaximumHeight"
 
170
      tp:name-for-bindings="Maximum_Height"
 
171
      type="u" access="read" tp:immutable="yes">
 
172
      <tp:docstring>
 
173
        The maximum height in pixels of the picture, or 0 if
 
174
        there is no limit.
 
175
      </tp:docstring>
 
176
    </property>
 
177
 
 
178
    <property name="MaximumWidth"
 
179
      tp:name-for-bindings="Maximum_Width"
 
180
      type="u" access="read" tp:immutable="yes">
 
181
      <tp:docstring>
 
182
        The maximum width in pixels of the picture, or 0 if
 
183
        there is no limit.
 
184
      </tp:docstring>
 
185
    </property>
 
186
 
 
187
    <property name="MaximumBytes"
 
188
      tp:name-for-bindings="Maximum_Bytes"
 
189
      type="u" access="read" tp:immutable="yes">
 
190
      <tp:docstring>
 
191
        The maximum size in bytes of the picture, or 0 if
 
192
        there is no limit.
 
193
      </tp:docstring>
 
194
    </property>
 
195
 
 
196
  </interface>
 
197
</node>
 
198
<!-- vim:set sw=2 sts=2 et ft=xml: -->