merge of '6696045322d43e1d7c9634a33cf10ca2323c061c'
[pidgin-git.git] / finch / gntaccount.h
blob2cf7d8f9e749d481c96065782269308b45c1ddff
1 /**
2 * @file gntaccount.h GNT Account API
3 * @ingroup finch
4 */
6 /* finch
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
29 #include "account.h"
31 /**********************************************************************
32 * @name GNT Account API
33 **********************************************************************/
34 /*@{*/
36 /**
37 * Get the ui-functions.
39 * @return The PurpleAccountUiOps structure populated with the appropriate functions.
41 PurpleAccountUiOps *finch_accounts_get_ui_ops(void);
43 /**
44 * Perform necessary initializations.
46 void finch_accounts_init(void);
48 /**
49 * Perform necessary uninitializations.
51 void finch_accounts_uninit(void);
53 /**
54 * Show the account-manager dialog.
56 void finch_accounts_show_all(void);
58 /**
59 * Show the edit dialog for an account.
61 * @param account The account to edit, or @c NULL to create a new account.
63 * @since 2.2.0
65 void finch_account_dialog_show(PurpleAccount *account);
67 /*@}*/
69 #endif