2 * @file gntaccount.h GNT Account API
8 * Finch is the legal property of its developers, whose names are too numerous
9 * to list here. Please refer to the COPYRIGHT file distributed with this
10 * source distribution.
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
26 #ifndef _GNT_ACCOUNT_H
27 #define _GNT_ACCOUNT_H
31 /**********************************************************************
32 * @name GNT Account API
33 **********************************************************************/
37 * Get the ui-functions.
39 * @return The PurpleAccountUiOps structure populated with the appropriate functions.
41 PurpleAccountUiOps
*finch_accounts_get_ui_ops(void);
44 * Perform necessary initializations.
46 void finch_accounts_init(void);
49 * Perform necessary uninitializations.
51 void finch_accounts_uninit(void);
54 * Show the account-manager dialog.
56 void finch_accounts_show_all(void);
59 * Show the edit dialog for an account.
61 * @param account The account to edit, or @c NULL to create a new account.
65 void finch_account_dialog_show(PurpleAccount
*account
);