2007-04-03 Murray Cumming <murrayc@murrayc.com>
[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         /* These widgets are only for use by derived widgets: */
46         /* Pages that are common to all account wizards: */
47         GtkWidget *page_welcome;
48         
49         GtkWidget *page_account_details;
50         GtkWidget *combo_account_country;
51         GtkWidget *combo_account_serviceprovider;
52         GtkWidget *entry_account_title;
53         
54         GtkWidget *page_user_details;
55         GtkWidget *entry_user_name;
56         GtkWidget *entry_user_username;
57         GtkWidget *entry_user_password;
58         GtkWidget *entry_user_email;
59         
60         GtkWidget *page_complete_easysetup;
61         
62         GtkWidget *page_custom_incoming;
63         GtkWidget *combo_incoming_servertype;
64         GtkWidget *caption_incoming;
65         GtkWidget *entry_incomingserver;
66         GtkWidget *combo_incoming_security;
67         GtkWidget *checkbox_incoming_auth;
68
69         GtkWidget *page_custom_outgoing;
70         GtkWidget *entry_outgoingserver;
71         GtkWidget *combo_outgoing_security;
72         GtkWidget *combo_outgoing_auth;
73         GtkWidget *checkbox_outgoing_smtp_specific;
74         GtkWidget *button_outgoing_smtp_servers;
75         
76         GtkWidget *page_complete_customsetup;
77         GtkWidget *button_edit;
78         
79 } ModestEasysetupWizardDialog;
80
81 typedef struct {
82         ModestWizardDialogClass parent_class;
83         
84 } ModestEasysetupWizardDialogClass;
85
86 GType modest_easysetup_wizard_dialog_get_type (void);
87
88 ModestEasysetupWizardDialog* modest_easysetup_wizard_dialog_new (void);
89
90 G_END_DECLS
91
92 #endif /* _MODEST_EAYSETUP_WIZARD_DIALOG */