* fixes for latest hildon version
[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
13 #ifdef MODEST_HILDON_VERSION_0
14 #include <hildon-widgets/hildon-caption.h>
15 #else
16 #include <hildon/hildon-caption.h>
17 #endif /*MODEST_HILDON_VERSION_0*/
18
19 G_BEGIN_DECLS
20
21 #define MODEST_TYPE_EASYSETUP_WIZARD_DIALOG modest_easysetup_wizard_dialog_get_type()
22
23 #define MODEST_EASYSETUP_WIZARD_DIALOG(obj) \
24         (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
25         MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialog))
26
27 #define MODEST_EASYSETUP_WIZARD_DIALOG_CLASS(klass) \
28         (G_TYPE_CHECK_CLASS_CAST ((klass), \
29         MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass))
30
31 #define ACCOUNT_IS_WIZARD_DIALOG(obj) \
32         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
33         MODEST_TYPE_EASYSETUP_WIZARD_DIALOG))
34
35 #define MODEST_EASYSETUP_IS_WIZARD_DIALOG_CLASS(klass) \
36         (G_TYPE_CHECK_CLASS_TYPE ((klass), \
37         MODEST_TYPE_EASYSETUP_WIZARD_DIALOG))
38
39 #define MODEST_EASYSETUP_WIZARD_DIALOG_GET_CLASS(obj) \
40         (G_TYPE_INSTANCE_GET_CLASS ((obj), \
41         MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass))
42
43 typedef struct {
44         ModestWizardDialog parent;
45         
46         /* Used by derived widgets to query existing accounts,
47          * and to create new accounts: */
48         ModestAccountMgr *account_manager;
49         
50         /* Whether we saved the account before we were finished, 
51          * to allow editing via the Advanced Settings dialog.
52          * We might need to delete the account if Finish is never clicked. */
53         gchar* saved_account_name;
54                 
55         /* notebook pages: */
56         GtkWidget *page_welcome;
57         
58         GtkWidget *page_account_details;
59         GtkWidget *combo_account_country;
60         GtkWidget *combo_account_serviceprovider;
61         GtkWidget *entry_account_title;
62         
63         GtkWidget *page_user_details;
64         GtkWidget *entry_user_name;
65         GtkWidget *entry_user_username;
66         GtkWidget *entry_user_password;
67         GtkWidget *entry_user_email;
68         
69         GtkWidget *page_complete_easysetup;
70         
71         GtkWidget *page_custom_incoming;
72         GtkWidget *combo_incoming_servertype;
73         GtkWidget *caption_incoming;
74         GtkWidget *entry_incomingserver;
75         GtkWidget *combo_incoming_security;
76         GtkWidget *checkbox_incoming_auth;
77
78         GtkWidget *page_custom_outgoing;
79         GtkWidget *entry_outgoingserver;
80         GtkWidget *combo_outgoing_security;
81         GtkWidget *combo_outgoing_auth;
82         GtkWidget *checkbox_outgoing_smtp_specific;
83         GtkWidget *button_outgoing_smtp_servers;
84         
85         GtkWidget *page_complete_customsetup;
86         GtkWidget *button_edit;
87         
88         GtkWidget *specific_window;
89         
90 } ModestEasysetupWizardDialog;
91
92 typedef struct {
93         ModestWizardDialogClass parent_class;
94         
95 } ModestEasysetupWizardDialogClass;
96
97 GType modest_easysetup_wizard_dialog_get_type (void);
98
99 ModestEasysetupWizardDialog* modest_easysetup_wizard_dialog_new (void);
100
101 G_END_DECLS
102
103 #endif /* _MODEST_EAYSETUP_WIZARD_DIALOG */