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