52
52
(<em class="parameter"><code><a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler"><span class="type">TpSimpleHandler</span></a> *handler</code></em>,
53
53
<em class="parameter"><code><a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a> *account</code></em>,
54
54
<em class="parameter"><code><a class="link" href="telepathy-glib-connection.html#TpConnection"><span class="type">TpConnection</span></a> *connection</code></em>,
55
<em class="parameter"><code><span class="type">GList</span> *channels</code></em>,
56
<em class="parameter"><code><span class="type">GList</span> *requests_satisfied</code></em>,
55
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *channels</code></em>,
56
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *requests_satisfied</code></em>,
57
57
<em class="parameter"><code><span class="type">gint64</span> user_action_time</code></em>,
58
58
<em class="parameter"><code><a class="link" href="telepathy-glib-handle-channels-context.html#TpHandleChannelsContext"><span class="type">TpHandleChannelsContext</span></a> *context</code></em>,
59
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);
59
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
60
60
<a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> * <a class="link" href="telepathy-glib-simple-handler.html#tp-simple-handler-new" title="tp_simple_handler_new ()">tp_simple_handler_new</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon"><span class="type">TpDBusDaemon</span></a> *dbus</code></em>,
61
<em class="parameter"><code><span class="type">gboolean</span> bypass_approval</code></em>,
62
<em class="parameter"><code><span class="type">gboolean</span> requests</code></em>,
63
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
64
<em class="parameter"><code><span class="type">gboolean</span> uniquify</code></em>,
61
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> bypass_approval</code></em>,
62
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> requests</code></em>,
63
<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> *name</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> uniquify</code></em>,
65
65
<em class="parameter"><code><a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandlerHandleChannelsImpl" title="TpSimpleHandlerHandleChannelsImpl ()"><span class="type">TpSimpleHandlerHandleChannelsImpl</span></a> callback</code></em>,
66
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
67
<em class="parameter"><code><span class="type">GDestroyNotify</span> destroy</code></em>);
66
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
67
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);
68
68
<a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> * <a class="link" href="telepathy-glib-simple-handler.html#tp-simple-handler-new-with-am" title="tp_simple_handler_new_with_am ()">tp_simple_handler_new_with_am</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a> *account_manager</code></em>,
69
<em class="parameter"><code><span class="type">gboolean</span> bypass_approval</code></em>,
70
<em class="parameter"><code><span class="type">gboolean</span> requests</code></em>,
71
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
72
<em class="parameter"><code><span class="type">gboolean</span> uniquify</code></em>,
69
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> bypass_approval</code></em>,
70
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> requests</code></em>,
71
<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> *name</code></em>,
72
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> uniquify</code></em>,
73
73
<em class="parameter"><code><a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandlerHandleChannelsImpl" title="TpSimpleHandlerHandleChannelsImpl ()"><span class="type">TpSimpleHandlerHandleChannelsImpl</span></a> callback</code></em>,
74
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
75
<em class="parameter"><code><span class="type">GDestroyNotify</span> destroy</code></em>);
74
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
75
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);
76
76
<a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> * <a class="link" href="telepathy-glib-simple-handler.html#tp-simple-handler-new-with-factory" title="tp_simple_handler_new_with_factory ()">tp_simple_handler_new_with_factory</a> (<em class="parameter"><code><a class="link" href="telepathy-glib-simple-client-factory.html#TpSimpleClientFactory"><span class="type">TpSimpleClientFactory</span></a> *factory</code></em>,
77
<em class="parameter"><code><span class="type">gboolean</span> bypass_approval</code></em>,
78
<em class="parameter"><code><span class="type">gboolean</span> requests</code></em>,
79
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
80
<em class="parameter"><code><span class="type">gboolean</span> uniquify</code></em>,
77
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> bypass_approval</code></em>,
78
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> requests</code></em>,
79
<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> *name</code></em>,
80
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> uniquify</code></em>,
81
81
<em class="parameter"><code><a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandlerHandleChannelsImpl" title="TpSimpleHandlerHandleChannelsImpl ()"><span class="type">TpSimpleHandlerHandleChannelsImpl</span></a> callback</code></em>,
82
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
83
<em class="parameter"><code><span class="type">GDestroyNotify</span> destroy</code></em>);
82
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
83
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);
86
86
<div class="refsect1">
87
87
<a name="telepathy-glib-simple-handler.object-hierarchy"></a><h2>Object Hierarchy</h2>
88
88
<pre class="synopsis">
89
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
90
90
+----<a class="link" href="telepathy-glib-base-client.html#TpBaseClient">TpBaseClient</a>
91
91
+----TpSimpleHandler
100
100
<div class="refsect1">
101
101
<a name="telepathy-glib-simple-handler.properties"></a><h2>Properties</h2>
102
102
<pre class="synopsis">
103
"<a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--bypass-approval" title='The "bypass-approval" property'>bypass-approval</a>" <span class="type">gboolean</span> : Write / Construct Only
104
"<a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--callback" title='The "callback" property'>callback</a>" <span class="type">gpointer</span> : Write / Construct Only
105
"<a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--destroy" title='The "destroy" property'>destroy</a>" <span class="type">gpointer</span> : Write / Construct Only
106
"<a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--requests" title='The "requests" property'>requests</a>" <span class="type">gboolean</span> : Write / Construct Only
107
"<a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--user-data" title='The "user-data" property'>user-data</a>" <span class="type">gpointer</span> : Write / Construct Only
103
"<a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--bypass-approval" title='The "bypass-approval" property'>bypass-approval</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Write / Construct Only
104
"<a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--callback" title='The "callback" property'>callback</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Write / Construct Only
105
"<a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--destroy" title='The "destroy" property'>destroy</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Write / Construct Only
106
"<a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--requests" title='The "requests" property'>requests</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Write / Construct Only
107
"<a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--user-data" title='The "user-data" property'>user-data</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Write / Construct Only
110
110
<div class="refsect1">
117
117
A typical simple handler would look liks this:
119
<div class="informalexample"><pre class="programlisting">
121
my_handle_channels (TpSimpleHandler *handler,
123
TpConnection *connection,
125
GList *requests_satisfied,
126
gint64 user_action_time,
128
TpHandleChannelsContext *context,
131
/* start handling the channels here */
133
tp_handle_channels_context_accept (context);
136
client = tp_simple_handler_new (dbus, FALSE, FALSE, "MyHandler", FALSE,
137
my_handle_channels, user_data);
139
tp_base_client_take_handler_filter (client, tp_asv_new (
140
TP_PROP_CHANNEL_CHANNEL_TYPE, G_TYPE_STRING, TP_IFACE_CHANNEL_TYPE_TEXT,
141
TP_PROP_CHANNEL_TARGET_HANDLE_TYPE, G_TYPE_UINT, TP_HANDLE_TYPE_CONTACT,
144
tp_base_client_register (client, NULL);
119
<div class="informalexample">
120
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
123
<td class="listing_lines" align="right"><pre>1
148
<td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">static void</span>
149
<span class="function">my_handle_channels</span> <span class="gtkdoc opt">(</span>TpSimpleHandler <span class="gtkdoc opt">*</span>handler<span class="gtkdoc opt">,</span>
150
TpAccount <span class="gtkdoc opt">*</span>account<span class="gtkdoc opt">,</span>
151
TpConnection <span class="gtkdoc opt">*</span>connection<span class="gtkdoc opt">,</span>
152
GList <span class="gtkdoc opt">*</span>channels<span class="gtkdoc opt">,</span>
153
GList <span class="gtkdoc opt">*</span>requests_satisfied<span class="gtkdoc opt">,</span>
154
gint64 user_action_time<span class="gtkdoc opt">,</span>
155
GList <span class="gtkdoc opt">*</span>requests<span class="gtkdoc opt">,</span>
156
TpHandleChannelsContext <span class="gtkdoc opt">*</span>context<span class="gtkdoc opt">,</span>
157
gpointer user_data<span class="gtkdoc opt">)</span>
158
<span class="gtkdoc opt">{</span>
159
<span class="comment">/* start handling the channels here */</span>
161
<span class="function"><a href="telepathy-glib-handle-channels-context.html#tp-handle-channels-context-accept">tp_handle_channels_context_accept</a></span> <span class="gtkdoc opt">(</span>context<span class="gtkdoc opt">);</span>
162
<span class="gtkdoc opt">}</span>
164
client <span class="gtkdoc opt">=</span> <span class="function"><a href="telepathy-glib-simple-handler.html#tp-simple-handler-new">tp_simple_handler_new</a></span> <span class="gtkdoc opt">(</span>dbus<span class="gtkdoc opt">,</span> FALSE<span class="gtkdoc opt">,</span> FALSE<span class="gtkdoc opt">,</span> <span class="string">"MyHandler"</span><span class="gtkdoc opt">,</span> FALSE<span class="gtkdoc opt">,</span>
165
my_handle_channels<span class="gtkdoc opt">,</span> user_data<span class="gtkdoc opt">);</span>
167
<span class="function"><a href="telepathy-glib-base-client.html#tp-base-client-take-handler-filter">tp_base_client_take_handler_filter</a></span> <span class="gtkdoc opt">(</span>client<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>
168
TP_PROP_CHANNEL_CHANNEL_TYPE<span class="gtkdoc opt">,</span> G_TYPE_STRING<span class="gtkdoc opt">,</span> TP_IFACE_CHANNEL_TYPE_TEXT<span class="gtkdoc opt">,</span>
169
TP_PROP_CHANNEL_TARGET_HANDLE_TYPE<span class="gtkdoc opt">,</span> G_TYPE_UINT<span class="gtkdoc opt">,</span> TP_HANDLE_TYPE_CONTACT<span class="gtkdoc opt">,</span>
170
NULL<span class="gtkdoc opt">));</span>
172
<span class="function"><a href="telepathy-glib-base-client.html#tp-base-client-register">tp_base_client_register</a></span> <span class="gtkdoc opt">(</span>client<span class="gtkdoc opt">,</span> NULL<span class="gtkdoc opt">);</span></pre></td>
166
198
(<em class="parameter"><code><a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler"><span class="type">TpSimpleHandler</span></a> *handler</code></em>,
167
199
<em class="parameter"><code><a class="link" href="telepathy-glib-account.html#TpAccount"><span class="type">TpAccount</span></a> *account</code></em>,
168
200
<em class="parameter"><code><a class="link" href="telepathy-glib-connection.html#TpConnection"><span class="type">TpConnection</span></a> *connection</code></em>,
169
<em class="parameter"><code><span class="type">GList</span> *channels</code></em>,
170
<em class="parameter"><code><span class="type">GList</span> *requests_satisfied</code></em>,
201
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *channels</code></em>,
202
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="type">GList</span></a> *requests_satisfied</code></em>,
171
203
<em class="parameter"><code><span class="type">gint64</span> user_action_time</code></em>,
172
204
<em class="parameter"><code><a class="link" href="telepathy-glib-handle-channels-context.html#TpHandleChannelsContext"><span class="type">TpHandleChannelsContext</span></a> *context</code></em>,
173
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>);</pre>
205
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
175
207
Signature of the implementation of the HandleChannels method.
233
265
<div class="refsect2">
234
266
<a name="tp-simple-handler-new"></a><h3>tp_simple_handler_new ()</h3>
235
267
<pre class="programlisting"><a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> * tp_simple_handler_new (<em class="parameter"><code><a class="link" href="telepathy-glib-dbus.html#TpDBusDaemon"><span class="type">TpDBusDaemon</span></a> *dbus</code></em>,
236
<em class="parameter"><code><span class="type">gboolean</span> bypass_approval</code></em>,
237
<em class="parameter"><code><span class="type">gboolean</span> requests</code></em>,
238
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
239
<em class="parameter"><code><span class="type">gboolean</span> uniquify</code></em>,
268
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> bypass_approval</code></em>,
269
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> requests</code></em>,
270
<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> *name</code></em>,
271
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> uniquify</code></em>,
240
272
<em class="parameter"><code><a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandlerHandleChannelsImpl" title="TpSimpleHandlerHandleChannelsImpl ()"><span class="type">TpSimpleHandlerHandleChannelsImpl</span></a> callback</code></em>,
241
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
242
<em class="parameter"><code><span class="type">GDestroyNotify</span> destroy</code></em>);</pre>
273
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
274
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);</pre>
243
275
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
244
276
<h3 class="title">Warning</h3>
245
277
<p><code class="literal">tp_simple_handler_new</code> is deprecated and should not be used in newly-written code. New code should use <a class="link" href="telepathy-glib-simple-handler.html#tp-simple-handler-new-with-am" title="tp_simple_handler_new_with_am ()"><code class="function">tp_simple_handler_new_with_am()</code></a> instead.</p>
305
337
<div class="refsect2">
306
338
<a name="tp-simple-handler-new-with-am"></a><h3>tp_simple_handler_new_with_am ()</h3>
307
339
<pre class="programlisting"><a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> * tp_simple_handler_new_with_am (<em class="parameter"><code><a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a> *account_manager</code></em>,
308
<em class="parameter"><code><span class="type">gboolean</span> bypass_approval</code></em>,
309
<em class="parameter"><code><span class="type">gboolean</span> requests</code></em>,
310
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
311
<em class="parameter"><code><span class="type">gboolean</span> uniquify</code></em>,
340
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> bypass_approval</code></em>,
341
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> requests</code></em>,
342
<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> *name</code></em>,
343
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> uniquify</code></em>,
312
344
<em class="parameter"><code><a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandlerHandleChannelsImpl" title="TpSimpleHandlerHandleChannelsImpl ()"><span class="type">TpSimpleHandlerHandleChannelsImpl</span></a> callback</code></em>,
313
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
314
<em class="parameter"><code><span class="type">GDestroyNotify</span> destroy</code></em>);</pre>
345
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
346
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);</pre>
316
348
Convenient function to create a new <a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler"><span class="type">TpSimpleHandler</span></a> instance with a
317
349
specified <a class="link" href="telepathy-glib-account-manager.html#TpAccountManager"><span class="type">TpAccountManager</span></a>.
373
405
<div class="refsect2">
374
406
<a name="tp-simple-handler-new-with-factory"></a><h3>tp_simple_handler_new_with_factory ()</h3>
375
407
<pre class="programlisting"><a class="link" href="telepathy-glib-base-client.html#TpBaseClient"><span class="returnvalue">TpBaseClient</span></a> * tp_simple_handler_new_with_factory (<em class="parameter"><code><a class="link" href="telepathy-glib-simple-client-factory.html#TpSimpleClientFactory"><span class="type">TpSimpleClientFactory</span></a> *factory</code></em>,
376
<em class="parameter"><code><span class="type">gboolean</span> bypass_approval</code></em>,
377
<em class="parameter"><code><span class="type">gboolean</span> requests</code></em>,
378
<em class="parameter"><code>const <span class="type">gchar</span> *name</code></em>,
379
<em class="parameter"><code><span class="type">gboolean</span> uniquify</code></em>,
408
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> bypass_approval</code></em>,
409
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> requests</code></em>,
410
<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> *name</code></em>,
411
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> uniquify</code></em>,
380
412
<em class="parameter"><code><a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandlerHandleChannelsImpl" title="TpSimpleHandlerHandleChannelsImpl ()"><span class="type">TpSimpleHandlerHandleChannelsImpl</span></a> callback</code></em>,
381
<em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
382
<em class="parameter"><code><span class="type">GDestroyNotify</span> destroy</code></em>);</pre>
413
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
414
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);</pre>
384
416
Convenient function to create a new <a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler"><span class="type">TpSimpleHandler</span></a> instance with a
385
417
specified <a class="link" href="telepathy-glib-simple-client-factory.html#TpSimpleClientFactory"><span class="type">TpSimpleClientFactory</span></a>.
449
481
<div class="refsect2">
450
482
<a name="TpSimpleHandler--callback"></a><h3>The <code class="literal">"callback"</code> property</h3>
451
<pre class="programlisting"> "callback" <span class="type">gpointer</span> : Write / Construct Only</pre>
483
<pre class="programlisting"> "callback" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Write / Construct Only</pre>
453
485
The <a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandlerHandleChannelsImpl" title="TpSimpleHandlerHandleChannelsImpl ()"><span class="type">TpSimpleHandlerHandleChannelsImpl</span></a> callback implementing the
454
486
HandleChannels D-Bus method.
457
This property can't be <code class="literal">NULL</code>.
489
This property can't be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
459
491
<p class="since">Since 0.11.6</p>
462
494
<div class="refsect2">
463
495
<a name="TpSimpleHandler--destroy"></a><h3>The <code class="literal">"destroy"</code> property</h3>
464
<pre class="programlisting"> "destroy" <span class="type">gpointer</span> : Write / Construct Only</pre>
496
<pre class="programlisting"> "destroy" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> : Write / Construct Only</pre>
466
The <span class="type">GDestroyNotify</span> function called to free <a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--user-data" title='The "user-data" property'><span class="type">"user-data"</span></a>
498
The <a href="http://library.gnome.org/devel/glib/unstable/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> function called to free <a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler--user-data" title='The "user-data" property'><span class="type">"user-data"</span></a>
467
499
when the <a class="link" href="telepathy-glib-simple-handler.html#TpSimpleHandler"><span class="type">TpSimpleHandler</span></a> is destroyed.
469
501
<p class="since">Since 0.11.6</p>