2 * This program is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2 of the License, or (at your option) version 3.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 * Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with the program; if not, see <http://www.gnu.org/licenses/>
17 * Srinivasa Ragavan <sragavan@gnome.org>
19 * Copyright (C) 2010 Intel corporation. (www.intel.com)
26 #include <shell/e-shell-view.h>
27 #include <shell/e-shell-searchbar.h>
28 #include <menus/gal-view-instance.h>
30 /* Standard GObject macros */
31 #define E_TYPE_MAIL_VIEW \
32 (e_mail_view_get_type ())
33 #define E_MAIL_VIEW(obj) \
34 (G_TYPE_CHECK_INSTANCE_CAST \
35 ((obj), E_TYPE_MAIL_VIEW, EMailView))
36 #define E_MAIL_VIEW_CLASS(cls) \
37 (G_TYPE_CHECK_CLASS_CAST \
38 ((cls), E_TYPE_MAIL_VIEW, EMailViewClass))
39 #define E_IS_MAIL_VIEW(obj) \
40 (G_TYPE_CHECK_INSTANCE_TYPE \
41 ((obj), E_TYPE_MAIL_VIEW))
42 #define E_IS_MAIL_VIEW_CLASS(cls) \
43 (G_TYPE_CHECK_CLASS_TYPE \
44 ((cls), E_TYPE_MAIL_VIEW))
45 #define E_MAIL_VIEW_GET_CLASS(obj) \
46 (G_TYPE_INSTANCE_GET_CLASS \
47 ((obj), E_TYPE_MAIL_VIEW, EMailViewClass))
51 typedef struct _EMailView EMailView
;
52 typedef struct _EMailViewClass EMailViewClass
;
53 typedef struct _EMailViewPrivate EMailViewPrivate
;
57 EMailViewPrivate
*priv
;
60 struct _EMailViewClass
{
61 GtkVBoxClass parent_class
;
64 void (*pane_close
) (EMailView
*view
);
65 void (*view_changed
) (EMailView
*view
);
66 void (*open_mail
) (EMailView
*view
,
70 void (*set_search_strings
) (EMailView
*view
,
71 GSList
*search_strings
);
73 (*get_view_instance
) (EMailView
*view
);
74 void (*update_view_instance
) (EMailView
*view
);
75 GtkOrientation (*get_orientation
) (EMailView
*view
);
76 void (*set_orientation
) (EMailView
*view
,
77 GtkOrientation orientation
);
78 gboolean (*get_preview_visible
) (EMailView
*view
);
79 void (*set_preview_visible
) (EMailView
*view
,
81 gboolean (*get_show_deleted
) (EMailView
*view
);
82 void (*set_show_deleted
) (EMailView
*view
,
83 gboolean show_deleted
);
86 GType
e_mail_view_get_type (void);
87 EShellView
* e_mail_view_get_shell_view (EMailView
*view
);
88 void e_mail_view_update_view_instance (EMailView
*view
);
90 e_mail_view_get_view_instance (EMailView
*view
);
91 void e_mail_view_set_search_strings (EMailView
*view
,
92 GSList
*search_strings
);
93 void e_mail_view_set_orientation (EMailView
*view
,
94 GtkOrientation orientation
);
95 GtkOrientation
e_mail_view_get_orientation (EMailView
*);
96 void e_mail_view_set_preview_visible (EMailView
*view
,
98 gboolean
e_mail_view_get_preview_visible (EMailView
*view
);
99 EMailView
* e_mail_view_get_previous_view (EMailView
*view
);
100 void e_mail_view_set_previous_view (EMailView
*view
,
101 EMailView
*previous_view
);
102 gboolean
e_mail_view_get_show_deleted (EMailView
*view
);
103 void e_mail_view_set_show_deleted (EMailView
*view
,
104 gboolean show_deleted
);
108 #endif /* E_MAIL_VIEW_H */