fb08ec7380ae8d1934691721291c71fd83241f0d
[modest] / src / maemo / easysetup / modest-easysetup-serversecurity-combo-box.h
1 /* Copyright (c) 2007, Nokia Corporation
2  * All rights reserved.
3  *
4  */
5
6 #ifndef _EASYSETUP_SERVERSECURITY_COMBO_BOX
7 #define _EASYSETUP_SERVERSECURITY_COMBO_BOX
8
9 #include <gtk/gtkcombobox.h>
10 #include "modest-account-mgr/modest-protocol-info.h"
11
12 G_BEGIN_DECLS
13
14 #define EASYSETUP_TYPE_SERVERSECURITY_COMBO_BOX easysetup_serversecurity_combo_box_get_type()
15
16 #define EASYSETUP_SERVERSECURITY_COMBO_BOX(obj) \
17         (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
18         EASYSETUP_TYPE_SERVERSECURITY_COMBO_BOX, EasysetupServersecurityComboBox))
19
20 #define EASYSETUP_SERVERSECURITY_COMBO_BOX_CLASS(klass) \
21         (G_TYPE_CHECK_CLASS_CAST ((klass), \
22         EASYSETUP_TYPE_SERVERSECURITY_COMBO_BOX, EasysetupServersecurityComboBoxClass))
23
24 #define EASYSETUP_IS_SERVERSECURITY_COMBO_BOX(obj) \
25         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
26         EASYSETUP_TYPE_SERVERSECURITY_COMBO_BOX))
27
28 #define EASYSETUP_IS_SERVERSECURITY_COMBO_BOX_CLASS(klass) \
29         (G_TYPE_CHECK_CLASS_TYPE ((klass), \
30         EASYSETUP_TYPE_SERVERSECURITY_COMBO_BOX))
31
32 #define EASYSETUP_SERVERSECURITY_COMBO_BOX_GET_CLASS(obj) \
33         (G_TYPE_INSTANCE_GET_CLASS ((obj), \
34         EASYSETUP_TYPE_SERVERSECURITY_COMBO_BOX, EasysetupServersecurityComboBoxClass))
35
36 typedef struct {
37         GtkComboBox parent;
38 } EasysetupServersecurityComboBox;
39
40 typedef struct {
41         GtkComboBoxClass parent_class;
42 } EasysetupServersecurityComboBoxClass;
43
44 GType easysetup_serversecurity_combo_box_get_type (void);
45
46 EasysetupServersecurityComboBox* easysetup_serversecurity_combo_box_new (void);
47
48 void easysetup_serversecurity_combo_box_fill (EasysetupServersecurityComboBox *combobox, ModestProtocol protocol);
49
50 ModestProtocol easysetup_serversecurity_combo_box_get_active_serversecurity (EasysetupServersecurityComboBox *combobox);
51
52 gboolean easysetup_serversecurity_combo_box_set_active_serversecurity (EasysetupServersecurityComboBox *combobox, ModestProtocol serversecurity);
53
54
55 G_END_DECLS
56
57 #endif /* _EASYSETUP_PROVIDER_COMBO_BOX */