2 * e-mail-account-tree-view.h
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) version 3.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with the program; if not, see <http://www.gnu.org/licenses/>
19 #ifndef E_MAIL_ACCOUNT_TREE_VIEW_H
20 #define E_MAIL_ACCOUNT_TREE_VIEW_H
23 #include <mail/e-mail-account-store.h>
25 /* Standard GObject macros */
26 #define E_TYPE_MAIL_ACCOUNT_TREE_VIEW \
27 (e_mail_account_tree_view_get_type ())
28 #define E_MAIL_ACCOUNT_TREE_VIEW(obj) \
29 (G_TYPE_CHECK_INSTANCE_CAST \
30 ((obj), E_TYPE_MAIL_ACCOUNT_TREE_VIEW, EMailAccountTreeView))
31 #define E_MAIL_ACCOUNT_TREE_VIEW_CLASS(cls) \
32 (G_TYPE_CHECK_CLASS_CAST \
33 ((cls), E_TYPE_MAIL_ACCOUNT_TREE_VIEW, EMailAccountTreeViewClass))
34 #define E_IS_MAIL_ACCOUNT_TREE_VIEW(obj) \
35 (G_TYPE_CHECK_INSTANCE_TYPE \
36 ((obj), E_TYPE_MAIL_ACCOUNT_TREE_VIEW))
37 #define E_IS_MAIL_ACCOUNT_TREE_VIEW_CLASS(cls) \
38 (G_TYPE_CHECK_CLASS_TYPE \
39 ((cls), E_TYPE_MAIL_ACCOUNT_TREE_VIEW))
40 #define E_MAIL_ACCOUNT_TREE_VIEW_GET_CLASS(obj) \
41 (G_TYPE_INSTANCE_GET_CLASS \
42 ((obj), E_TYPE_MAIL_ACCOUNT_TREE_VIEW, EMailAccountTreeViewClass))
46 typedef struct _EMailAccountTreeView EMailAccountTreeView
;
47 typedef struct _EMailAccountTreeViewClass EMailAccountTreeViewClass
;
48 typedef struct _EMailAccountTreeViewPrivate EMailAccountTreeViewPrivate
;
50 struct _EMailAccountTreeView
{
52 EMailAccountTreeViewPrivate
*priv
;
55 struct _EMailAccountTreeViewClass
{
56 GtkTreeViewClass parent_class
;
59 void (*enable
) (EMailAccountTreeView
*tree_view
);
60 void (*disable
) (EMailAccountTreeView
*tree_view
);
63 GType e_mail_account_tree_view_get_type
65 GtkWidget
* e_mail_account_tree_view_new
66 (EMailAccountStore
*store
);
67 CamelService
* e_mail_account_tree_view_get_selected_service
68 (EMailAccountTreeView
*tree_view
);
69 void e_mail_account_tree_view_set_selected_service
70 (EMailAccountTreeView
*tree_view
,
71 CamelService
*service
);
75 #endif /* E_MAIL_ACCOUNT_TREE_VIEW_H */