* (quote) utf8 actually works now
[modest] / src / modest-ui.h
1 /* modest-ui.h */
2 /* insert (c)/licensing information) */
3
4 #ifndef __MODEST_UI_H__
5 #define __MODEST_UI_H__
6
7 #include <glib-object.h>
8 #include "modest-conf.h"
9
10 G_BEGIN_DECLS
11
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))
19
20 typedef struct _ModestUI      ModestUI;
21 typedef struct _ModestUIClass ModestUIClass;
22
23 struct _ModestUI {
24          GObject parent;
25         /* insert public members, if any */
26 };
27
28 struct _ModestUIClass {
29         GObjectClass parent_class;
30         /* insert signal callback declarations, eg. */
31         /* void (* my_event) (ModestUI* obj); */
32 };
33
34
35 /**
36  * modest_ui_get_type:
37  * 
38  * get the GType for ModestUI
39  *  
40  * Returns: the GType
41  */
42 GType        modest_ui_get_type        (void) G_GNUC_CONST;
43
44
45
46 /**
47  * modest_ui_new:
48  * @modest_conf: a ModestConf instance 
49  *  
50  * Returns: a new ModestUI, or NULL in case of error
51  */
52 GObject*     modest_ui_new             (ModestConf *modest_conf);
53
54
55 /**
56  * modest_ui_show_main_window:
57  * @ui: a ModestUI instance 
58  *  
59  * Returns: TRUE if succeeded, FALSE otherwise
60  * 
61  */
62 gboolean     modest_ui_show_main_window (ModestUI *ui);
63
64
65 /**
66  * modest_ui_show_edit_window:
67  * @ui: a ModestUI instance 
68  * @to: people to send this to, ';' separated
69  * @cc: people to send carbon-copies (cc), ';' separated
70  * @bcc people to 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
74  *  
75  * Returns: TRUE if succeeded, FALSE otherwise
76  */
77 gboolean     modest_ui_show_edit_window (ModestUI *ui,
78                                          const gchar* to,
79                                          const gchar* cc,
80                                          const gchar* bcc,
81                                          const gchar* subject,
82                                          const gchar* body,
83                                          const GSList* att);
84
85 G_END_DECLS
86
87 #endif /* __MODEST_UI_H__ */