Codebase list telepathy-spec / 296d012
Imported Upstream version 0.17.3 Simon McVittie 15 years ago
14 changed file(s) with 407 addition(s) and 155 deletion(s). Raw diff Collapse all Expand all
0 Thu Apr 3 17:02:27 BST 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
1 tagged telepathy-spec 0.17.3
2
3 Thu Apr 3 16:58:35 BST 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
4 * Adjust whitespace in expected `make check` output
5
6 Thu Apr 3 16:04:33 BST 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
7 * Revert marking Hold as API-stable - it's not ready right now
8
9 Thu Apr 3 15:28:18 BST 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
10 * Prepare for a 0.17.3 release
11
12 Thu Apr 3 15:28:10 BST 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
13 * Update NEWS
14
15 Thu Apr 3 15:20:50 BST 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
16 * Mark Hold as stable
17
18 Thu Mar 20 16:26:44 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
19 * Say that contacts on hold do not receive media, not streams
20
21 Thu Mar 20 16:26:31 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
22 * Call_State_Held should be 4, this is a bitfield
23
24 Thu Mar 20 16:06:53 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
25 * StreamHandler: rename UnholdFailed to UnholdFailure to be consistent with Error
26
27 Thu Mar 20 16:05:32 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
28 * Simplify the Hold interface by only having it manipulate whether we have put the channel on hold: whether others have put us on hold is now a call-state
29
30 Thu Mar 20 16:05:06 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
31 * Indicate whether other people have put us on hold as a call state
32
33 Wed Mar 19 13:50:04 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
34 * StreamHandler: add SetStreamHeld, HoldState, UnholdFailure
35
36 Wed Mar 19 16:51:00 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
37 * Say Handle_Type_None instead of 0
38
39 Wed Mar 19 16:49:51 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
40 * Connection: tidy up wording of handle, handle type in NewChannel signal
41
42 Wed Mar 19 16:49:41 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
43 * Connection: re-wrap long line
44
45 Wed Mar 19 16:21:55 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
46 * Capabilities: add whitespace between children of <interface>
47
48 Wed Mar 19 16:02:20 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
49 * Capabilities: move docstring, Connection_Capability_Flags to the top (moving the latter inside the <interface> in the process). Rewrap the docstring
50
51 Wed Mar 19 17:09:26 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
52 * Update NEWS for merges of tp-spec-smcv-hold, tp-spec-smcv-unbonging
53
54 Tue Mar 18 14:56:23 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
55 * Remove never-implemented legacy interfaces from all.xml so they don't end up in the spec HTML
56
57 Tue Mar 18 16:06:28 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
58 * Update NEWS with merged changes so far in 0.17.3
59
60 Tue Mar 18 13:37:49 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
61 * Move Handle, Contact_Handle, etc. from generic-types to Connection (since that's their scope)
62
63 Tue Mar 18 13:36:16 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
64 * ConnectionManager: annotate bus name returned from RequestChannel as a DBus_Bus_Name
65
66 Tue Mar 18 13:35:52 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
67 * ConnectionManager: remove remnant of inline list of protocols in ListProtocols (it's now documented under Protocol)
68
69 Tue Mar 18 13:35:26 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
70 * ConnectionManager: add some whitespace
71
72 Tue Mar 18 13:52:50 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
73 * Clarify interaction between ListPendingMessages(clear=true) and AcknowledgePendingMessages
74
75 Tue Mar 18 13:52:38 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
76 * Clarify exact meaning of AcknowledgePendingMessages
77
78 Mon Mar 17 17:32:07 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
79 * Deprecate clear=true argument to ListPendingMessages
80
81 Mon Mar 17 17:31:39 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
82 * Let AcknowledgePendingMessages raise NetworkError (in case it's actually sending acks on the network)
83
84 Mon Mar 17 17:31:11 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
85 * In AcknowledgePendingMessages, mark up interpretation of InvalidArgument so it displays in the HTML
86
87 Mon Mar 17 17:28:09 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
88 * Clarify that AcknowledgePendingMessages is the way to send message acknowledgements, in protocols that can
89
90 Thu Mar 13 18:46:45 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
91 * Channel_Type_Text: explain the Action message type better
92
93 Wed Mar 12 17:38:37 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
94 * Amend Text interface so Send emits Sent at the time that it returns, and SendError can only be emitted later.
95 This directly contradicts the interface docstring in previous spec versions
96 (up to 0.17.2), but agrees with what Gabble and Haze implement in practice.
97
98 Wed Mar 12 11:47:21 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
99 * Allow arrays of mappings
100
101 Wed Mar 12 11:47:01 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
102 * Allow rationale to be mixed in with HTML in docstrings
103
104 Wed Mar 12 11:20:08 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
105 * Channel_Type_Text: clarify semantics of Send, Sent, SendError based on Rob's explanation
106
107 Tue Mar 18 13:28:22 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
108 * Connection.GetSelfHandle: annotate return type as Contact_Handle
109
110 Tue Mar 18 13:28:08 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
111 * Connection.GetProtocol: annotate return type as Protocol
112
113 Tue Mar 18 13:33:31 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
114 * Connection: remove some trailing whitespace
115
116 Wed Mar 12 11:27:05 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
117 * Remove unnecessary textual type annotations (now obsoleted by markup)
118
119 Wed Mar 12 11:26:30 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
120 * Annotate Pending_Text_Message::Unix_Timestamp as type Unix_Timestamp
121
122 Wed Mar 12 11:19:49 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
123 * Channel_Type_Text: we like the whitespace
124
125 Mon Feb 25 19:08:30 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
126 * Add some whitespace to Channel_Type_Contact_List
127
128 Thu Mar 6 14:51:47 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
129 * Bump nano version
130
0131 Thu Mar 6 14:45:00 GMT 2008 Simon McVittie <simon.mcvittie@collabora.co.uk>
1132 tagged telepathy-spec 0.17.2
2133
00 This file contains the same edited highlights as the announcement emails.
11 For full details, see the ChangeLog in tarballs, or "darcs changes" in Darcs
22 checkouts.
3
4 telepathy-spec 0.17.3 (2008-04-03)
5 ==================================
6
7 The "please hold" release.
8
9 API changes:
10
11 * Change documented semantics of SendError to match what Gabble and Haze
12 have always done: Send emits Sent when the message is submitted, or no
13 signal on failure, and SendError is emitted *after* Sent if an error is
14 detected later
15
16 * Explain that AcknowledgePendingMessages is where "message received"
17 acknowledgements should be sent
18
19 * Some interfaces we've never actually implemented, which we do not believe
20 are necessarily very well thought-out, have been removed from the HTML
21 specification to reduce confusion:
22 - ContactInfo (XML vCards over D-Bus... what were we thinking?)
23 - ContactSearch (server-side searches like XEP-0055)
24 - Forwarding (an incomplete implementation of call-forwarding in telephony)
25 - Privacy (a much more complex version of the 'block' API)
26 - Transfer (transferring contacts between calls in telephony)
27
28 * Whether other people have put us on hold is now signalled as a call state
29
30 * The scope of the Hold interface has been reduced; it now only manipulates
31 whether we have put the call on hold, not whether other people have put
32 us on hold (note that the Hold interface is still considered experimental,
33 and it's likely to change in the next release)
34
35 API additions:
36
37 * Media.StreamHandler now has a SetStreamHeld signal to ask streaming clients
38 (stream-engine) to release or acquire the necessary resources for media
39 streaming, and HoldState and UnholdFailure methods so the streaming client
40 can indicate success or failure; these can be used to implement the
41 Hold interface
42
43 Deprecations:
44
45 * Passing clear=TRUE to ListPendingMessages (the client cannot guarantee that
46 the messages will actually be shown to the user or logged, if this is done)
47
48 Tools changes:
49
50 * Allow arrays of mappings
51
52 * Allow rationale to be interleaved with HTML in docstrings
353
454 telepathy-spec 0.17.2 (2008-03-06)
555 ==================================
9191 in a queue (e.g. 182 Queued in SIP, or call-waiting in telephony).
9292 </tp:docstring>
9393 </tp:flag>
94
95 <tp:flag suffix="Held" value="4">
96 <tp:docstring>
97 The contact has placed the call on hold, and will not receive
98 media from the local user or any other participants until they
99 unhold the call again.
100 </tp:docstring>
101 </tp:flag>
94102 </tp:flags>
95103
96104 </interface>
2323 <tp:requires interface="org.freedesktop.Telepathy.Channel.Type.StreamedMedia"/>
2424
2525 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
26 <p>Interface for channels where you or other members may put
27 the channel on hold. This only makes sense for channels where
26 <p>Interface for channels where you may put the channel on hold.
27 This only makes sense for channels where
2828 you are streaming media to or from the members.</p>
29
30 <p>If you are placed on hold, this indicates that some or all members
31 of the channel will no longer be receiving media streams from you.
32 If the channel has the MediaSignalling interface, client applications
33 should stop sending media to all members of the channel.</p>
34
35 <p>Depending on the protocol, it might not be possible to tell that
36 you're on hold, in which case the connection manager should always
37 indicate that you're not on hold unless it finds out otherwise.</p>
3829
3930 <p>If you place a channel on hold, this indicates that you do not wish
4031 to be sent media streams by any of its members and will be ignoring
4536 another call).</p>
4637 </tp:docstring>
4738
48 <tp:enum name="Channel_Hold_State" type="u">
49 <tp:docstring>
50 The possible hold states of a call.
51 </tp:docstring>
52 <tp:enumvalue suffix="None" value="0">
39 <method name="GetHoldState">
40 <arg name="Held" direction="out" type="b">
5341 <tp:docstring>
54 Neither the local user nor a remote member have placed the call on
55 hold.
56 </tp:docstring>
57 </tp:enumvalue>
58 <tp:enumvalue suffix="Local" value="1">
59 <tp:docstring>
60 The local user has put the call on hold.
61 </tp:docstring>
62 </tp:enumvalue>
63 <tp:enumvalue suffix="Remote" value="2">
64 <tp:docstring>
65 The call has been put on hold by a remote member.
66 </tp:docstring>
67 </tp:enumvalue>
68 <tp:enumvalue suffix="Both" value="3">
69 <tp:docstring>
70 The local user and a remote member have both placed the call
71 on hold.
72 </tp:docstring>
73 </tp:enumvalue>
74 </tp:enum>
75
76 <method name="GetHoldState">
77 <arg direction="out" type="u" tp:type="Channel_Hold_State">
78 <tp:docstring>
79 The channel's current hold state
42 True if the local user has placed the channel on hold.
8043 </tp:docstring>
8144 </arg>
8245 <tp:docstring>
83 Return the channel's current hold state.
46 Return whether the local user has placed the channel on hold.
8447 </tp:docstring>
8548 </method>
8649
8750 <signal name="HoldStateChanged">
88 <arg name="state" type="u" tp:type="Channel_Hold_State">
51 <arg name="Held" type="b">
8952 <tp:docstring>
90 An integer representing the new hold state
53 True if the local user has placed the channel on hold.
9154 </tp:docstring>
9255 </arg>
9356 <tp:docstring>
9457 Emitted to indicate that the hold state has changed for this channel.
9558 This may occur as a consequence of you requesting a change with
96 RequestHold, or the state changing as a result of a request from a
97 remote member or another process.
59 RequestHold, or the state changing as a result of a request from
60 another process.
9861 </tp:docstring>
9962 </signal>
10063
10164 <method name="RequestHold">
102 <arg direction="in" name="hold" type="b">
65 <arg direction="in" name="Hold" type="b">
10366 <tp:docstring>
10467 A boolean indicating whether or not the channel should be on hold
10568 </tp:docstring>
2020 <interface name="org.freedesktop.Telepathy.Channel.Type.ContactList">
2121 <tp:requires interface="org.freedesktop.Telepathy.Channel"/>
2222 <tp:requires interface="org.freedesktop.Telepathy.Channel.Interface.Group"/>
23
2324 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
2425 <p>A channel type for representing a list of people on the server which is
2526 not used for communication. This is intended for use with the interface
6364 server, so disconnecting from the server and reconnecting might cause
6465 empty groups to vanish.</p>
6566 </tp:docstring>
67
6668 </interface>
6769 </node>
6870 <!-- vim:set sw=2 sts=2 et ft=xml: -->
2929 on the Text channel type. The arguments of the Received signal
3030 also match this struct's signature.</tp:docstring>
3131 <tp:member type="u" tp:type="Message_ID" name="Identifier"/>
32 <tp:member type="u" name="Unix_Timestamp"/>
32 <tp:member type="u" tp:type="Unix_Timestamp" name="Unix_Timestamp"/>
3333 <tp:member type="u" tp:type="Contact_Handle" name="Sender"/>
3434 <tp:member type="u" tp:type="Channel_Text_Message_Type"
3535 name="Message_Type"/>
4646 <tp:docstring>
4747 Inform the channel that you have handled messages by displaying them to
4848 the user (or equivalent), so they can be removed from the pending queue.
49 If appropriate, the connection manager SHOULD send an acknowledgement
50 of receipt of the messages to the server when the client calls this
51 method.
4952 </tp:docstring>
5053 <tp:possible-errors>
5154 <tp:error name="org.freedesktop.Telepathy.Error.InvalidArgument">
52 A given message ID was not found, so no action was taken
55 <tp:docstring>
56 A given message ID was not found, so no action was taken
57 </tp:docstring>
5358 </tp:error>
59 <tp:error name="org.freedesktop.Telepathy.Error.NetworkError"/>
5460 </tp:possible-errors>
5561 </method>
62
5663 <method name="GetMessageTypes">
5764 <arg direction="out" type="au" tp:type="Channel_Text_Message_Type[]">
5865 <tp:docstring>
6471 channel.
6572 </tp:docstring>
6673 </method>
74
6775 <method name="ListPendingMessages">
6876 <arg direction="in" name="clear" type="b">
6977 <tp:docstring>
70 If true, remove all messages from the queue
78 If true, behave as if AcknowledgePendingMessages had also been
79 called. Setting this to true is NOT RECOMMENDED for clients that
80 have some sort of persistent message storage - clients SHOULD only
81 acknowledge messages after they have actually stored them, which is
82 impossible if this flag is true.
7183 </tp:docstring>
7284 </arg>
7385 <arg direction="out" type="a(uuuuus)" tp:type="Pending_Text_Message[]">
88100 remove then all.
89101 </tp:docstring>
90102 </method>
103
91104 <signal name="LostMessage">
92105 <tp:docstring>
93106 This signal is emitted to indicate that an incoming message was
95108 due to lack of memory.
96109 </tp:docstring>
97110 </signal>
111
98112 <signal name="Received">
99113 <arg name="id" type="u">
100114 <tp:docstring>
113127 </arg>
114128 <arg name="type" type="u" tp:type="Channel_Text_Message_Type">
115129 <tp:docstring>
116 The type of the message (normal, action, notice, etc), from
117 ChannelTextMessageType
130 The type of the message (normal, action, notice, etc.)
118131 </tp:docstring>
119132 </arg>
120133 <arg name="flags" type="u" tp:type="Channel_Text_Message_Flags">
121134 <tp:docstring>
122 A bitwise OR of the message flags as defined by ChannelTextMessageFlags
135 A bitwise OR of the message flags
123136 </tp:docstring>
124137 </arg>
125138 <arg name="text" type="s">
135148 AcknowledgePendingMessage method.
136149 </tp:docstring>
137150 </signal>
151
138152 <method name="Send">
139153 <arg direction="in" name="type" type="u" tp:type="Channel_Text_Message_Type">
140154 <tp:docstring>
141 An integer indicating the type of the message, from
142 ChannelTextMessageType
155 An integer indicating the type of the message
143156 </tp:docstring>
144157 </arg>
145158 <arg direction="in" name="text" type="s">
148161 </tp:docstring>
149162 </arg>
150163 <tp:docstring>
151 Request that a message be sent on this channel. The Sent signal will be
152 emitted when the message has been sent, and this method will return.
164 Request that a message be sent on this channel. When the message has
165 been submitted for delivery, this method will return and the Sent
166 signal will be emitted. If the message cannot be submitted for
167 delivery, the method returns an error and no signal is emitted.
153168 </tp:docstring>
154169 <tp:possible-errors>
155170 <tp:error name="org.freedesktop.Telepathy.Error.Disconnected"/>
158173 <tp:error name="org.freedesktop.Telepathy.Error.PermissionDenied"/>
159174 </tp:possible-errors>
160175 </method>
176
161177 <tp:enum name="Channel_Text_Send_Error" type="u">
162178 <tp:enumvalue suffix="Unknown" value="0">
163179 <tp:docstring>
191207 </tp:docstring>
192208 </tp:enumvalue>
193209 </tp:enum>
210
194211 <signal name="SendError">
195212 <arg name="error" type="u">
196213 <tp:docstring>
212229 The text of the message
213230 </tp:docstring>
214231 </arg>
215 <tp:docstring>
216 Signals that an outgoing message has failed to send. The error
217 will be one of the values from ChannelTextSendError.
232 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
233 <p>Signals that an outgoing message has failed to send. The error
234 will be one of the values from ChannelTextSendError.</p>
235
236 <p>This signal should only be emitted for messages for which
237 Sent has already been emitted and Send has already returned
238 success.</p>
218239 </tp:docstring>
219240 </signal>
241
220242 <signal name="Sent">
221243 <arg name="timestamp" type="u" tp:type="Unix_Timestamp">
222244 <tp:docstring>
235257 </tp:docstring>
236258 </arg>
237259 <tp:docstring>
238 Signals that a message has been sent on this channel.
260 Signals that a message has been submitted for sending.
239261 </tp:docstring>
240262 </signal>
263
241264 <tp:enum name="Channel_Text_Message_Type" type="u">
242265 <tp:enumvalue suffix="Normal" value="0">
243266 <tp:docstring>
247270 <tp:enumvalue suffix="Action" value="1">
248271 <tp:docstring>
249272 An action which might be presented to the user as
250 "* &lt;sender&gt; &lt;action&gt;"
273 "* &lt;sender&gt; &lt;action&gt;", such as an IRC CTCP
274 ACTION (typically selected by the "/me" command). For example, the
275 text of the message might be "drinks more coffee".
251276 </tp:docstring>
252277 </tp:enumvalue>
253278 <tp:enumvalue suffix="Notice" value="2">
261286 </tp:docstring>
262287 </tp:enumvalue>
263288 </tp:enum>
289
264290 <tp:flags name="Channel_Text_Message_Flags" value-prefix="Channel_Text_Message_Flag" type="u">
265291 <tp:flag suffix="Truncated" value="1">
266292 <tp:docstring>
269295 </tp:docstring>
270296 </tp:flag>
271297 </tp:flags>
298
272299 <tp:property name="anonymous" type="b">
273300 <tp:docstring>
274301 True if people may join the channel without other members being made
344371 A unix timestamp indicating when the subject was last modified.
345372 </tp:docstring>
346373 </tp:property>
374
347375 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
348376 <p>A channel type for sending and receiving messages in plain text,
349 with no formatting.</p>
377 with no formatting. In future specifications, channels for sending
378 and receiving messages that can be reduced to plain text (i.e.
379 formatted text) should also have this type.</p>
350380
351381 <p>When a message is received, an identifier is assigned and a
352382 Received signal emitted, and the message placed in a pending queue
364394 flags given in ChannelTextMessageFlags.</p>
365395
366396 <p>Sending messages can be requested using the Send method, which will
367 return and cause the Sent signal to be emitted when the message has
368 been delivered to the server, or SendError if there is a failure.</p>
397 return successfully and emit the Sent signal when the message has
398 been delivered to the server, or return an error with no signal
399 emission if there is a failure. If a message is sent but delivery
400 of the message later fails, this is indicated with the SendError
401 signal.</p>
369402
370403 <p>On protocols where additional contacts cannot be invited into
371404 a one-to-one chat, or where a one-to-one chat is just a series of
1717
1818 <p>You should have received a copy of the GNU Lesser General Public
1919 License along with this library; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</p>
20 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21 USA.</p>
2122 </tp:license>
2223 <interface name="org.freedesktop.Telepathy.Connection">
2324
3334 </tp:member>
3435 <tp:member type="u" tp:type="Handle_Type" name="Handle_Type">
3536 <tp:docstring>The type of the handle that the channel communicates
36 with, or 0 if there is no associated handle</tp:docstring>
37 with, or Handle_Type_None if there is no associated
38 handle</tp:docstring>
3739 </tp:member>
3840 <tp:member type="u" tp:type="Handle" name="Handle">
3941 <tp:docstring>The handle that the channel communicates with,
8082 </method>
8183
8284 <method name="GetProtocol">
83 <arg direction="out" type="s">
85 <arg direction="out" type="s" tp:type="Protocol">
8486 <tp:docstring>
8587 A string identifier for the protocol
8688 </tp:docstring>
9294 </method>
9395
9496 <method name="GetSelfHandle">
95 <arg direction="out" type="u">
97 <arg direction="out" type="u" tp:type="Contact_Handle">
9698 <tp:docstring>
9799 An integer handle representing the user
98100 </tp:docstring>
230232
231233 <arg name="handle_type" type="u" tp:type="Handle_Type">
232234 <tp:docstring>
233 An integer representing the type of handle this channel communicates with, which is zero if no handle is specified
235 An integer representing the type of handle this channel
236 communicates with, or Handle_Type_None if no handle is specified
234237 </tp:docstring>
235238 </arg>
236239
237240 <arg name="handle" type="u" tp:type="Handle">
238241 <tp:docstring>
239 A handle indicating the specific contact, room or list this channel communicates with, or zero if it is an anonymous channel
242 A handle indicating the specific contact, room or list this
243 channel communicates with, or zero if no handle is specified
240244 </tp:docstring>
241245 </arg>
242246
297301
298302 <arg direction="in" name="handle_type" type="u" tp:type="Handle_Type">
299303 <tp:docstring>
300 An integer representing the handle type, or zero if no handle is being specified
304 An integer representing the handle type, or Handle_Type_None if
305 no handle is specified
301306 </tp:docstring>
302307 </arg>
303308
304309 <arg direction="in" name="handle" type="u" tp:type="Handle">
305310 <tp:docstring>
306311 A nonzero integer handle representing a contact, room, list etc.
307 according to handle_type, or zero if the handle_type is zero
312 according to handle_type, or zero if the handle_type is
313 Handle_Type_None
308314 </tp:docstring>
309315 </arg>
310316
405411 </tp:docstring>
406412 </tp:enumvalue>
407413 </tp:enum>
414
415 <tp:simple-type name="Handle" type="u">
416 <tp:docstring>An unsigned 32-bit integer representing a
417 handle</tp:docstring>
418 </tp:simple-type>
419
420 <tp:simple-type name="Contact_Handle" type="u">
421 <tp:docstring>An unsigned 32-bit integer representing a handle of type
422 Handle_Type_Contact</tp:docstring>
423 </tp:simple-type>
424
425 <tp:simple-type name="Room_Handle" type="u">
426 <tp:docstring>An unsigned 32-bit integer representing a handle of type
427 Handle_Type_Room</tp:docstring>
428 </tp:simple-type>
429
430 <tp:simple-type name="List_Handle" type="u">
431 <tp:docstring>An unsigned 32-bit integer representing a handle of type
432 Handle_Type_List</tp:docstring>
433 </tp:simple-type>
434
435 <tp:simple-type name="Group_Handle" type="u">
436 <tp:docstring>An unsigned 32-bit integer representing a handle of type
437 Handle_Type_Group</tp:docstring>
438 </tp:simple-type>
408439
409440 <method name="RequestHandles">
410441 <arg direction="in" name="handle_type" type="u" tp:type="Handle_Type">
589620
590621 <p>Zero as a handle value is sometimes used as a "null" value to mean
591622 the absence of a contact, room, etc.</p>
592
623
593624 <p>Handles have per-type uniqueness, meaning that
594625 every (handle type, handle number) tuple is guaranteed to be unique within
595626 a connection and that a handle alone (without its type) is meaningless or
1919 </tp:license>
2020 <interface name="org.freedesktop.Telepathy.Connection.Interface.Capabilities">
2121 <tp:requires interface="org.freedesktop.Telepathy.Connection"/>
22
23 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
24 <p>An interface for connections where it is possible to know what channel
25 types may be requested before the request is made to the connection
26 object. Each capability represents a commitment by the connection
27 manager that it will ordinarily be able to create a channel when given
28 a request with the given type and handle.</p>
29
30 <p>Capabilities can pertain to a certain contact handle, representing
31 activities such as having a text chat or a voice call with the user, or
32 can be on the connection itself (where the handle will be zero), where
33 they represent the ability to create channels for chat rooms or
34 activities such as searching and room listing. The activities are
35 represented by the D-Bus interface name of the channel type for that
36 activity.</p>
37
38 <p>The generic capability flags are defined by
39 Connection_Capability_Flags.</p>
40
41 <p>In addition, channel types may have type specific capability flags of
42 their own, which are described in the documentation for each channel
43 type.</p>
44
45 <p>This interface also provides for user interfaces notifying the
46 connection manager of what capabilities to advertise for the user. This
47 is done by using the AdvertiseCapabilities method, and deals with the
48 interface names of channel types and the type specific flags pertaining
49 to them which are implemented by available client processes.</p>
50 </tp:docstring>
51
52 <tp:flags name="Connection_Capability_Flags"
53 value-prefix="Connection_Capability_Flag" type="u">
54 <tp:flag suffix="Create" value="1">
55 <tp:docstring>
56 The given channel type and handle can be given to RequestChannel to
57 create a new channel of this type.
58 </tp:docstring>
59 </tp:flag>
60 <tp:flag suffix="Invite" value="2">
61 <tp:docstring>
62 The given contact can be invited to an existing channel of this type.
63 </tp:docstring>
64 </tp:flag>
65 </tp:flags>
2266
2367 <tp:struct name="Capability_Pair" array-name="Capability_Pair_List">
2468 <tp:docstring>A pair (channel type, type-specific flags) as passed to
102146 <tp:error name="org.freedesktop.Telepathy.Error.Disconnected"/>
103147 </tp:possible-errors>
104148 </method>
149
105150 <signal name="CapabilitiesChanged">
106151 <arg name="caps" type="a(usuuuu)" tp:type="Capability_Change[]">
107152 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
121166 given handle, or on the connection itself if the handle is zero.
122167 </tp:docstring>
123168 </signal>
169
124170 <method name="GetCapabilities">
125171 <arg direction="in" name="handles" type="au" tp:type="Contact_Handle[]">
126172 <tp:docstring>
153199 <tp:error name="org.freedesktop.Telepathy.Error.PermissionDenied"/>
154200 </tp:possible-errors>
155201 </method>
156 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
157 <p>An interface for connections where it is possible to know what channel
158 types may be requested before the request is made to the connection object.
159 Each capability represents a commitment by the connection manager that it
160 will ordinarily be able to create a channel when given a request with the
161 given type and handle.</p>
162
163 <p>Capabilities can pertain to a certain contact handle, representing
164 activities such as having a text chat or a voice call with the user, or can
165 be on the connection itself (where the handle will be zero), where they
166 represent the ability to create channels for chat rooms or activities such
167 as searching and room listing. The activities are represented by the D-Bus
168 interface name of the channel type for that activity.</p>
169
170 <p>The generic capability flags are defined by ConnectionCapabilityFlag.</p>
171
172 <p>In addition, channel types may have type specific capability flags of their
173 own, which are described in the documentation for each channel type.</p>
174
175 <p>This interface also provides for user interfaces notifying the connection
176 manager of what capabilities to advertise for the user. This is done by
177 using the AdvertiseCapabilities method, and deals with the interface names
178 of channel types and the type specific flags pertaining to them which are
179 implemented by available client processes.</p>
180 </tp:docstring>
202
181203 </interface>
182 <tp:flags name="Connection_Capability_Flags" value-prefix="Connection_Capability_Flag" type="u">
183 <tp:flag suffix="Create" value="1">
184 <tp:docstring>
185 The given channel type and handle can be given to RequestChannel to
186 create a new channel of this type.
187 </tp:docstring>
188 </tp:flag>
189 <tp:flag suffix="Invite" value="2">
190 <tp:docstring>
191 The given contact can be invited to an existing channel of this type.
192 </tp:docstring>
193 </tp:flag>
194 </tp:flags>
195204 </node>
196205 <!-- vim:set sw=2 sts=2 et ft=xml: -->
111111 </tp:docstring>
112112 </tp:flag>
113113 </tp:flags>
114
114115 <method name="GetParameters">
115116 <arg direction="in" name="proto" type="s" tp:type="Protocol">
116117 <tp:docstring>
134135 </tp:error>
135136 </tp:possible-errors>
136137 </method>
138
137139 <method name="ListProtocols">
138140 <arg direction="out" type="as" tp:type="Protocol[]">
139141 <tp:docstring>
140142 A array of string protocol identifiers supported by this manager
141143 </tp:docstring>
142144 </arg>
143 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
145 <tp:docstring>
144146 Get a list of protocol identifiers that are implemented by this
145 connection manager. The following well-known values should be used
146 when applicable:
147 connection manager.
147148 </tp:docstring>
148149 </method>
150
149151 <signal name="NewConnection">
150152 <arg name="bus_name" type="s" tp:type="DBus_Bus_Name">
151153 <tp:docstring>
166168 Emitted when a new Connection object is created.
167169 </tp:docstring>
168170 </signal>
171
169172 <method name="RequestConnection">
170173 <arg direction="in" name="proto" type="s" tp:type="Protocol">
171174 <tp:docstring>
178181 A dictionary mapping parameter name to the variant boxed value
179182 </tp:docstring>
180183 </arg>
181 <arg direction="out" type="s">
184 <arg direction="out" type="s" tp:type="DBus_Bus_Name">
182185 <tp:docstring>
183186 A D-Bus service name where the new Connection object can be found
184187 </tp:docstring>
288291 </tp:error>
289292 </tp:possible-errors>
290293 </method>
294
291295 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
292296 <p>A D-Bus service which allows connections to be created. The manager
293297 processes are intended to be started by D-Bus service activation.</p>
310310 and those supported by the peer.
311311 </tp:docstring>
312312 </method>
313
314 <signal name="SetStreamHeld">
315 <tp:docstring>
316 Emitted when the connection manager wishes to place the stream on
317 hold (so the streaming client should free hardware or software
318 resources) or take the stream off hold (so the streaming client should
319 reacquire the necessary resources).
320 </tp:docstring>
321 <arg name="Held" type="b">
322 <tp:docstring>
323 If true, the stream is to be placed on hold.
324 </tp:docstring>
325 </arg>
326 </signal>
327
328 <method name="HoldState">
329 <tp:docstring>
330 Notify the connection manager that the stream's hold state has
331 been changed successfully in response to SetStreamHeld.
332 </tp:docstring>
333 <arg direction="in" name="Held" type="b">
334 <tp:docstring>
335 If true, the stream is now on hold.
336 </tp:docstring>
337 </arg>
338 </method>
339
340 <method name="UnholdFailure">
341 <tp:docstring>
342 Notify the connection manager that an attempt to reacquire the
343 necessary hardware or software resources to unhold the stream,
344 in response to SetStreamHeld, has failed.
345 </tp:docstring>
346 </method>
347
313348 <tp:docstring>
314349 Handles signalling the information pertaining to a specific media stream.
315350 A client should provide information to this handler as and when it is
22 xmlns:xi="http://www.w3.org/2001/XInclude">
33
44 <tp:title>Telepathy D-Bus Interface Specification</tp:title>
5 <tp:version>0.17.2</tp:version>
5 <tp:version>0.17.3</tp:version>
66
77 <tp:copyright>Copyright (C) 2005-2008 Collabora Limited</tp:copyright>
88 <tp:copyright>Copyright (C) 2005-2008 Nokia Corporation</tp:copyright>
2929 <xi:include href="Connection_Interface_Aliasing.xml"/>
3030 <xi:include href="Connection_Interface_Avatars.xml"/>
3131 <xi:include href="Connection_Interface_Capabilities.xml"/>
32 <xi:include href="Connection_Interface_Contact_Info.xml"/>
33 <xi:include href="Connection_Interface_Forwarding.xml"/>
32 <!-- Never implemented, is a terrible API
33 <xi:include href="Connection_Interface_Contact_Info.xml"/> -->
34 <!-- Never implemented, insufficient (needs conditions)
35 <xi:include href="Connection_Interface_Forwarding.xml"/> -->
3436 <xi:include href="Connection_Interface_Presence.xml"/>
35 <xi:include href="Connection_Interface_Privacy.xml"/>
37 <!-- Never implemented, vague
38 <xi:include href="Connection_Interface_Privacy.xml"/> -->
3639 <xi:include href="Connection_Interface_Renaming.xml"/>
3740
3841 <xi:include href="Channel.xml"/>
3942 <xi:include href="Channel_Type_Contact_List.xml"/>
40 <xi:include href="Channel_Type_Contact_Search.xml"/>
43 <!-- Never implemented, can't be implemented with current dbus-glib, vague
44 <xi:include href="Channel_Type_Contact_Search.xml"/> -->
4145 <xi:include href="Channel_Type_Streamed_Media.xml"/>
4246 <xi:include href="Channel_Type_Room_List.xml"/>
4347 <xi:include href="Channel_Type_Text.xml"/>
5054 <xi:include href="Channel_Interface_Group.xml"/>
5155 <xi:include href="Channel_Interface_Hold.xml"/>
5256 <xi:include href="Channel_Interface_Password.xml"/>
53 <xi:include href="Channel_Interface_Transfer.xml"/>
57 <!-- Causes havoc, never implemented, unclear requirements
58 <xi:include href="Channel_Interface_Transfer.xml"/> -->
5459 <xi:include href="Channel_Interface_Media_Signalling.xml"/>
5560
5661 <xi:include href="Media_Session_Handler.xml"/>
22
33 <tp:simple-type name="Unix_Timestamp" type="u">
44 <tp:docstring>An unsigned 32-bit integer representing time since 1970</tp:docstring>
5 </tp:simple-type>
6
7 <tp:simple-type name="Handle" type="u">
8 <tp:docstring>An unsigned 32-bit integer representing a handle</tp:docstring>
9 </tp:simple-type>
10
11 <tp:simple-type name="Contact_Handle" type="u">
12 <tp:docstring>An unsigned 32-bit integer representing a handle of type
13 Handle_Type_Contact</tp:docstring>
14 </tp:simple-type>
15
16 <tp:simple-type name="Room_Handle" type="u">
17 <tp:docstring>An unsigned 32-bit integer representing a handle of type
18 Handle_Type_Room</tp:docstring>
19 </tp:simple-type>
20
21 <tp:simple-type name="List_Handle" type="u">
22 <tp:docstring>An unsigned 32-bit integer representing a handle of type
23 Handle_Type_List</tp:docstring>
24 </tp:simple-type>
25
26 <tp:simple-type name="Group_Handle" type="u">
27 <tp:docstring>An unsigned 32-bit integer representing a handle of type
28 Handle_Type_Group</tp:docstring>
295 </tp:simple-type>
306
317 <tp:simple-type name="DBus_Bus_Name" type="s">
137137 org.freedesktop.DBus.Properties interface.</p><dl><dt><a id="org.freedesktop.Telepathy.SpecAutoGenTest.Introspective" name="org.freedesktop.Telepathy.SpecAutoGenTest.Introspective" shape="rect"><code>Introspective</code></a> - <code>b</code>, read-only</dt><dd>
138138 True if the badger is introspective.
139139
140
141 <div class="rationale">
140 <div class="rationale">
142141 Goths can be mistaken for badgers in poor lighting conditions.
143 </div></dd></dl><h2>Enumerated types:</h2><h3><a id="type-Adjective" name="type-Adjective" shape="rect">Adjective</a></h3>Adjectives which may be applied to a specification<dl><dt><code>Adjective_Leveraging = 0</code></dt><dd>
142 </div>
143 </dd></dl><h2>Enumerated types:</h2><h3><a id="type-Adjective" name="type-Adjective" shape="rect">Adjective</a></h3>Adjectives which may be applied to a specification<dl><dt><code>Adjective_Leveraging = 0</code></dt><dd>
144144 Can leverage synergy
145145 </dd><dt><code>Adjective_Synergistic = 1</code></dt><dd>
146146 Can synergize with leverage
3939 </xsl:template>
4040
4141 <xsl:template match="tp:docstring">
42 <xsl:apply-templates select="text() | html:*" mode="html"/>
43 <xsl:apply-templates select="tp:rationale"/>
44 </xsl:template>
45
46 <xsl:template match="tp:rationale">
42 <xsl:apply-templates select="text() | html:* | tp:rationale" mode="html"/>
43 </xsl:template>
44
45 <xsl:template match="tp:rationale" mode="html">
4746 <div xmlns="http://www.w3.org/1999/xhtml" class="rationale">
4847 <xsl:apply-templates select="node()" mode="html"/>
4948 </div>
309308 </h3>
310309 <div class="docstring">
311310 <xsl:apply-templates select="tp:docstring"/>
311 <xsl:if test="string(@array-name) != ''">
312 <p>In bindings that need a separate name, arrays of
313 <xsl:value-of select="@name"/> should be called
314 <xsl:value-of select="@array-name"/>.</p>
315 </xsl:if>
312316 </div>
313317 <div>
314318 <h4>Members</h4>
475479 <xsl:when test="//tp:simple-type[@name=$tp-type]" />
476480 <xsl:when test="//tp:simple-type[concat(@name, '[]')=$tp-type]" />
477481 <xsl:when test="//tp:struct[concat(@name, '[]')=$tp-type][string(@array-name) != '']" />
482 <xsl:when test="//tp:mapping[concat(@name, '[]')=$tp-type][string(@array-name) != '']" />
478483 <xsl:when test="//tp:struct[@name=$tp-type]" />
479484 <xsl:when test="//tp:enum[@name=$tp-type]" />
480485 <xsl:when test="//tp:enum[concat(@name, '[]')=$tp-type]" />