* let the dbus-invoked msgs use the same uids as other messages,
[modest] / src / widgets / modest-secureauth-combo-box.h
1 /* Copyright (c) 2007, Nokia Corporation
2  * All rights reserved.
3  *
4  */
5
6 #ifndef _MODEST_SECUREAUTH_COMBO_BOX
7 #define _MODEST_SECUREAUTH_COMBO_BOX
8
9 #include <gtk/gtkcombobox.h>
10 #include "modest-protocol-info.h"
11
12 G_BEGIN_DECLS
13
14 #define MODEST_TYPE_SECUREAUTH_COMBO_BOX modest_secureauth_combo_box_get_type()
15
16 #define MODEST_SECUREAUTH_COMBO_BOX(obj) \
17         (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
18         MODEST_TYPE_SECUREAUTH_COMBO_BOX, ModestSecureauthComboBox))
19
20 #define MODEST_SECUREAUTH_COMBO_BOX_CLASS(klass) \
21         (G_TYPE_CHECK_CLASS_CAST ((klass), \
22         MODEST_TYPE_SECUREAUTH_COMBO_BOX, ModestSecureauthComboBoxClass))
23
24 #define EASYSETUP_IS_SECUREAUTH_COMBO_BOX(obj) \
25         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
26         MODEST_TYPE_SECUREAUTH_COMBO_BOX))
27
28 #define EASYSETUP_IS_SECUREAUTH_COMBO_BOX_CLASS(klass) \
29         (G_TYPE_CHECK_CLASS_TYPE ((klass), \
30         MODEST_TYPE_SECUREAUTH_COMBO_BOX))
31
32 #define MODEST_SECUREAUTH_COMBO_BOX_GET_CLASS(obj) \
33         (G_TYPE_INSTANCE_GET_CLASS ((obj), \
34         MODEST_TYPE_SECUREAUTH_COMBO_BOX, ModestSecureauthComboBoxClass))
35
36 typedef struct {
37         GtkComboBox parent;
38 } ModestSecureauthComboBox;
39
40 typedef struct {
41         GtkComboBoxClass parent_class;
42 } ModestSecureauthComboBoxClass;
43
44 GType modest_secureauth_combo_box_get_type (void);
45
46 ModestSecureauthComboBox* modest_secureauth_combo_box_new (void);
47
48 ModestAuthProtocol modest_secureauth_combo_box_get_active_secureauth (ModestSecureauthComboBox *combobox);
49
50 gboolean modest_secureauth_combo_box_set_active_secureauth (ModestSecureauthComboBox *combobox,
51                                                             ModestAuthProtocol secureauth);
52
53
54 G_END_DECLS
55
56 #endif /* _EASYSETUP_PROVIDER_COMBO_BOX */