2 /* insert (c)/licensing information) */
4 #ifndef __MODEST_UI_H__
5 #define __MODEST_UI_H__
7 #include <glib-object.h>
8 #include "modest-conf.h"
12 /* convenience macros */
13 #define MODEST_TYPE_UI (modest_ui_get_type())
14 #define MODEST_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),MODEST_TYPE_UI,ModestUI))
15 #define MODEST_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),MODEST_TYPE_UI,GObject))
16 #define MODEST_IS_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),MODEST_TYPE_UI))
17 #define MODEST_IS_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),MODEST_TYPE_UI))
18 #define MODEST_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj),MODEST_TYPE_UI,ModestUIClass))
20 typedef struct _ModestUI ModestUI;
21 typedef struct _ModestUIClass ModestUIClass;
25 /* insert public members, if any */
28 struct _ModestUIClass {
29 GObjectClass parent_class;
30 /* insert signal callback declarations, eg. */
31 /* void (* my_event) (ModestUI* obj); */
38 * get the GType for ModestUI
42 GType modest_ui_get_type (void) G_GNUC_CONST;
48 * @modest_conf: a ModestConf instance
50 * Returns: a new ModestUI, or NULL in case of error
52 GObject* modest_ui_new (ModestConf *modest_conf);
56 * modest_ui_show_main_window:
57 * @ui: a ModestUI instance
59 * Returns: TRUE if succeeded, FALSE otherwise
62 gboolean modest_ui_show_main_window (ModestUI *ui);
66 * modest_ui_show_new_edit_window:
67 * @ui: a ModestUI instance
68 * @to: people to send this to, ';' separated
69 * @cc: people send carbon-copies (cc), ';' separated
70 * @bcc people send blind-carbon-copies (bcc),';' separated
71 * @subject: the subject of the message
72 * @body: the body text of the message
73 * @att: a list with the filepaths for attachments
75 * Returns: TRUE if succeeded, FALSE otherwise
77 gboolean modest_ui_show_edit_window (ModestUI *ui,
87 #endif /* __MODEST_UI_H__ */