Merged pidgin/main into default
[pidgin-git.git] / pidgin / gtkaccount.h
blobe9750389c0d24a16f5657c072727d44f7b12529b
1 /* pidgin
3 * Pidgin is the legal property of its developers, whose names are too numerous
4 * to list here. Please refer to the COPYRIGHT file distributed with this
5 * source distribution.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
22 #ifndef _PIDGINACCOUNT_H_
23 #define _PIDGINACCOUNT_H_
24 /**
25 * SECTION:gtkaccount
26 * @section_id: pidgin-gtkaccount
27 * @short_description: <filename>gtkaccount.h</filename>
28 * @title: Account Editor UI
29 * @see_also: <link linkend="chapter-signals-gtkaccount">Account signals</link>
32 #include "accounts.h"
34 typedef enum
36 PIDGIN_ADD_ACCOUNT_DIALOG,
37 PIDGIN_MODIFY_ACCOUNT_DIALOG
39 } PidginAccountDialogType;
42 G_BEGIN_DECLS
44 /**
45 * pidgin_accounts_window_show:
47 * Shows the accounts window.
49 void pidgin_accounts_window_show(void);
51 /**
52 * pidgin_accounts_window_hide:
54 * Hides the accounts window.
56 void pidgin_accounts_window_hide(void);
58 /**
59 * pidgin_account_dialog_show:
60 * @type: The type of dialog.
61 * @account: The associated account, or %NULL for an Add dialog.
63 * Shows an add/modify account dialog.
65 void pidgin_account_dialog_show(PidginAccountDialogType type,
66 PurpleAccount *account);
68 /**
69 * pidgin_accounts_get_ui_ops:
71 * Returns the GTK+ account UI ops
73 * Returns: The UI operations structure.
75 PurpleAccountUiOps *pidgin_accounts_get_ui_ops(void);
77 /**
78 * pidgin_accounts_get_handle:
80 * Returns the gtkaccounts handle
82 * Returns: The handle to the GTK+ account system
84 void *pidgin_accounts_get_handle(void);
86 /**
87 * pidgin_accounts_init:
89 * Initializes the GTK+ account system
91 void pidgin_accounts_init(void);
93 /**
94 * pidgin_accounts_uninit:
96 * Uninitializes the GTK+ account system
98 void pidgin_accounts_uninit(void);
100 G_END_DECLS
102 #endif /* _PIDGINACCOUNT_H_ */