Mercurial > pidgin
comparison src/account.h @ 6239:8d10cdfe1bb1
[gaim-migrate @ 6733]
Added some API stuff for setting an account's public IP, which will be used
for file transfer and stuff. I won't be doing much with this until after my
vacation.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 20 Jul 2003 03:05:58 +0000 |
parents | 49ae70ffcea5 |
children | 9fd154ca6a94 |
comparison
equal
deleted
inserted
replaced
6238:6173354a64dc | 6239:8d10cdfe1bb1 |
---|---|
37 DENY_SOME | 37 DENY_SOME |
38 }; | 38 }; |
39 | 39 |
40 struct _GaimAccount | 40 struct _GaimAccount |
41 { | 41 { |
42 char *username; /**< The username. */ | 42 char *username; /**< The username. */ |
43 char *alias; /**< The current alias. */ | 43 char *alias; /**< The current alias. */ |
44 char *password; /**< The account password. */ | 44 char *password; /**< The account password. */ |
45 char *user_info; /**< User information. */ | 45 char *user_info; /**< User information. */ |
46 | 46 |
47 char *buddy_icon; /**< The buddy icon. */ | 47 char *buddy_icon; /**< The buddy icon. */ |
48 | 48 |
49 gboolean remember_pass; /**< Remember the password. */ | 49 gboolean remember_pass; /**< Remember the password. */ |
50 | 50 |
51 char *protocol_id; /**< The ID of the protocol. */ | 51 char *protocol_id; /**< The ID of the protocol. */ |
52 | 52 |
53 GaimConnection *gc; /**< The connection handle. */ | 53 GaimConnection *gc; /**< The connection handle. */ |
54 | 54 |
55 GHashTable *settings; /**< Protocol-specific settings. */ | 55 GHashTable *settings; /**< Protocol-specific settings. */ |
56 GHashTable *ui_settings; /**< UI-specific settings. */ | 56 GHashTable *ui_settings; /**< UI-specific settings. */ |
57 | 57 |
58 GaimProxyInfo *proxy_info; /**< Proxy information. */ | 58 char *ip; /**< The IP address for transfers. */ |
59 | 59 GaimProxyInfo *proxy_info; /**< Proxy information. */ |
60 GSList *permit; /**< Permit list. */ | 60 |
61 GSList *deny; /**< Deny list. */ | 61 GSList *permit; /**< Permit list. */ |
62 int perm_deny; /**< The permit/deny setting. */ | 62 GSList *deny; /**< Deny list. */ |
63 int perm_deny; /**< The permit/deny setting. */ | |
63 }; | 64 }; |
64 | 65 |
65 #ifdef __cplusplus | 66 #ifdef __cplusplus |
66 extern "C" { | 67 extern "C" { |
67 #endif | 68 #endif |
195 */ | 196 */ |
196 void gaim_account_set_auto_login(GaimAccount *account, const char *ui, | 197 void gaim_account_set_auto_login(GaimAccount *account, const char *ui, |
197 gboolean value); | 198 gboolean value); |
198 | 199 |
199 /** | 200 /** |
201 * Sets the public IP address the account will use for such things | |
202 * as file transfer. | |
203 * | |
204 * @param account The account. | |
205 * @param ip The IP address. | |
206 */ | |
207 void gaim_account_set_public_ip(GaimAccount *account, const char *ip); | |
208 | |
209 /** | |
200 * Sets the account's proxy information. | 210 * Sets the account's proxy information. |
201 * | 211 * |
202 * @param account The account. | 212 * @param account The account. |
203 * @param info The proxy information. | 213 * @param info The proxy information. |
204 */ | 214 */ |
381 * | 391 * |
382 * @return @c TRUE if it should auto-login on this UI. | 392 * @return @c TRUE if it should auto-login on this UI. |
383 */ | 393 */ |
384 gboolean gaim_account_get_auto_login(const GaimAccount *account, | 394 gboolean gaim_account_get_auto_login(const GaimAccount *account, |
385 const char *ui); | 395 const char *ui); |
396 | |
397 /** | |
398 * Returns the account's public IP address. | |
399 * | |
400 * @param account The account. | |
401 * | |
402 * @return The IP address. | |
403 */ | |
404 const char *gaim_account_get_public_ip(const GaimAccount *account); | |
386 | 405 |
387 /** | 406 /** |
388 * Returns the account's proxy information. | 407 * Returns the account's proxy information. |
389 * | 408 * |
390 * @param account The account. | 409 * @param account The account. |