1 /* Copyright (c) 2007, Nokia Corporation
6 #ifndef _MODEST_EAYSETUP_WIZARD_DIALOG
7 #define _MODEST_EAYSETUP_WIZARD_DIALOG
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"
18 #ifdef MODEST_HILDON_VERSION_0
19 #include <hildon-widgets/hildon-caption.h>
21 #include <hildon/hildon-caption.h>
22 #endif /*MODEST_HILDON_VERSION_0*/
26 #define MODEST_TYPE_EASYSETUP_WIZARD_DIALOG modest_easysetup_wizard_dialog_get_type()
28 #define MODEST_EASYSETUP_WIZARD_DIALOG(obj) \
29 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
30 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialog))
32 #define MODEST_EASYSETUP_WIZARD_DIALOG_CLASS(klass) \
33 (G_TYPE_CHECK_CLASS_CAST ((klass), \
34 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass))
36 #define ACCOUNT_IS_WIZARD_DIALOG(obj) \
37 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
38 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG))
40 #define MODEST_EASYSETUP_IS_WIZARD_DIALOG_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
42 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG))
44 #define MODEST_EASYSETUP_WIZARD_DIALOG_GET_CLASS(obj) \
45 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
46 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass))
49 ModestWizardDialog parent;
51 /* Used by derived widgets to query existing accounts,
52 * and to create new accounts: */
53 ModestAccountMgr *account_manager;
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;
61 GtkWidget *page_welcome;
63 GtkWidget *page_account_details;
64 GtkWidget *combo_account_country;
65 GtkWidget *combo_account_serviceprovider;
66 GtkWidget *entry_account_title;
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;
74 GtkWidget *page_complete_easysetup;
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;
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;
90 GtkWidget *page_complete_customsetup;
91 GtkWidget *button_edit;
93 GtkWidget *specific_window;
95 } ModestEasysetupWizardDialog;
98 ModestWizardDialogClass parent_class;
100 } ModestEasysetupWizardDialogClass;
102 GType modest_easysetup_wizard_dialog_get_type (void);
104 ModestEasysetupWizardDialog* modest_easysetup_wizard_dialog_new (void);
108 #endif /* _MODEST_EAYSETUP_WIZARD_DIALOG */