Mercurial > pidgin.yaz
diff src/account.h @ 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 | 41120df7ed94 |
children | 7fdac700deb1 |
line wrap: on
line diff
--- a/src/account.h Mon Sep 29 15:23:19 2003 +0000 +++ b/src/account.h Mon Sep 29 15:28:20 2003 +0000 @@ -25,7 +25,8 @@ #ifndef _GAIM_ACCOUNTS_H_ #define _GAIM_ACCOUNTS_H_ -typedef struct _GaimAccount GaimAccount; +typedef struct _GaimAccountUiOps GaimAccountUiOps; +typedef struct _GaimAccount GaimAccount; #include "connection.h" #include "proxy.h" @@ -39,6 +40,13 @@ DENY_SOME }; +struct _GaimAccountUiOps +{ + void (*notify_added)(GaimAccount *account, const char *remote_user, + const char *id, const char *alias, + const char *message); +}; + struct _GaimAccount { char *username; /**< The username. */ @@ -119,6 +127,23 @@ void gaim_account_disconnect(GaimAccount *account); /** + * Notifies the user that the account was added to a remote user's + * buddy list. + * + * This will present a dialog so that the local user can add the buddy, + * if not already added. + * + * @param account The account that was added. + * @param remote_user The name of the user that added this account. + * @param id The optional ID of the local account. Rarely used. + * @param alias The optional alias of the user. + * @param message The optional message sent from the user adding you. + */ +void gaim_account_notify_added(GaimAccount *account, const char *remote_user, + const char *id, const char *alias, + const char *message); + +/** * Sets the account's username. * * @param account The account. @@ -594,6 +619,20 @@ /*@{*/ /** + * Sets the UI operations structure to be used for accounts. + * + * @param ops The UI operations structure. + */ +void gaim_accounts_set_ui_ops(GaimAccountUiOps *ops); + +/** + * Returns the UI operations structure used for accounts. + * + * @return The UI operations structure in use. + */ +GaimAccountUiOps *gaim_accounts_get_ui_ops(void); + +/** * Returns the accounts subsystem handle. * * @return The accounts subsystem handle.