d415fffb07fe187b38957811a0f940c508d2ea59
[modest] / src / maemo / easysetup / modest-easysetup-wizard.h
1 /* Copyright (c) 2007, Nokia Corporation
2  * All rights reserved.
3  *
4  */
5
6 #ifndef _MODEST_EAYSETUP_WIZARD_DIALOG
7 #define _MODEST_EAYSETUP_WIZARD_DIALOG
8
9 /* #include <hildon-widgets/hildon-wizard-dialog.h> */
10 #include "modest-wizard-dialog.h" /* We use a copied-and-improved HildonWizardDialog. */
11 #include "modest-account-mgr.h"
12 #include <hildon-widgets/hildon-caption.h>
13
14 G_BEGIN_DECLS
15
16 #define MODEST_TYPE_EASYSETUP_WIZARD_DIALOG modest_easysetup_wizard_dialog_get_type()
17
18 #define MODEST_EASYSETUP_WIZARD_DIALOG(obj) \
19         (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
20         MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialog))
21
22 #define MODEST_EASYSETUP_WIZARD_DIALOG_CLASS(klass) \
23         (G_TYPE_CHECK_CLASS_CAST ((klass), \
24         MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass))
25
26 #define ACCOUNT_IS_WIZARD_DIALOG(obj) \
27         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
28         MODEST_TYPE_EASYSETUP_WIZARD_DIALOG))
29
30 #define MODEST_EASYSETUP_IS_WIZARD_DIALOG_CLASS(klass) \
31         (G_TYPE_CHECK_CLASS_TYPE ((klass), \
32         MODEST_TYPE_EASYSETUP_WIZARD_DIALOG))
33
34 #define MODEST_EASYSETUP_WIZARD_DIALOG_GET_CLASS(obj) \
35         (G_TYPE_INSTANCE_GET_CLASS ((obj), \
36         MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass))
37
38 typedef struct {
39         ModestWizardDialog parent;
40         
41         /* Used by derived widgets to query existing accounts,
42          * and to create new accounts: */
43         ModestAccountMgr *account_manager;
44                 
45         /* notebook pages: */
46         GtkWidget *page_welcome;
47         
48         GtkWidget *page_account_details;
49         GtkWidget *combo_account_country;
50         GtkWidget *combo_account_serviceprovider;
51         GtkWidget *entry_account_title;
52         
53         GtkWidget *page_user_details;
54         GtkWidget *entry_user_name;
55         GtkWidget *entry_user_username;
56         GtkWidget *entry_user_password;
57         GtkWidget *entry_user_email;
58         
59         GtkWidget *page_complete_easysetup;
60         
61         GtkWidget *page_custom_incoming;
62         GtkWidget *combo_incoming_servertype;
63         GtkWidget *caption_incoming;
64         GtkWidget *entry_incomingserver;
65         GtkWidget *combo_incoming_security;
66         GtkWidget *checkbox_incoming_auth;
67
68         GtkWidget *page_custom_outgoing;
69         GtkWidget *entry_outgoingserver;
70         GtkWidget *combo_outgoing_security;
71         GtkWidget *combo_outgoing_auth;
72         GtkWidget *checkbox_outgoing_smtp_specific;
73         GtkWidget *button_outgoing_smtp_servers;
74         
75         GtkWidget *page_complete_customsetup;
76         GtkWidget *button_edit;
77         
78 } ModestEasysetupWizardDialog;
79
80 typedef struct {
81         ModestWizardDialogClass parent_class;
82         
83 } ModestEasysetupWizardDialogClass;
84
85 GType modest_easysetup_wizard_dialog_get_type (void);
86
87 ModestEasysetupWizardDialog* modest_easysetup_wizard_dialog_new (void);
88
89 G_END_DECLS
90
91 #endif /* _MODEST_EAYSETUP_WIZARD_DIALOG */