https://projects.maemo.org
[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         /* Whether we saved the account before we were finished, 
46          * to allow editing via the Advanced Settings dialog.
47          * We might need to delete the account if Finish is never clicked. */
48         gchar* saved_account_name;
49                 
50         /* notebook pages: */
51         GtkWidget *page_welcome;
52         
53         GtkWidget *page_account_details;
54         GtkWidget *combo_account_country;
55         GtkWidget *combo_account_serviceprovider;
56         GtkWidget *entry_account_title;
57         
58         GtkWidget *page_user_details;
59         GtkWidget *entry_user_name;
60         GtkWidget *entry_user_username;
61         GtkWidget *entry_user_password;
62         GtkWidget *entry_user_email;
63         
64         GtkWidget *page_complete_easysetup;
65         
66         GtkWidget *page_custom_incoming;
67         GtkWidget *combo_incoming_servertype;
68         GtkWidget *caption_incoming;
69         GtkWidget *entry_incomingserver;
70         GtkWidget *combo_incoming_security;
71         GtkWidget *checkbox_incoming_auth;
72
73         GtkWidget *page_custom_outgoing;
74         GtkWidget *entry_outgoingserver;
75         GtkWidget *combo_outgoing_security;
76         GtkWidget *combo_outgoing_auth;
77         GtkWidget *checkbox_outgoing_smtp_specific;
78         GtkWidget *button_outgoing_smtp_servers;
79         
80         GtkWidget *page_complete_customsetup;
81         GtkWidget *button_edit;
82         
83         GtkWidget *specific_window;
84         
85 } ModestEasysetupWizardDialog;
86
87 typedef struct {
88         ModestWizardDialogClass parent_class;
89         
90 } ModestEasysetupWizardDialogClass;
91
92 GType modest_easysetup_wizard_dialog_get_type (void);
93
94 ModestEasysetupWizardDialog* modest_easysetup_wizard_dialog_new (void);
95
96 G_END_DECLS
97
98 #endif /* _MODEST_EAYSETUP_WIZARD_DIALOG */