45
45
#include <telepathy-glib/capabilities.h>
47
47
<a class="link" href="telepathy-glib-capabilities.html#TpCapabilities-struct" title="TpCapabilities">TpCapabilities</a>;
48
<span class="returnvalue">GPtrArray</span> * <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-get-channel-classes" title="tp_capabilities_get_channel_classes ()">tp_capabilities_get_channel_classes</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);
49
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-is-specific-to-contact" title="tp_capabilities_is_specific_to_contact ()">tp_capabilities_is_specific_to_contact</a>
50
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);
51
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-text-chatrooms" title="tp_capabilities_supports_text_chatrooms ()">tp_capabilities_supports_text_chatrooms</a>
52
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);
53
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-text-chats" title="tp_capabilities_supports_text_chats ()">tp_capabilities_supports_text_chats</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);
54
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-stream-tubes" title="tp_capabilities_supports_stream_tubes ()">tp_capabilities_supports_stream_tubes</a>
55
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
56
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
57
<em class="parameter"><code>const <span class="type">gchar</span> *service</code></em>);
58
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-dbus-tubes" title="tp_capabilities_supports_dbus_tubes ()">tp_capabilities_supports_dbus_tubes</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
59
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
60
<em class="parameter"><code>const <span class="type">gchar</span> *service_name</code></em>);
61
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-contact-search" title="tp_capabilities_supports_contact_search ()">tp_capabilities_supports_contact_search</a>
62
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
63
<em class="parameter"><code><span class="type">gboolean</span> *with_limit</code></em>,
64
<em class="parameter"><code><span class="type">gboolean</span> *with_server</code></em>);
65
<span class="returnvalue">gboolean</span> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-room-list" title="tp_capabilities_supports_room_list ()">tp_capabilities_supports_room_list</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
66
<em class="parameter"><code><span class="type">gboolean</span> *with_server</code></em>);
48
<a href="http://library.gnome.org/devel/glib/unstable/glib-Pointer-Arrays.html#GPtrArray"><span class="returnvalue">GPtrArray</span></a> * <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-get-channel-classes" title="tp_capabilities_get_channel_classes ()">tp_capabilities_get_channel_classes</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);
49
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-is-specific-to-contact" title="tp_capabilities_is_specific_to_contact ()">tp_capabilities_is_specific_to_contact</a>
50
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);
51
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-text-chatrooms" title="tp_capabilities_supports_text_chatrooms ()">tp_capabilities_supports_text_chatrooms</a>
52
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);
53
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-text-chats" title="tp_capabilities_supports_text_chats ()">tp_capabilities_supports_text_chats</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);
54
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-stream-tubes" title="tp_capabilities_supports_stream_tubes ()">tp_capabilities_supports_stream_tubes</a>
55
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
56
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
57
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *service</code></em>);
58
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-dbus-tubes" title="tp_capabilities_supports_dbus_tubes ()">tp_capabilities_supports_dbus_tubes</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
59
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
60
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *service_name</code></em>);
61
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-contact-search" title="tp_capabilities_supports_contact_search ()">tp_capabilities_supports_contact_search</a>
62
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
63
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *with_limit</code></em>,
64
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *with_server</code></em>);
65
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="telepathy-glib-capabilities.html#tp-capabilities-supports-room-list" title="tp_capabilities_supports_room_list ()">tp_capabilities_supports_room_list</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
66
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *with_server</code></em>);
69
69
<div class="refsect1">
70
70
<a name="telepathy-glib-capabilities.object-hierarchy"></a><h2>Object Hierarchy</h2>
71
71
<pre class="synopsis">
72
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
73
73
+----TpCapabilities
148
148
<div class="refsect2">
149
149
<a name="tp-capabilities-supports-text-chatrooms"></a><h3>tp_capabilities_supports_text_chatrooms ()</h3>
150
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_capabilities_supports_text_chatrooms
150
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> tp_capabilities_supports_text_chatrooms
151
151
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>);</pre>
153
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <code class="literal">FALSE</code>, this function
153
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, this function
154
154
checks if named text chatrooms can be joined by providing a chatroom
158
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <code class="literal">TRUE</code>, this function
158
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, this function
159
159
checks if the contact associated with this <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> can be invited
160
160
to named text chatrooms.
163
163
If the protocol is such that chatrooms can be joined or contacts can be
164
164
invited, but only via a more elaborate D-Bus API than normal
165
(because more information is needed), then this method will return <code class="literal">FALSE</code>.
165
(because more information is needed), then this method will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.
167
167
<div class="variablelist"><table border="0">
168
168
<col align="left" valign="top">
217
217
<div class="refsect2">
218
218
<a name="tp-capabilities-supports-stream-tubes"></a><h3>tp_capabilities_supports_stream_tubes ()</h3>
219
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_capabilities_supports_stream_tubes
219
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> tp_capabilities_supports_stream_tubes
220
220
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
221
221
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
222
<em class="parameter"><code>const <span class="type">gchar</span> *service</code></em>);</pre>
222
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *service</code></em>);</pre>
224
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <code class="literal">TRUE</code>, this function
224
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, this function
225
225
checks if the contact associated with this <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> supports
226
226
stream tubes with <em class="parameter"><code>handle_type</code></em> as TargetHandleType.
227
If <em class="parameter"><code>service</code></em> is not <code class="literal">NULL</code>, it also checks if it supports stream tubes
227
If <em class="parameter"><code>service</code></em> is not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, it also checks if it supports stream tubes
228
228
with <em class="parameter"><code>service</code></em> as <a class="link" href="telepathy-glib-interfaces.html#TP-PROP-CHANNEL-TYPE-STREAM-TUBE-SERVICE:CAPS" title="TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE"><span class="type">TP_PROP_CHANNEL_TYPE_STREAM_TUBE_SERVICE</span></a>.
231
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <code class="literal">FALSE</code>, this function
231
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, this function
232
232
checks if the connection supports requesting stream tube channels with
233
233
<em class="parameter"><code>handle_type</code></em> as ChannelType. The <em class="parameter"><code>service</code></em> argument is unused in this case.
263
263
<div class="refsect2">
264
264
<a name="tp-capabilities-supports-dbus-tubes"></a><h3>tp_capabilities_supports_dbus_tubes ()</h3>
265
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_capabilities_supports_dbus_tubes (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
265
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> tp_capabilities_supports_dbus_tubes (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
266
266
<em class="parameter"><code><a class="link" href="telepathy-glib-enums.html#TpHandleType" title="enum TpHandleType"><span class="type">TpHandleType</span></a> handle_type</code></em>,
267
<em class="parameter"><code>const <span class="type">gchar</span> *service_name</code></em>);</pre>
267
<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *service_name</code></em>);</pre>
269
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <code class="literal">TRUE</code>, this function
269
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, this function
270
270
checks if the contact associated with this <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> supports
271
271
D-Bus tubes with <em class="parameter"><code>handle_type</code></em> as TargetHandleType.
272
If <em class="parameter"><code>service_name</code></em> is not <code class="literal">NULL</code>, it also checks if it supports stream tubes
272
If <em class="parameter"><code>service_name</code></em> is not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, it also checks if it supports stream tubes
273
273
with <em class="parameter"><code>service</code></em> as <a class="link" href="telepathy-glib-interfaces.html#TP-PROP-CHANNEL-TYPE-DBUS-TUBE-SERVICE-NAME:CAPS" title="TP_PROP_CHANNEL_TYPE_DBUS_TUBE_SERVICE_NAME"><span class="type">TP_PROP_CHANNEL_TYPE_DBUS_TUBE_SERVICE_NAME</span></a>.
276
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <code class="literal">FALSE</code>, this function
276
If the <a class="link" href="telepathy-glib-capabilities.html#TpCapabilities--contact-specific" title='The "contact-specific" property'><span class="type">"contact-specific"</span></a> property is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, this function
277
277
checks if the connection supports requesting D-Bus tube channels with
278
278
<em class="parameter"><code>handle_type</code></em> as ChannelType. The <em class="parameter"><code>service_name</code></em> argument is unused in
309
309
<div class="refsect2">
310
310
<a name="tp-capabilities-supports-contact-search"></a><h3>tp_capabilities_supports_contact_search ()</h3>
311
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_capabilities_supports_contact_search
311
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> tp_capabilities_supports_contact_search
312
312
(<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
313
<em class="parameter"><code><span class="type">gboolean</span> *with_limit</code></em>,
314
<em class="parameter"><code><span class="type">gboolean</span> *with_server</code></em>);</pre>
313
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *with_limit</code></em>,
314
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *with_server</code></em>);</pre>
316
316
Return whether this protocol or connection can perform contact
317
317
searches. Optionally, also return whether a limited number of
329
329
<td><p><span class="term"><em class="parameter"><code>with_limit</code></em> :</span></p></td>
330
<td>if not <code class="literal">NULL</code>, used to return <code class="literal">TRUE</code> if the limit
330
<td>if not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the limit
331
331
parameter to <a class="link" href="telepathy-glib-contact-search.html#tp-contact-search-new-async" title="tp_contact_search_new_async ()"><code class="function">tp_contact_search_new_async()</code></a> and
332
332
<a class="link" href="telepathy-glib-contact-search.html#tp-contact-search-reset-async" title="tp_contact_search_reset_async ()"><code class="function">tp_contact_search_reset_async()</code></a> can be nonzero. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
336
336
<td><p><span class="term"><em class="parameter"><code>with_server</code></em> :</span></p></td>
337
<td>if not <code class="literal">NULL</code>, used to return <code class="literal">TRUE</code> if the server
337
<td>if not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, used to return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the server
338
338
parameter to <a class="link" href="telepathy-glib-contact-search.html#tp-contact-search-new-async" title="tp_contact_search_new_async ()"><code class="function">tp_contact_search_new_async()</code></a> and
339
<a class="link" href="telepathy-glib-contact-search.html#tp-contact-search-reset-async" title="tp_contact_search_reset_async ()"><code class="function">tp_contact_search_reset_async()</code></a> can be non-<code class="literal">NULL</code>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
339
<a class="link" href="telepathy-glib-contact-search.html#tp-contact-search-reset-async" title="tp_contact_search_reset_async ()"><code class="function">tp_contact_search_reset_async()</code></a> can be non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
343
343
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
345
<code class="literal">TRUE</code> if <a class="link" href="telepathy-glib-contact-search.html#TpContactSearch"><span class="type">TpContactSearch</span></a> can be used.</td>
345
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <a class="link" href="telepathy-glib-contact-search.html#TpContactSearch"><span class="type">TpContactSearch</span></a> can be used.</td>
352
352
<div class="refsect2">
353
353
<a name="tp-capabilities-supports-room-list"></a><h3>tp_capabilities_supports_room_list ()</h3>
354
<pre class="programlisting"><span class="returnvalue">gboolean</span> tp_capabilities_supports_room_list (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
355
<em class="parameter"><code><span class="type">gboolean</span> *with_server</code></em>);</pre>
354
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> tp_capabilities_supports_room_list (<em class="parameter"><code><a class="link" href="telepathy-glib-capabilities.html#TpCapabilities"><span class="type">TpCapabilities</span></a> *self</code></em>,
355
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> *with_server</code></em>);</pre>
357
357
Discovers whether this protocol or connection supports listing rooms.
358
Specifically, if this function returns <code class="literal">TRUE</code>, a room list channel can be
358
Specifically, if this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, a room list channel can be
359
359
requested as follows:
361
<div class="informalexample"><pre class="programlisting">
363
TpAccountChannelRequest *req;
365
request = tp_asv_new (
366
TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
367
TP_IFACE_CHANNEL_TYPE_ROOM_LIST,
368
TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, TP_HANDLE_TYPE_NONE,
371
req = tp_account_channel_request_new (account, request,
372
TP_USER_ACTION_TIME_CURRENT_TIME);
374
tp_account_channel_request_create_and_handle_channel_async (req, NULL,
375
create_channel_cb, NULL);
377
g_object_unref (req);
378
g_hash_table_unref (request);
361
<div class="informalexample">
362
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
365
<td class="listing_lines" align="right"><pre>1
382
<td class="listing_code"><pre class="programlisting">GHashTable <span class="gtkdoc opt">*</span>request<span class="gtkdoc opt">;</span>
383
TpAccountChannelRequest <span class="gtkdoc opt">*</span>req<span class="gtkdoc opt">;</span>
385
request <span class="gtkdoc opt">=</span> <span class="function"><a href="telepathy-glib-asv.html#tp-asv-new">tp_asv_new</a></span> <span class="gtkdoc opt">(</span>
386
TP_PROP_CHANNEL_CHANNEL_TYPE<span class="gtkdoc opt">,</span> G_TYPE_STRING<span class="gtkdoc opt">,</span>
387
TP_IFACE_CHANNEL_TYPE_ROOM_LIST<span class="gtkdoc opt">,</span>
388
TP_PROP_CHANNEL_TARGET_HANDLE_TYPE<span class="gtkdoc opt">,</span> G_TYPE_UINT<span class="gtkdoc opt">,</span> TP_HANDLE_TYPE_NONE<span class="gtkdoc opt">,</span>
389
NULL<span class="gtkdoc opt">);</span>
391
req <span class="gtkdoc opt">=</span> <span class="function"><a href="telepathy-glib-account-channel-request.html#tp-account-channel-request-new">tp_account_channel_request_new</a></span> <span class="gtkdoc opt">(</span>account<span class="gtkdoc opt">,</span> request<span class="gtkdoc opt">,</span>
392
TP_USER_ACTION_TIME_CURRENT_TIME<span class="gtkdoc opt">);</span>
394
<span class="function"><a href="telepathy-glib-account-channel-request.html#tp-account-channel-request-create-and-handle-channel-async">tp_account_channel_request_create_and_handle_channel_async</a></span> <span class="gtkdoc opt">(</span>req<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">,</span>
395
create_channel_cb<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span>
397
<span class="function"><a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref">g_object_unref</a></span> <span class="gtkdoc opt">(</span>req<span class="gtkdoc opt">);</span>
398
<span class="function"><a href="http://library.gnome.org/devel/glib/unstable/glib-Hash-Tables.html#g-hash-table-unref">g_hash_table_unref</a></span> <span class="gtkdoc opt">(</span>request<span class="gtkdoc opt">);</span></pre></td>
383
If <em class="parameter"><code>with_server</code></em> is set to <code class="literal">TRUE</code>, a list of rooms on a particular server can
407
If <em class="parameter"><code>with_server</code></em> is set to <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, a list of rooms on a particular server can
384
408
be requested as follows:
386
<div class="informalexample"><pre class="programlisting">
387
/\* Same code as above but with request defined using: *\/
388
request = tp_asv_new (
389
TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING,
390
TP_IFACE_CHANNEL_TYPE_ROOM_LIST,
391
TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, TP_HANDLE_TYPE_NONE,
392
TP_PROP_CHANNEL_TYPE_ROOM_LIST_SERVER, G_TYPE_STRING,
393
"characters.shakespeare.lit",
410
<div class="informalexample">
411
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
414
<td class="listing_lines" align="right"><pre>1
422
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc opt">/</span>\<span class="gtkdoc opt">*</span> Same code as above but with request defined <span class="keyword">using</span><span class="gtkdoc opt">: *</span>\<span class="gtkdoc opt">/</span>
423
request <span class="gtkdoc opt">=</span> <span class="function"><a href="telepathy-glib-asv.html#tp-asv-new">tp_asv_new</a></span> <span class="gtkdoc opt">(</span>
424
TP_PROP_CHANNEL_CHANNEL_TYPE<span class="gtkdoc opt">,</span> G_TYPE_STRING<span class="gtkdoc opt">,</span>
425
TP_IFACE_CHANNEL_TYPE_ROOM_LIST<span class="gtkdoc opt">,</span>
426
TP_PROP_CHANNEL_TARGET_HANDLE_TYPE<span class="gtkdoc opt">,</span> G_TYPE_UINT<span class="gtkdoc opt">,</span> TP_HANDLE_TYPE_NONE<span class="gtkdoc opt">,</span>
427
TP_PROP_CHANNEL_TYPE_ROOM_LIST_SERVER<span class="gtkdoc opt">,</span> G_TYPE_STRING<span class="gtkdoc opt">,</span>
428
<span class="string">"characters.shakespeare.lit"</span><span class="gtkdoc opt">,</span>
429
NULL<span class="gtkdoc opt">);</span></pre></td>
398
437
<div class="variablelist"><table border="0">