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"
12 #include <hildon-widgets/hildon-caption.h>
16 #define MODEST_TYPE_EASYSETUP_WIZARD_DIALOG modest_easysetup_wizard_dialog_get_type()
18 #define MODEST_EASYSETUP_WIZARD_DIALOG(obj) \
19 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
20 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialog))
22 #define MODEST_EASYSETUP_WIZARD_DIALOG_CLASS(klass) \
23 (G_TYPE_CHECK_CLASS_CAST ((klass), \
24 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass))
26 #define ACCOUNT_IS_WIZARD_DIALOG(obj) \
27 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
28 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG))
30 #define MODEST_EASYSETUP_IS_WIZARD_DIALOG_CLASS(klass) \
31 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
32 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG))
34 #define MODEST_EASYSETUP_WIZARD_DIALOG_GET_CLASS(obj) \
35 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
36 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass))
39 ModestWizardDialog parent;
41 /* Used by derived widgets to query existing accounts,
42 * and to create new accounts: */
43 ModestAccountMgr *account_manager;
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;
51 GtkWidget *page_welcome;
53 GtkWidget *page_account_details;
54 GtkWidget *combo_account_country;
55 GtkWidget *combo_account_serviceprovider;
56 GtkWidget *entry_account_title;
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;
64 GtkWidget *page_complete_easysetup;
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;
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;
80 GtkWidget *page_complete_customsetup;
81 GtkWidget *button_edit;
83 GtkWidget *specific_window;
85 } ModestEasysetupWizardDialog;
88 ModestWizardDialogClass parent_class;
90 } ModestEasysetupWizardDialogClass;
92 GType modest_easysetup_wizard_dialog_get_type (void);
94 ModestEasysetupWizardDialog* modest_easysetup_wizard_dialog_new (void);
98 #endif /* _MODEST_EAYSETUP_WIZARD_DIALOG */