1 /** @page connection-signals Connection Signals
9 @signal connection-error
18 void (*signing_on)(PurpleConnection *gc);
21 Emitted when a connection is about to sign on.
22 @param gc The connection that is about to sign on.
27 void (*signed_on)(PurpleConnection *gc);
30 Emitted when a connection has signed on.
31 @param gc The connection that has signed on.
36 gboolean (*autojoin)(PurpleConnection *gc);
39 Emitted when a connection has signed on, after the signed-on signal, to
40 signal UIs to autojoin chats if they wish. UIs should connect to this
41 with @c PURPLE_SIGNAL_PRIORITY_HIGHEST to allow plugins to block this
42 signal before the UI sees it and then re-emit it later.
43 @param gc The connection that has signed on.
44 @return @c TRUE if the signal was handled or @c FALSE otherwise. In
45 practice, the return value is irrelevant, as it really only
46 exists so plugins can block the UI's autojoin.
50 @signaldef signing-off
52 void (*signing_off)(PurpleConnection *gc);
55 Emitted when a connection is about to sign off.
56 @param gc The connection that is about to sign off.
61 void (*signed_off)(PurpleConnection *gc);
64 Emitted when a connection has signed off.
65 @param gc The connection that has signed off.
68 @signaldef connection-error
70 void (*connection_error)(PurpleConnection *gc, PurpleConnectionError err, const gchar *desc)
73 Emitted when a connection error occurs, before @ref signed-off.
74 @param gc The connection on which the error has occurred
75 @param err The error that occurred
76 @param desc A description of the error, giving more information.
80 // vim: syntax=c.doxygen tw=75 et