#include <glib.h>
#include "connection.h"
#include "proxy.h"
#include "prpl.h"
#include "log.h"
Include dependency graph for account.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | _GaimAccount |
struct | _GaimAccountUiOps |
Account API | |
GaimAccount * | gaim_account_new (const char *username, const char *protocol_id) |
Creates a new account. | |
void | gaim_account_destroy (GaimAccount *account) |
Destroys an account. | |
GaimConnection * | gaim_account_connect (GaimAccount *account) |
Connects to an account. | |
GaimConnection * | gaim_account_register (GaimAccount *account) |
Registers an account. | |
void | gaim_account_disconnect (GaimAccount *account) |
Disconnects from an account. | |
void | gaim_account_notify_added (GaimAccount *account, const char *remote_user, const char *id, const char *alias, const char *message) |
Notifies the user that the account was added to a remote user's buddy list. | |
void | gaim_account_request_change_password (GaimAccount *account) |
Requests information from the user to change the account's password. | |
void | gaim_account_request_change_user_info (GaimAccount *account) |
Requests information from the user to change the account's user information. | |
void | gaim_account_set_username (GaimAccount *account, const char *username) |
Sets the account's username. | |
void | gaim_account_set_password (GaimAccount *account, const char *password) |
Sets the account's password. | |
void | gaim_account_set_alias (GaimAccount *account, const char *alias) |
Sets the account's alias. | |
void | gaim_account_set_user_info (GaimAccount *account, const char *user_info) |
Sets the account's user information. | |
void | gaim_account_set_buddy_icon (GaimAccount *account, const char *icon) |
Sets the account's buddy icon. | |
void | gaim_account_set_protocol (GaimAccount *account, GaimProtocol protocol) |
Sets the account's protocol. | |
void | gaim_account_set_protocol_id (GaimAccount *account, const char *protocol_id) |
Sets the account's protocol ID. | |
void | gaim_account_set_connection (GaimAccount *account, GaimConnection *gc) |
Sets the account's connection. | |
void | gaim_account_set_remember_password (GaimAccount *account, gboolean value) |
Sets whether or not this account should save its password. | |
void | gaim_account_set_check_mail (GaimAccount *account, gboolean value) |
Sets whether or not this account should check for mail. | |
void | gaim_account_set_auto_login (GaimAccount *account, const char *ui, gboolean value) |
Sets whether or not this account should auto-login for the specified UI. | |
void | gaim_account_set_public_ip (GaimAccount *account, const char *ip) |
Sets the public IP address the account will use for such things as file transfer. | |
void | gaim_account_set_proxy_info (GaimAccount *account, GaimProxyInfo *info) |
Sets the account's proxy information. | |
void | gaim_account_clear_settings (GaimAccount *account) |
Clears all protocol-specific settings on an account. | |
void | gaim_account_set_int (GaimAccount *account, const char *name, int value) |
Sets a protocol-specific integer setting for an account. | |
void | gaim_account_set_string (GaimAccount *account, const char *name, const char *value) |
Sets a protocol-specific string setting for an account. | |
void | gaim_account_set_bool (GaimAccount *account, const char *name, gboolean value) |
Sets a protocol-specific boolean setting for an account. | |
void | gaim_account_set_ui_int (GaimAccount *account, const char *ui, const char *name, int value) |
Sets a UI-specific integer setting for an account. | |
void | gaim_account_set_ui_string (GaimAccount *account, const char *ui, const char *name, const char *value) |
Sets a UI-specific string setting for an account. | |
void | gaim_account_set_ui_bool (GaimAccount *account, const char *ui, const char *name, gboolean value) |
Sets a UI-specific boolean setting for an account. | |
gboolean | gaim_account_is_connected (const GaimAccount *account) |
Returns whether or not the account is connected. | |
const char * | gaim_account_get_username (const GaimAccount *account) |
Returns the account's username. | |
const char * | gaim_account_get_password (const GaimAccount *account) |
Returns the account's password. | |
const char * | gaim_account_get_alias (const GaimAccount *account) |
Returns the account's alias. | |
const char * | gaim_account_get_user_info (const GaimAccount *account) |
Returns the account's user information. | |
const char * | gaim_account_get_buddy_icon (const GaimAccount *account) |
Returns the account's buddy icon filename. | |
GaimProtocol | gaim_account_get_protocol (const GaimAccount *account) |
Returns the account's protocol. | |
const char * | gaim_account_get_protocol_id (const GaimAccount *account) |
Returns the account's protocol ID. | |
GaimConnection * | gaim_account_get_connection (const GaimAccount *account) |
Returns the account's connection. | |
gboolean | gaim_account_get_remember_password (const GaimAccount *account) |
Returns whether or not this account should save its password. | |
gboolean | gaim_account_get_check_mail (const GaimAccount *account) |
Returns whether or not this account should check for mail. | |
gboolean | gaim_account_get_auto_login (const GaimAccount *account, const char *ui) |
Returns whether or not this account should auto-login for the specified UI. | |
const char * | gaim_account_get_public_ip (const GaimAccount *account) |
Returns the account's public IP address. | |
GaimProxyInfo * | gaim_account_get_proxy_info (const GaimAccount *account) |
Returns the account's proxy information. | |
int | gaim_account_get_int (const GaimAccount *account, const char *name, int default_value) |
Returns a protocol-specific integer setting for an account. | |
const char * | gaim_account_get_string (const GaimAccount *account, const char *name, const char *default_value) |
Returns a protocol-specific string setting for an account. | |
gboolean | gaim_account_get_bool (const GaimAccount *account, const char *name, gboolean default_value) |
Returns a protocol-specific boolean setting for an account. | |
int | gaim_account_get_ui_int (const GaimAccount *account, const char *ui, const char *name, int default_value) |
Returns a UI-specific integer setting for an account. | |
const char * | gaim_account_get_ui_string (const GaimAccount *account, const char *ui, const char *name, const char *default_value) |
Returns a UI-specific string setting for an account. | |
gboolean | gaim_account_get_ui_bool (const GaimAccount *account, const char *ui, const char *name, gboolean default_value) |
Returns a UI-specific boolean setting for an account. | |
GaimLog * | gaim_account_get_log (GaimAccount *account) |
Returns the system log for an account. | |
void | gaim_account_destroy_log (GaimAccount *account) |
Frees the system log of an account. | |
Accounts API | |
gboolean | gaim_accounts_load () |
Loads the accounts. | |
void | gaim_accounts_sync () |
Force an immediate write of accounts. | |
void | gaim_accounts_add (GaimAccount *account) |
Adds an account to the list of accounts. | |
void | gaim_accounts_remove (GaimAccount *account) |
Removes an account from the list of accounts. | |
void | gaim_accounts_delete (GaimAccount *account) |
Deletes an account. | |
void | gaim_accounts_auto_login (const char *ui) |
Auto-logins to all accounts set to auto-login under the specified UI. | |
void | gaim_accounts_reorder (GaimAccount *account, size_t new_index) |
Reorders an account. | |
GList * | gaim_accounts_get_all (void) |
Returns a list of all accounts. | |
GaimAccount * | gaim_accounts_find (const char *name, const char *protocol) |
Finds an account with the specified name and protocol id. | |
UI Registration Functions | |
void | gaim_accounts_set_ui_ops (GaimAccountUiOps *ops) |
Sets the UI operations structure to be used for accounts. | |
GaimAccountUiOps * | gaim_accounts_get_ui_ops (void) |
Returns the UI operations structure used for accounts. | |
Accounts Subsystem | |
void * | gaim_accounts_get_handle (void) |
Returns the accounts subsystem handle. | |
void | gaim_accounts_init (void) |
Initializes the accounts subsystem. | |
void | gaim_accounts_uninit (void) |
Uninitializes the accounts subsystem. | |
Typedefs | |
typedef _GaimAccountUiOps | GaimAccountUiOps |
typedef _GaimAccount | GaimAccount |
typedef gboolean(* | GaimFilterAccountFunc )(GaimAccount *account) |
gaim
Gaim is the legal property of its developers, whose names are too numerous to list here. Please refer to the COPYRIGHT file distributed with this source distribution.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Clears all protocol-specific settings on an account.
|
|
Connects to an account.
|
|
Destroys an account.
|
|
Frees the system log of an account.
|
|
Disconnects from an account.
|
|
Returns the account's alias.
|
|
Returns whether or not this account should auto-login for the specified UI.
|
|
Returns a protocol-specific boolean setting for an account.
|
|
Returns the account's buddy icon filename.
|
|
Returns whether or not this account should check for mail.
|
|
Returns the account's connection.
|
|
Returns a protocol-specific integer setting for an account.
|
|
Returns the system log for an account. Create it if it doesn't already exist.
|
|
Returns the account's password.
|
|
Returns the account's protocol.
|
|
Returns the account's protocol ID.
|
|
Returns the account's proxy information.
|
|
Returns the account's public IP address.
|
|
Returns whether or not this account should save its password.
|
|
Returns a protocol-specific string setting for an account.
|
|
Returns a UI-specific boolean setting for an account.
|
|
Returns a UI-specific integer setting for an account.
|
|
Returns a UI-specific string setting for an account.
|
|
Returns the account's user information.
|
|
Returns the account's username.
|
|
Returns whether or not the account is connected.
|
|
Creates a new 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.
|
|
Registers an account.
|
|
Requests information from the user to change the account's password.
|
|
Requests information from the user to change the account's user information.
|
|
Sets the account's alias.
|
|
Sets whether or not this account should auto-login for the specified UI.
|
|
Sets a protocol-specific boolean setting for an account.
|
|
Sets the account's buddy icon.
|
|
Sets whether or not this account should check for mail.
|
|
Sets the account's connection.
|
|
Sets a protocol-specific integer setting for an account.
|
|
Sets the account's password.
|
|
Sets the account's protocol.
|
|
Sets the account's protocol ID.
|
|
Sets the account's proxy information.
|
|
Sets the public IP address the account will use for such things as file transfer.
|
|
Sets whether or not this account should save its password.
|
|
Sets a protocol-specific string setting for an account.
|
|
Sets a UI-specific boolean setting for an account.
|
|
Sets a UI-specific integer setting for an account.
|
|
Sets a UI-specific string setting for an account.
|
|
Sets the account's user information.
|
|
Sets the account's username.
|
|
Adds an account to the list of accounts.
|
|
Auto-logins to all accounts set to auto-login under the specified UI.
|
|
Deletes an account. This will remove any buddies from the buddy list that belong to this account, buddy pounces that belong to this account, and will also destroy account.
|
|
Finds an account with the specified name and protocol id.
|
|
Returns a list of all accounts.
|
|
Returns the accounts subsystem handle.
|
|
Returns the UI operations structure used for accounts.
|
|
Removes an account from the list of accounts.
|
|
Reorders an account.
|
|
Sets the UI operations structure to be used for accounts.
|