1 <?xml version='1.0' encoding="ISO-8859-1"?>
2 <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
5 <chapter id="chapter-signals-blist">
6 <title>Buddy List signals</title>
8 <refsect1 id="blist.signals" role="signal_proto">
9 <title role="signal_proto.title">List of signals</title>
11 "<link linkend="blist-buddy-status-changed">buddy-status-changed</link>"
12 "<link linkend="blist-buddy-idle-changed">buddy-idle-changed</link>"
13 "<link linkend="blist-buddy-signed-on">buddy-signed-on</link>"
14 "<link linkend="blist-buddy-signed-off">buddy-signed-off</link>"
15 "<link linkend="blist-update-idle">update-idle</link>"
16 "<link linkend="blist-blist-node-extended-menu">blist-node-extended-menu</link>"
17 "<link linkend="blist-buddy-icon-changed">buddy-icon-changed</link>"
18 "<link linkend="blist-blist-node-aliased">blist-node-aliased</link>"
19 "<link linkend="blist-buddy-caps-changed">buddy-caps-changed</link>"
20 "<link linkend="blist-ui-caps-changed">ui-caps-changed</link>"
24 <refsect1 id="blist.signal-details" role="signals">
25 <title role="signals.title">Signal details</title>
27 <refsect2 id="blist-buddy-status-changed" role="signal">
28 <title>The <literal>"buddy-status-changed"</literal> signal</title>
30 void user_function (PurpleBuddy *buddy,
31 PurpleStatus *old_status,
36 Emitted when a buddy on your buddy list goes away.
38 <variablelist role="params">
40 <term><parameter>buddy</parameter> :</term>
41 <listitem><simpara>The buddy whose status changed.</simpara></listitem>
44 <term><parameter>old_status</parameter> :</term>
45 <listitem><simpara>The status that the buddy just changed from.</simpara></listitem>
48 <term><parameter>status</parameter> :</term>
49 <listitem><simpara>The status that the buddy just changed to.</simpara></listitem>
52 <term><parameter>user_data</parameter> :</term>
53 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
58 <refsect2 id="blist-buddy-idle-changed" role="signal">
59 <title>The <literal>"buddy-idle-changed"</literal> signal</title>
61 void user_function (PurpleBuddy *buddy,
67 Emitted when a buddy on your buddy list becomes idle.
69 <variablelist role="params">
71 <term><parameter>buddy</parameter> :</term>
72 <listitem><simpara>The buddy whose idle status changed.</simpara></listitem>
75 <term><parameter>old_idle</parameter> :</term>
76 <listitem><simpara>Whether the buddy was idle.</simpara></listitem>
79 <term><parameter>idle</parameter> :</term>
80 <listitem><simpara>Whether the buddy is currently idle.</simpara></listitem>
83 <term><parameter>user_data</parameter> :</term>
84 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
89 <refsect2 id="blist-buddy-signed-on" role="signal">
90 <title>The <literal>"buddy-signed-on"</literal> signal</title>
92 void user_function (PurpleBuddy *buddy,
96 Emitted when a buddy on your buddy list signs on.
98 <variablelist role="params">
100 <term><parameter>buddy</parameter> :</term>
101 <listitem><simpara>The buddy that signed on.</simpara></listitem>
104 <term><parameter>user_data</parameter> :</term>
105 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
110 <refsect2 id="blist-buddy-signed-off" role="signal">
111 <title>The <literal>"buddy-signed-off"</literal> signal</title>
113 void user_function (PurpleBuddy *buddy,
117 Emitted when a buddy on your buddy list signs off.
119 <variablelist role="params">
121 <term><parameter>buddy</parameter> :</term>
122 <listitem><simpara>The buddy that signed off.</simpara></listitem>
125 <term><parameter>user_data</parameter> :</term>
126 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
131 <refsect2 id="blist-update-idle" role="signal">
132 <title>The <literal>"update-idle"</literal> signal</title>
134 void user_function (gpointer user_data)
137 Emitted when the buddy list is refreshed and the idle times are updated.
139 <variablelist role="params">
141 <term><parameter>user_data</parameter> :</term>
142 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
147 <refsect2 id="blist-blist-node-extended-menu" role="signal">
148 <title>The <literal>"blist-node-extended-menu"</literal> signal</title>
150 void user_function (PurpleBlistNode *node,
155 Emitted when a buddlist menu is being constructed <literal>menu</literal> is a pointer to a GList of PurpleMenuAction's allowing a plugin to add menu items.
159 <refsect2 id="blist-blist-node-added" role="signal">
160 <title>The <literal>"blist-node-added"</literal> signal</title>
162 void user_function (PurpleBlistNode *node,
166 Emitted when a new blist node is added to the buddy list.
170 <refsect2 id="blist-blist-node-removed" role="signal">
171 <title>The <literal>"blist-node-removed"</literal> signal</title>
173 void user_function (PurpleBlistNode *node,
177 Emitted when a blist node is removed from the buddy list.
181 <refsect2 id="blist-buddy-icon-changed" role="signal">
182 <title>The <literal>"buddy-icon-changed"</literal> signal</title>
184 void user_function (PurpleBuddy *buddy,
188 Emitted when a buddy's icon is set.
192 <refsect2 id="blist-blist-node-aliased" role="signal">
193 <title>The <literal>"blist-node-aliased"</literal> signal</title>
195 void user_function (PurpleBlistNode *node,
196 const char *old_alias,
200 Emitted when a blist node (buddy, chat, or contact) is aliased.
204 <refsect2 id="blist-buddy-caps-changed" role="signal">
205 <title>The <literal>"buddy-caps-changed"</literal> signal</title>
207 void user_function (PurpleBuddy *buddy,
208 PurpleMediaCaps newcaps,
209 PurpleMediaCaps oldcaps,
213 Emitted when updating a buddy's media capabilities.
215 <variablelist role="params">
217 <term><parameter>buddy</parameter> :</term>
218 <listitem><simpara>The buddy.</simpara></listitem>
221 <term><parameter>newcaps</parameter> :</term>
222 <listitem><simpara>.</simpara></listitem>
225 <term><parameter>oldcaps</parameter> :</term>
226 <listitem><simpara>.</simpara></listitem>
229 <term><parameter>user_data</parameter> :</term>
230 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>
235 <refsect2 id="blist-ui-caps-changed" role="signal">
236 <title>The <literal>"ui-caps-changed"</literal> signal</title>
238 void user_function (PurpleMediaCaps newcaps,
239 PurpleMediaCaps oldcaps,
243 Emitted when updating the media capabilities of the UI.
245 <variablelist role="params">
247 <term><parameter>newcaps</parameter> :</term>
248 <listitem><simpara>.</simpara></listitem>
251 <term><parameter>oldcaps</parameter> :</term>
252 <listitem><simpara>.</simpara></listitem>
255 <term><parameter>user_data</parameter> :</term>
256 <listitem><simpara>user data set when the signal handler was connected.</simpara></listitem>