* let the dbus-invoked msgs use the same uids as other messages,
[modest] / src / widgets / modest-retrieve-combo-box.h
1 /* Copyright (c) 2007, Nokia Corporation
2  * All rights reserved.
3  *
4  */
5
6 #ifndef _MODEST_RETRIEVE_COMBO_BOX
7 #define _MODEST_RETRIEVE_COMBO_BOX
8
9 #include <gtk/gtkcombobox.h>
10 #include "modest-protocol-info.h"
11
12 G_BEGIN_DECLS
13
14 #define MODEST_TYPE_RETRIEVE_COMBO_BOX modest_retrieve_combo_box_get_type()
15
16 #define MODEST_RETRIEVE_COMBO_BOX(obj) \
17         (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
18         MODEST_TYPE_RETRIEVE_COMBO_BOX, ModestRetrieveComboBox))
19
20 #define MODEST_RETRIEVE_COMBO_BOX_CLASS(klass) \
21         (G_TYPE_CHECK_CLASS_CAST ((klass), \
22         MODEST_TYPE_RETRIEVE_COMBO_BOX, ModestRetrieveComboBoxClass))
23
24 #define MODEST_IS_RETRIEVE_COMBO_BOX(obj) \
25         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
26         MODEST_TYPE_RETRIEVE_COMBO_BOX))
27
28 #define MODEST_IS_RETRIEVE_COMBO_BOX_CLASS(klass) \
29         (G_TYPE_CHECK_CLASS_TYPE ((klass), \
30         MODEST_TYPE_RETRIEVE_COMBO_BOX))
31
32 #define MODEST_RETRIEVE_COMBO_BOX_GET_CLASS(obj) \
33         (G_TYPE_INSTANCE_GET_CLASS ((obj), \
34         MODEST_TYPE_RETRIEVE_COMBO_BOX, ModestRetrieveComboBoxClass))
35
36 typedef struct {
37         GtkComboBox parent;
38 } ModestRetrieveComboBox;
39
40 typedef struct {
41         GtkComboBoxClass parent_class;
42 } ModestRetrieveComboBoxClass;
43
44 GType modest_retrieve_combo_box_get_type (void);
45
46 ModestRetrieveComboBox* modest_retrieve_combo_box_new (void);
47
48 void modest_retrieve_combo_box_fill (ModestRetrieveComboBox *combobox, ModestTransportStoreProtocol protocol);
49
50 gchar* modest_retrieve_combo_box_get_active_retrieve_conf (ModestRetrieveComboBox *combobox);
51
52 gboolean modest_retrieve_combo_box_set_active_retrieve_conf (ModestRetrieveComboBox *combobox, const gchar* retrieve);
53
54
55 G_END_DECLS
56
57 #endif /* _MODEST_RETRIEVE_COMBO_BOX */