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"
13 #ifdef MODEST_HILDON_VERSION_0
14 #include <hildon-widgets/hildon-caption.h>
16 #include <hildon/hildon-caption.h>
17 #endif /*MODEST_HILDON_VERSION_0*/
21 #define MODEST_TYPE_EASYSETUP_WIZARD_DIALOG modest_easysetup_wizard_dialog_get_type()
23 #define MODEST_EASYSETUP_WIZARD_DIALOG(obj) \
24 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
25 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialog))
27 #define MODEST_EASYSETUP_WIZARD_DIALOG_CLASS(klass) \
28 (G_TYPE_CHECK_CLASS_CAST ((klass), \
29 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass))
31 #define ACCOUNT_IS_WIZARD_DIALOG(obj) \
32 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
33 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG))
35 #define MODEST_EASYSETUP_IS_WIZARD_DIALOG_CLASS(klass) \
36 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
37 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG))
39 #define MODEST_EASYSETUP_WIZARD_DIALOG_GET_CLASS(obj) \
40 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
41 MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass))
44 ModestWizardDialog parent;
46 /* Used by derived widgets to query existing accounts,
47 * and to create new accounts: */
48 ModestAccountMgr *account_manager;
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;
56 GtkWidget *page_welcome;
58 GtkWidget *page_account_details;
59 GtkWidget *combo_account_country;
60 GtkWidget *combo_account_serviceprovider;
61 GtkWidget *entry_account_title;
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;
69 GtkWidget *page_complete_easysetup;
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;
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;
85 GtkWidget *page_complete_customsetup;
86 GtkWidget *button_edit;
88 GtkWidget *specific_window;
90 } ModestEasysetupWizardDialog;
93 ModestWizardDialogClass parent_class;
95 } ModestEasysetupWizardDialogClass;
97 GType modest_easysetup_wizard_dialog_get_type (void);
99 ModestEasysetupWizardDialog* modest_easysetup_wizard_dialog_new (void);
103 #endif /* _MODEST_EAYSETUP_WIZARD_DIALOG */