X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmaemo%2Feasysetup%2Fmodest-easysetup-wizard.h;fp=src%2Fmaemo%2Feasysetup%2Fmodest-easysetup-wizard.h;h=895887364d814fc58350301b05c597e098fc61a7;hb=75d57ee139fed063e6fd7b0957963c1015267bc1;hp=0000000000000000000000000000000000000000;hpb=195217886a8d79743a5b1a2844992a8e6d833d26;p=modest diff --git a/src/maemo/easysetup/modest-easysetup-wizard.h b/src/maemo/easysetup/modest-easysetup-wizard.h new file mode 100644 index 0000000..8958873 --- /dev/null +++ b/src/maemo/easysetup/modest-easysetup-wizard.h @@ -0,0 +1,92 @@ +/* Copyright (c) 2007, Nokia Corporation + * All rights reserved. + * + */ + +#ifndef _MODEST_EAYSETUP_WIZARD_DIALOG +#define _MODEST_EAYSETUP_WIZARD_DIALOG + +/* #include */ +#include "modest-wizard-dialog.h" /* We use a copied-and-improved HildonWizardDialog. */ +#include "modest-account-mgr/modest-account-mgr.h" +#include + +G_BEGIN_DECLS + +#define MODEST_TYPE_EASYSETUP_WIZARD_DIALOG modest_easysetup_wizard_dialog_get_type() + +#define MODEST_EASYSETUP_WIZARD_DIALOG(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), \ + MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialog)) + +#define MODEST_EASYSETUP_WIZARD_DIALOG_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST ((klass), \ + MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass)) + +#define ACCOUNT_IS_WIZARD_DIALOG(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \ + MODEST_TYPE_EASYSETUP_WIZARD_DIALOG)) + +#define MODEST_EASYSETUP_IS_WIZARD_DIALOG_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE ((klass), \ + MODEST_TYPE_EASYSETUP_WIZARD_DIALOG)) + +#define MODEST_EASYSETUP_WIZARD_DIALOG_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + MODEST_TYPE_EASYSETUP_WIZARD_DIALOG, ModestEasysetupWizardDialogClass)) + +typedef struct { + ModestWizardDialog parent; + + /* Used by derived widgets to query existing accounts, + * and to create new accounts: */ + ModestAccountMgr *account_manager; + + /* These widgets are only for use by derived widgets: */ + /* Pages that are common to all account wizards: */ + GtkWidget *page_welcome; + + GtkWidget *page_account_details; + GtkWidget *combo_account_country; + GtkWidget *combo_account_serviceprovider; + GtkWidget *entry_account_title; + + GtkWidget *page_user_details; + GtkWidget *entry_user_name; + GtkWidget *entry_user_username; + GtkWidget *entry_user_password; + GtkWidget *entry_user_email; + + GtkWidget *page_complete_easysetup; + + GtkWidget *page_custom_incoming; + GtkWidget *combo_incoming_servertype; + GtkWidget *caption_incoming; + GtkWidget *entry_incomingserver; + GtkWidget *combo_incoming_security; + GtkWidget *checkbox_incoming_auth; + + GtkWidget *page_custom_outgoing; + GtkWidget *entry_outgoingserver; + GtkWidget *combo_outgoing_security; + GtkWidget *combo_outgoing_auth; + GtkWidget *checkbox_outgoing_smtp_specific; + GtkWidget *button_outgoing_smtp_servers; + + GtkWidget *page_complete_customsetup; + GtkWidget *button_edit; + +} ModestEasysetupWizardDialog; + +typedef struct { + ModestWizardDialogClass parent_class; + +} ModestEasysetupWizardDialogClass; + +GType modest_easysetup_wizard_dialog_get_type (void); + +ModestEasysetupWizardDialog* modest_easysetup_wizard_dialog_new (void); + +G_END_DECLS + +#endif /* _MODEST_EAYSETUP_WIZARD_DIALOG */