Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
7014:67c4e9d39242 | 7015:dece74f05509 |
---|---|
23 * @see @ref account-signals | 23 * @see @ref account-signals |
24 */ | 24 */ |
25 #ifndef _GAIM_ACCOUNTS_H_ | 25 #ifndef _GAIM_ACCOUNTS_H_ |
26 #define _GAIM_ACCOUNTS_H_ | 26 #define _GAIM_ACCOUNTS_H_ |
27 | 27 |
28 typedef struct _GaimAccount GaimAccount; | 28 typedef struct _GaimAccountUiOps GaimAccountUiOps; |
29 typedef struct _GaimAccount GaimAccount; | |
29 | 30 |
30 #include "connection.h" | 31 #include "connection.h" |
31 #include "proxy.h" | 32 #include "proxy.h" |
32 #include "prpl.h" | 33 #include "prpl.h" |
33 | 34 |
37 PERMIT_NONE, | 38 PERMIT_NONE, |
38 PERMIT_SOME, | 39 PERMIT_SOME, |
39 DENY_SOME | 40 DENY_SOME |
40 }; | 41 }; |
41 | 42 |
43 struct _GaimAccountUiOps | |
44 { | |
45 void (*notify_added)(GaimAccount *account, const char *remote_user, | |
46 const char *id, const char *alias, | |
47 const char *message); | |
48 }; | |
49 | |
42 struct _GaimAccount | 50 struct _GaimAccount |
43 { | 51 { |
44 char *username; /**< The username. */ | 52 char *username; /**< The username. */ |
45 char *alias; /**< The current alias. */ | 53 char *alias; /**< The current alias. */ |
46 char *password; /**< The account password. */ | 54 char *password; /**< The account password. */ |
117 * @return The gaim connection. | 125 * @return The gaim connection. |
118 */ | 126 */ |
119 void gaim_account_disconnect(GaimAccount *account); | 127 void gaim_account_disconnect(GaimAccount *account); |
120 | 128 |
121 /** | 129 /** |
130 * Notifies the user that the account was added to a remote user's | |
131 * buddy list. | |
132 * | |
133 * This will present a dialog so that the local user can add the buddy, | |
134 * if not already added. | |
135 * | |
136 * @param account The account that was added. | |
137 * @param remote_user The name of the user that added this account. | |
138 * @param id The optional ID of the local account. Rarely used. | |
139 * @param alias The optional alias of the user. | |
140 * @param message The optional message sent from the user adding you. | |
141 */ | |
142 void gaim_account_notify_added(GaimAccount *account, const char *remote_user, | |
143 const char *id, const char *alias, | |
144 const char *message); | |
145 | |
146 /** | |
122 * Sets the account's username. | 147 * Sets the account's username. |
123 * | 148 * |
124 * @param account The account. | 149 * @param account The account. |
125 * @param username The username. | 150 * @param username The username. |
126 */ | 151 */ |
592 /** @name Accounts Subsystem */ | 617 /** @name Accounts Subsystem */ |
593 /**************************************************************************/ | 618 /**************************************************************************/ |
594 /*@{*/ | 619 /*@{*/ |
595 | 620 |
596 /** | 621 /** |
622 * Sets the UI operations structure to be used for accounts. | |
623 * | |
624 * @param ops The UI operations structure. | |
625 */ | |
626 void gaim_accounts_set_ui_ops(GaimAccountUiOps *ops); | |
627 | |
628 /** | |
629 * Returns the UI operations structure used for accounts. | |
630 * | |
631 * @return The UI operations structure in use. | |
632 */ | |
633 GaimAccountUiOps *gaim_accounts_get_ui_ops(void); | |
634 | |
635 /** | |
597 * Returns the accounts subsystem handle. | 636 * Returns the accounts subsystem handle. |
598 * | 637 * |
599 * @return The accounts subsystem handle. | 638 * @return The accounts subsystem handle. |
600 */ | 639 */ |
601 void *gaim_accounts_get_handle(void); | 640 void *gaim_accounts_get_handle(void); |