X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fwidgets%2Fmodest-account-view.h;h=aa16dd2d9958f2e8e26f11fd095675a6350353ae;hp=bb0263d984c3f0cd2c33e7cb38ce44a513670c29;hb=556398d85f1803ab8d4871a107bc4b8938c444ae;hpb=cd52c8748afe0d7ef9987994d2f2386c2f53fbee diff --git a/src/widgets/modest-account-view.h b/src/widgets/modest-account-view.h index bb0263d..aa16dd2 100644 --- a/src/widgets/modest-account-view.h +++ b/src/widgets/modest-account-view.h @@ -30,9 +30,8 @@ #ifndef __MODEST_ACCOUNT_VIEW_H__ #define __MODEST_ACCOUNT_VIEW_H__ -#include -#include -#include +#include "modest-account-mgr.h" +#include G_BEGIN_DECLS @@ -49,21 +48,44 @@ typedef struct _ModestAccountViewClass ModestAccountViewClass; struct _ModestAccountView { GtkTreeView parent; - /* insert public members, if any */ }; struct _ModestAccountViewClass { GtkTreeViewClass parent_class; - /* insert signal callback declarations, eg. */ - /* void (* my_event) (ModestAccountView* obj); */ }; -/* member functions */ + +/** + * modest_account_view_get_type + * + * Gets the #GType for the account view class + * + * Returns: the #GType + **/ GType modest_account_view_get_type (void) G_GNUC_CONST; +/** + * modest_account_view_new: + * @account_view: a #ModestAccountView + * + * Create a new acccount view widget = ie, a list with accounts + * + * Returns: a new account view widget, or NULL in case of error + **/ +ModestAccountView* modest_account_view_new (ModestAccountMgr *account_mgr); + -GtkWidget* modest_account_view_new (ModestAccountMgr *account_mgr); +/** + * modest_account_view_get_selected_account: + * @account_view: a #ModestAccountView + * + * Gets the name of the account currently selected + * + * Returns: the name of the selected account or NULL if none is + * selected + **/ +gchar* modest_account_view_get_selected_account (ModestAccountView *account_view); G_END_DECLS