1 /** @page account-signals Account Signals
4 @signal account-created
5 @signal account-destroying
7 @signal account-connecting
8 @signal account-removed
9 @signal account-disabled
10 @signal account-enabled
11 @signal account-setting-info
12 @signal account-set-info
13 @signal account-status-changed
14 @signal account-actions-changed
15 @signal account-alias-changed
16 @signal account-authorization-requested
17 @signal account-authorization-denied
18 @signal account-authorization-granted
19 @signal account-error-changed
26 @signaldef account-created
28 void (*account_created)(PurpleAccount *account);
31 Emitted when an account is created by calling purple_account_new.
32 @param account The account.
36 @signaldef account-destroying
38 void (*account_destroying)(PurpleAccount *account);
41 Emitted when an account is about to be destroyed.
42 @param account The account.
46 @signaldef account-added
48 void (*account_added)(PurpleAccount *account);
51 Emitted when an account is added.
52 @param account The account that was added.
53 @see purple_accounts_add
56 @signaldef account-connecting
58 void (*account_connecting)(PurpleAccount *account);
61 This is called when an account is in the process of connecting.
62 @param account The account in the process of connecting.
65 @signaldef account-removed
67 void (*account_removed)(PurpleAccount *account);
70 Emitted when an account is removed.
71 @param account The account that was removed.
72 @see purple_accounts_remove
75 @signaldef account-disabled
77 void (*account_disabled)(PurpleAccount *account);
80 Emitted when an account is disabled.
81 @param account The account that was disabled.
84 @signaldef account-enabled
86 void (*account_enabled)(PurpleAccount *account);
89 Emitted when an account is enabled.
90 @param account The account that was enabled.
93 @signaldef account-setting-info
95 void (*account_setting_info)(PurpleAccount *account, const char *new_info);
98 Emitted when a user is about to send his new user info, or
99 profile, to the server.
100 @param account The account that the info will be set on.
101 @param new_info The new information to set.
104 @signaldef account-set-info
106 void (*account_set_info)(PurpleAccount *account, const char *new_info);
109 Emitted when a user sent his new user info, or profile, to the server.
110 @param account The account that the info was set on.
111 @param new_info The new information set.
114 @signaldef account-status-changed
116 void (*account_status_changed)(PurpleAccount *account, PurpleStatus *old, PurpleStatus *new);
119 Emitted when the status of an account changes (after the change).
120 @param account The account that changed status.
121 @param old The status before change.
122 @param new The status after change.
125 @signaldef account-actions-changed
127 void (*account_actions_changed)(PurpleAccount *account);
130 Emitted when the account actions are changed after initial connection.
131 @param account The account whose actions changed.
134 @signaldef account-alias-changed
136 void (*account_alias_changed)(PurpleAccount *account, const char *old);
139 Emitted when the alias of an account changes (after the change).
140 @param account The account for which the alias was changed.
141 @param old The alias before change.
144 @signaldef account-authorization-requested
146 int (*account_authorization_requested)(PurpleAccount *account, const char *user);
149 Emitted when a user requests authorization.
150 @param account The account.
151 @param user The name of the user requesting authorization.
152 @return Less than zero to deny the request without prompting, greater
153 than zero if the request should be granted. If zero is returned,
154 then the user will be prompted with the request.
158 @signaldef account-authorization-denied
160 void (*account_authorization_denied)(PurpleAccount *account, const char *user);
163 Emitted when the authorization request for a buddy is denied.
164 @param account The account.
165 @param user The name of the user requesting authorization.
169 @signaldef account-authorization-granted
171 void (*account_authorization_granted)(PurpleAccount *account, const char *user);
174 Emitted when the authorization request for a buddy is granted.
175 @param account The account.
176 @param user The name of the user requesting authorization.
180 @signaldef account-error-changed
182 void (*account_error_changed)(PurpleAccount *account, const PurpleConnectionErrorInfo *old_error, const PurpleConnectionErrorInfo *current_error);
185 Emitted when @a account's error changes. You should not call
186 purple_account_clear_current_error() while this signal is being emitted.
187 @param account The account whose error has changed.
188 @param old_error The account's previous error, or @c NULL if it had no
189 error. After this signal is emitted, @a old_error is
190 not guaranteed to be a valid pointer.
191 @param new_error The account's new error, or @c NULL if it has no error.
192 If not @c NULL, @a new_error will remain a valid until
193 pointer just after the next time this signal is emitted
195 @see purple_account_get_current_error()
200 // vim: syntax=c.doxygen tw=75 et