#ifndef __MODEST_ACCOUNT_VIEW_H__
#define __MODEST_ACCOUNT_VIEW_H__
-#include <gtk/gtk.h>
-#include <modest-account-mgr.h>
+#include "modest-account-mgr.h"
+#include <gtk/gtktreeview.h>
G_BEGIN_DECLS
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);
+
/**
* modest_account_view_get_selected_account:
* @account_view: a #ModestAccountView
* Returns: the name of the selected account or NULL if none is
* selected
**/
-const gchar* modest_account_view_get_selected_account (ModestAccountView *account_view);
+gchar* modest_account_view_get_selected_account (ModestAccountView *account_view);
+
+/**
+ * modest_account_view_set_selected_account:
+ * @account_view: a #ModestAccountView
+ * @account_name: The name of the account to select.
+ *
+ * Sets the currently selected account.
+ **/
+/* Not used outside:
+void modest_account_view_select_account (ModestAccountView *account_view,
+ const gchar* account_name);
+*/
G_END_DECLS