Update Conn.Interface.Addressing from tp-spec.
Andre Moreira Magalhaes (andrunko)
12 years ago
75 | 75 | </tp:docstring> |
76 | 76 | </arg> |
77 | 77 | |
78 | <arg direction="out" type="a{ua{sv}}" name="Requested_Contacts" | |
78 | <arg direction="out" type="a{su}" name="Requested" | |
79 | tp:type="Addressing_Normalization_Map"> | |
80 | <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> | |
81 | <p>A mapping from requested vCard addresses to the corresponding | |
82 | contact handles.</p> | |
83 | ||
84 | <p>Requested addresses that are not valid or understood for this protocol | |
85 | MUST be omitted from the mapping.</p> | |
86 | </tp:docstring> | |
87 | </arg> | |
88 | ||
89 | <arg direction="out" type="a{ua{sv}}" name="Attributes" | |
79 | 90 | tp:type="Contact_Attributes_Map"> |
80 | 91 | <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> |
81 | 92 | <p>A dictionary mapping the contact handles to contact attributes. |
85 | 96 | the attribute should either be omitted from the result or |
86 | 97 | replaced with a default value.</p> |
87 | 98 | |
88 | <p>Requested addresses that cannot be satisfied MUST be ommitted | |
89 | from the mapping.</p> | |
99 | <p>Requested addresses that are not valid or understood for this protocol | |
100 | MUST be omitted from the mapping.</p> | |
90 | 101 | |
91 | 102 | <p>Each contact's attributes will always include at least the |
92 | 103 | identifier that would be obtained by inspecting the handle |
93 | (<code>org.freedesktop.Telepathy.Connection/contact-id</code>), | |
94 | and the vCard field used for requesting the contact in | |
95 | <code>org.freedesktop.Telepathy.Connection.Interface.ContactInfo/info</code>. | |
104 | (<code>org.freedesktop.Telepathy.Connection/contact-id</code>). | |
96 | 105 | </p> |
97 | 106 | </tp:docstring> |
98 | 107 | </arg> |
142 | 151 | </tp:docstring> |
143 | 152 | </arg> |
144 | 153 | |
145 | <arg direction="out" type="a{ua{sv}}" name="Requested_Contacts" | |
154 | <arg direction="out" type="a{su}" name="Requested" | |
155 | tp:type="Addressing_Normalization_Map"> | |
156 | <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> | |
157 | <p>A mapping of requested URIs to the corresponding contact handles.</p> | |
158 | ||
159 | <p>Requested URIs that are not valid or understood for this protocol | |
160 | MUST be omitted from the mapping.</p> | |
161 | </tp:docstring> | |
162 | </arg> | |
163 | ||
164 | <arg direction="out" type="a{ua{sv}}" name="Attributes" | |
146 | 165 | tp:type="Contact_Attributes_Map"> |
147 | 166 | <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> |
148 | 167 | <p>A dictionary mapping the contact handles to contact attributes. |
152 | 171 | the attribute should either be omitted from the result or |
153 | 172 | replaced with a default value.</p> |
154 | 173 | |
155 | <p>Requested URIs that cannot be satisfied MUST be ommitted | |
156 | from the mapping.</p> | |
174 | <p>Requested URIs that are not valid or understood for this protocol | |
175 | MUST be omitted from the mapping.</p> | |
157 | 176 | |
158 | 177 | <p>Each contact's attributes will always include at least the |
159 | 178 | identifier that would be obtained by inspecting the handle |
200 | 219 | </tp:docstring> |
201 | 220 | </tp:contact-attribute> |
202 | 221 | |
203 | <tp:contact-attribute name="requested-address" type="(ss)" | |
204 | tp:type="Requested_Address"> | |
205 | <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> | |
206 | <p>The contact's address, as it was requested | |
207 | through <tp:member-ref>GetContactsByVCardField</tp:member-ref>. This | |
208 | attribute MUST be ommitted if the contact was not retrieved | |
209 | through <tp:member-ref>GetContactsByVCardField</tp:member-ref>.</p> | |
210 | <tp:rationale> | |
211 | <p>When retrieving more than one contact | |
212 | through <tp:member-ref>GetContactsByVCardField</tp:member-ref>, | |
213 | there needs to be a way to map the given contact back o the | |
214 | original request.</p> | |
215 | </tp:rationale> | |
216 | </tp:docstring> | |
217 | </tp:contact-attribute> | |
218 | ||
219 | <tp:contact-attribute name="requested-uri" type="s"> | |
220 | <tp:docstring xmlns="http://www.w3.org/1999/xhtml"> | |
221 | <p>The contact's URI, as it was requested through | |
222 | <tp:member-ref>GetContactsByURI</tp:member-ref>. This | |
223 | attribute MUST be ommitted if the contact was not retrieved | |
224 | through <tp:member-ref>GetContactsByURI</tp:member-ref>.</p> | |
225 | <tp:rationale> | |
226 | <p>When retrieving more than one contact | |
227 | through <tp:member-ref>GetContactsByURI</tp:member-ref>, | |
228 | there needs to be a way to map the given contact back o the | |
229 | original request.</p> | |
230 | </tp:rationale> | |
231 | </tp:docstring> | |
232 | </tp:contact-attribute> | |
233 | ||
234 | <tp:struct name="Requested_Address" array-name=""> | |
222 | <tp:mapping name="Addressing_Normalization_Map"> | |
235 | 223 | <tp:docstring> |
236 | The address that has been requested by | |
224 | A map from URIs/vCard addresses to the corresponding handle. | |
225 | </tp:docstring> | |
226 | <tp:added version="0.25.UNRELEASED"/> | |
227 | ||
228 | <tp:member type="s" name="Requested_String"> | |
229 | <tp:docstring> | |
230 | The URI or vCard address that has been requested by | |
237 | 231 | <tp:member-ref>GetContactsByVCardField</tp:member-ref> or |
238 | 232 | <tp:member-ref>GetContactsByURI</tp:member-ref>. |
239 | </tp:docstring> | |
240 | ||
241 | <tp:member name="Field" type="s"> | |
242 | <tp:docstring> | |
243 | The vCard field used in <tp:member-ref>GetContactsByVCardField</tp:member-ref>. | |
244 | 233 | </tp:docstring> |
245 | 234 | </tp:member> |
246 | ||
247 | <tp:member name="Address" type="s"> | |
248 | <tp:docstring> | |
249 | The address that was requested. | |
235 | <tp:member type="u" name="Handle" tp:type="Contact_Handle"> | |
236 | <tp:docstring> | |
237 | A nonzero handle. | |
250 | 238 | </tp:docstring> |
251 | 239 | </tp:member> |
252 | ||
253 | </tp:struct> | |
240 | </tp:mapping> | |
254 | 241 | |
255 | 242 | </interface> |
256 | 243 | </node> |