Use conventional style for empty string check
[pidgin-git.git] / pidgin / gtkaccount.h
blobe9a5a5319bbc02b72e7ffc13758ac916b75bb1ae
1 /**
2 * @file gtkaccount.h GTK+ Account Editor UI
3 * @ingroup pidgin
4 * @see @ref gtkaccount-signals
5 */
7 /* pidgin
9 * Pidgin is the legal property of its developers, whose names are too numerous
10 * to list here. Please refer to the COPYRIGHT file distributed with this
11 * source distribution.
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with this program; if not, write to the Free Software
25 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
27 #ifndef _PIDGINACCOUNT_H_
28 #define _PIDGINACCOUNT_H_
30 #include "account.h"
32 typedef enum
34 PIDGIN_ADD_ACCOUNT_DIALOG,
35 PIDGIN_MODIFY_ACCOUNT_DIALOG
37 } PidginAccountDialogType;
40 /**
41 * Shows the accounts window.
43 void pidgin_accounts_window_show(void);
45 /**
46 * Hides the accounts window.
48 void pidgin_accounts_window_hide(void);
50 /**
51 * Shows an add/modify account dialog.
53 * @param type The type of dialog.
54 * @param account The associated account, or @c NULL for an Add dialog.
56 void pidgin_account_dialog_show(PidginAccountDialogType type,
57 PurpleAccount *account);
59 /**
60 * Returns the GTK+ account UI ops
62 * @return The UI operations structure.
64 PurpleAccountUiOps *pidgin_accounts_get_ui_ops(void);
66 /**
67 * Returns the gtkaccounts handle
69 * @return The handle to the GTK+ account system
71 void *pidgin_account_get_handle(void);
73 /**
74 * Initializes the GTK+ account system
76 void pidgin_account_init(void);
78 /**
79 * Uninitializes the GTK+ account system
81 void pidgin_account_uninit(void);
83 #endif /* _PIDGINACCOUNT_H_ */