Mercurial > pidgin
comparison src/account.c @ 7015:dece74f05509
[gaim-migrate @ 7578]
Further core/UI splittage. show_got_added() -> gaim_account_notify_added()
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 29 Sep 2003 15:28:20 +0000 |
parents | 0c5637b5462e |
children | 7fdac700deb1 |
comparison
equal
deleted
inserted
replaced
7014:67c4e9d39242 | 7015:dece74f05509 |
---|---|
79 | 79 |
80 gboolean in_proxy; | 80 gboolean in_proxy; |
81 | 81 |
82 } AccountParserData; | 82 } AccountParserData; |
83 | 83 |
84 | |
85 static GaimAccountUiOps *account_ui_ops = NULL; | |
86 | |
84 static GList *accounts = NULL; | 87 static GList *accounts = NULL; |
85 static guint accounts_save_timer = 0; | 88 static guint accounts_save_timer = 0; |
86 static gboolean accounts_loaded = FALSE; | 89 static gboolean accounts_loaded = FALSE; |
87 | 90 |
88 static void | 91 static void |
225 gc = gaim_account_get_connection(account); | 228 gc = gaim_account_get_connection(account); |
226 | 229 |
227 gaim_account_set_connection(account, NULL); | 230 gaim_account_set_connection(account, NULL); |
228 | 231 |
229 gaim_connection_disconnect(gc); | 232 gaim_connection_disconnect(gc); |
233 } | |
234 | |
235 void | |
236 gaim_account_notify_added(GaimAccount *account, const char *remote_user, | |
237 const char *id, const char *alias, | |
238 const char *message) | |
239 { | |
240 GaimAccountUiOps *ui_ops; | |
241 | |
242 g_return_if_fail(account != NULL); | |
243 g_return_if_fail(remote_user != NULL); | |
244 | |
245 ui_ops = gaim_accounts_get_ui_ops(); | |
246 | |
247 if (ui_ops != NULL && ui_ops->notify_added != NULL) | |
248 ui_ops->notify_added(account, remote_user, id, alias, message); | |
230 } | 249 } |
231 | 250 |
232 void | 251 void |
233 gaim_account_set_username(GaimAccount *account, const char *username) | 252 gaim_account_set_username(GaimAccount *account, const char *username) |
234 { | 253 { |
1444 g_free(who); | 1463 g_free(who); |
1445 | 1464 |
1446 return account; | 1465 return account; |
1447 } | 1466 } |
1448 | 1467 |
1468 void | |
1469 gaim_accounts_set_ui_ops(GaimAccountUiOps *ops) | |
1470 { | |
1471 account_ui_ops = ops; | |
1472 } | |
1473 | |
1474 GaimAccountUiOps * | |
1475 gaim_accounts_get_ui_ops(void) | |
1476 { | |
1477 return account_ui_ops; | |
1478 } | |
1479 | |
1449 void * | 1480 void * |
1450 gaim_accounts_get_handle(void) | 1481 gaim_accounts_get_handle(void) |
1451 { | 1482 { |
1452 static int handle; | 1483 static int handle; |
1453 | 1484 |