email/imum/Utils/Data/ImumMailWizard.ra
branchRCL_3
changeset 27 7fdbb852d323
equal deleted inserted replaced
26:ebe688cedc25 27:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *     Internet Mail Account Wizard dialogs
       
    16 *
       
    17 *
       
    18 */
       
    19 
       
    20 //  INCLUDES
       
    21 #include "imum.loc"
       
    22 #include <AiwCommon.rh>
       
    23 
       
    24 // CONSTANTS
       
    25 
       
    26 //  RESOURCE DEFINITIONS
       
    27 
       
    28 STRUCT IMSWIZARDCONTROL
       
    29     {
       
    30     STRUCT control;
       
    31     }
       
    32 
       
    33 //----------------------------------------------------
       
    34 //
       
    35 //    r_imas_settings_wizard_dialog
       
    36 //
       
    37 //----------------------------------------------------
       
    38 //
       
    39 RESOURCE DIALOG r_imas_settings_wizard_dialog
       
    40     {
       
    41     flags =
       
    42         EEikDialogFlagWait | EEikDialogFlagNotifyEsc |
       
    43         EEikDialogFlagCbaButtons | EEikDialogFlagNoDrag |
       
    44         EEikDialogFlagNoTitleBar | EEikDialogFlagNoShadow |
       
    45         EEikDialogFlagNoBorder | EEikDialogFlagFillAppClientRect;
       
    46     buttons = r_imas_wizard_softkeys_start_cancel;
       
    47     items=
       
    48         {
       
    49         DLG_LINE
       
    50             {
       
    51             type=EIMSWizardRichTxtEditorContainer;
       
    52             id=EIMSWizardRichTxtEditorContainer;
       
    53             control=IMSWIZARDCONTROL
       
    54                 {
       
    55                 //type = EEikCtRichTextEditor;
       
    56                 //id = EImasCIDWizardStart;
       
    57                 control = RTXTED
       
    58                     {
       
    59                     numlines = 10;
       
    60                     avkon_flags = 0;
       
    61                            // EAknEditorFlagEnableScrollBars;
       
    62                     flags = EEikEdwinReadOnly |
       
    63                             EEikEdwinNoAutoSelection |
       
    64                             EEikEdwinAvkonDisableCursor;
       
    65                     };
       
    66                 };
       
    67             }
       
    68         };
       
    69     }
       
    70 
       
    71 //----------------------------------------------------
       
    72 //
       
    73 //    r_imas_dialog
       
    74 //
       
    75 //----------------------------------------------------
       
    76 //
       
    77 RESOURCE MENU_BAR r_imas_settings_wizard_menubar
       
    78     {
       
    79     titles=
       
    80         {
       
    81         MENU_TITLE
       
    82             {
       
    83             menu_pane = r_imas_settings_wizard_menupane;
       
    84             }
       
    85         };
       
    86     }
       
    87 
       
    88 //----------------------------------------------------
       
    89 //
       
    90 //    r_imas_dialog
       
    91 //
       
    92 //----------------------------------------------------
       
    93 //
       
    94 RESOURCE MENU_PANE r_imas_settings_wizard_menupane
       
    95     {
       
    96     items=
       
    97         {
       
    98         MENU_ITEM
       
    99             {
       
   100             command = EAknSoftkeyShow;
       
   101             txt = text_softkey_start;
       
   102             },
       
   103         MENU_ITEM
       
   104             {
       
   105             command = EAknCmdHelp;
       
   106             txt = qtn_options_help;
       
   107             },
       
   108         MENU_ITEM
       
   109             {
       
   110             command = EAknCmdExit;
       
   111             txt = qtn_mbxs_settings_mail_newbox_exitwiz;
       
   112             }
       
   113         };
       
   114     }
       
   115 
       
   116 // ---------------------------------------------------------
       
   117 //
       
   118 //  Text to be shown if wizard is cancelled
       
   119 //
       
   120 // ---------------------------------------------------------
       
   121 //
       
   122 RESOURCE DIALOG r_imas_cancel_wizard_query
       
   123     {
       
   124     flags = EGeneralQueryFlags;
       
   125     buttons = R_AVKON_SOFTKEYS_YES_NO__YES;
       
   126     items=
       
   127         {
       
   128         DLG_LINE
       
   129             {
       
   130             type = EAknCtQuery;
       
   131             id = EGeneralQuery;
       
   132             control= AVKON_CONFIRMATION_QUERY
       
   133                 {
       
   134                     layout = EConfirmationLayout;
       
   135                     label = qtn_mbxs_settings_new_box_exit_query;
       
   136                 };
       
   137             }
       
   138         };
       
   139     }
       
   140 
       
   141 //----------------------------------------------------
       
   142 //
       
   143 // r_imas_wizard
       
   144 //
       
   145 // 1. Protocol
       
   146 // 2. Email address
       
   147 // 3. Sending server
       
   148 // 4. Receiving server
       
   149 // 5. Access point query
       
   150 // 6. Access point
       
   151 // 7. Mailbox name
       
   152 //
       
   153 //----------------------------------------------------
       
   154 //
       
   155 RESOURCE MUIU_DYNAMIC_SETTINGS_ARRAY r_imas_wizard
       
   156     {
       
   157     items =
       
   158         {
       
   159         // 1. Protocol
       
   160         MUIU_DYNAMIC_SETTINGS_ITEM
       
   161             {
       
   162             itemtype = EMuiuDynSetRadioButtonArray;
       
   163             itemlabel = qtn_mce_settings_mail_protocol;
       
   164             itemid = EIMAWProtocol;
       
   165             itemarray = r_imas_settings_wizard_protocol;
       
   166             itemflags =
       
   167                 KMuiuDynItemForceMustFill |
       
   168                 KMuiuDynItemAcquireCustomPage;
       
   169             },
       
   170         // 2. Email address
       
   171         MUIU_DYNAMIC_SETTINGS_ITEM
       
   172             {
       
   173             itemtype = EMuiuDynSetItemEditText;
       
   174             itemlabel = qtn_mce_settings_mail_address;
       
   175             itemid = EIMAWEmailAddress;
       
   176             itemflags =
       
   177                 KMuiuDynItemMustFill | KMuiuDynItemNoInitialSelection |
       
   178                 KMuiuDynItemEditorCursorAtBeginning |
       
   179                 KMuiuDynItemAcquireCustomPage;
       
   180             itemmaxlength = KMuiuDynMaxSettingsTextLength;
       
   181             },
       
   182         // 3. Receiving server
       
   183         MUIU_DYNAMIC_SETTINGS_ITEM
       
   184             {
       
   185             itemtype = EMuiuDynSetItemEditText;
       
   186             itemlabel = qtn_mce_settings_mail_receiving;
       
   187             itemid = EIMAWReceivingServer;
       
   188             itemflags =
       
   189                 KMuiuDynItemMustFill | KMuiuDynItemNoInitialSelection |
       
   190                 KMuiuDynItemEditorCursorAtBeginning |
       
   191                 KMuiuDynItemAcquireCustomPage;
       
   192             itemmaxlength = KIMASMaxCommonTextLength;
       
   193             },
       
   194         // 4. Sending server
       
   195         MUIU_DYNAMIC_SETTINGS_ITEM
       
   196             {
       
   197             itemtype = EMuiuDynSetItemEditText;
       
   198             itemlabel = qtn_mce_settings_mail_sending_h;
       
   199             itemid = EIMAWSendingServer;
       
   200             itemflags =
       
   201                 KMuiuDynItemMustFill |
       
   202                 KMuiuDynItemAcquireCustomPage;
       
   203             itemmaxlength = KIMASMaxCommonTextLength;
       
   204             },
       
   205         // 5. Access point query
       
   206         MUIU_DYNAMIC_SETTINGS_ITEM
       
   207             {
       
   208             itemtype = EMuiuDynSetUndefined;
       
   209             itemlabel = qtn_mce_settings_mail_iap;
       
   210             itemid = EIMAWIap;
       
   211             itemarray = r_imas_settings_wizard_iap;
       
   212             itemflags = KMuiuDynItemAcquireCustomPage;
       
   213             },
       
   214         // 6. Mailbox name
       
   215         MUIU_DYNAMIC_SETTINGS_ITEM
       
   216             {
       
   217             itemtype = EMuiuDynSetItemEditText;
       
   218             itemlabel = qtn_mce_settings_mail_rm_name;
       
   219             itemid = EIMAWMailboxName;
       
   220             itemflags = KMuiuDynItemMustFill |
       
   221                 KMuiuDynItemAcquireCustomPage;
       
   222             itemmaxlength = KIMASMaxMailboxNameLength;
       
   223             }
       
   224         };
       
   225     }
       
   226 
       
   227 RESOURCE MUIU_DYNAMIC_SETTINGS_ARRAY r_imas_settings_wizard_protocol
       
   228     {
       
   229     items =
       
   230         {
       
   231         // 1. Imap4
       
   232         MUIU_DYNAMIC_SETTINGS_ITEM
       
   233             {
       
   234             itemtype = EMuiuDynSetItemRadioButton;
       
   235             itemlabel = qtn_mce_settings_mail_imap4;
       
   236             itemid = EIMAWRadioButtonImap4;
       
   237             },
       
   238         // 2. Pop3
       
   239         MUIU_DYNAMIC_SETTINGS_ITEM
       
   240             {
       
   241             itemtype = EMuiuDynSetItemRadioButton;
       
   242             itemlabel = qtn_mce_settings_mail_pop3;
       
   243             itemid = EIMAWRadioButtonPop3;
       
   244             }
       
   245         };
       
   246     }
       
   247 
       
   248 RESOURCE MUIU_DYNAMIC_SETTINGS_ARRAY r_imas_settings_wizard_iap
       
   249     {
       
   250     items =
       
   251         {
       
   252         // 1. Always ask
       
   253         MUIU_DYNAMIC_SETTINGS_ITEM
       
   254             {
       
   255             itemtype = EMuiuDynSetItemRadioButton;
       
   256             itemlabel = qtn_netw_sett_iap_pref_prompt;
       
   257             itemid = EIMAWRadioButtonIapAlwaysAsk;
       
   258             },
       
   259         // 1. Default connection
       
   260         MUIU_DYNAMIC_SETTINGS_ITEM
       
   261             {
       
   262             itemtype = EMuiuDynSetItemRadioButton;
       
   263             itemlabel = qtn_netw_conset_sett_default_connection;
       
   264             itemid = EIMAWRadioButtonIapDefaultConn;
       
   265             }            
       
   266         };
       
   267     }
       
   268 
       
   269 /******************************************************************************
       
   270 
       
   271     Setting pages
       
   272 
       
   273 ******************************************************************************/
       
   274 
       
   275 // ---------------------------------------------------------
       
   276 //
       
   277 //    r_imas_wizard_dialog_listbox_next_back
       
   278 //
       
   279 // ---------------------------------------------------------
       
   280 //
       
   281 RESOURCE AVKON_SETTING_PAGE r_imas_wizard_dialog_listbox_next_back
       
   282     {
       
   283     softkey_resource = r_imas_wizard_softkeys_next_back_rbeditor;
       
   284     menubar = R_AVKON_MENUPANE_EMPTY;
       
   285     type =  EAknSetListBox;
       
   286     editor_resource_id = r_imas_wizard_page_listbox;
       
   287     }
       
   288 
       
   289 // ---------------------------------------------------------
       
   290 //
       
   291 //    r_imas_wizard_dialog_edwin_next_back
       
   292 //
       
   293 // ---------------------------------------------------------
       
   294 //
       
   295 RESOURCE AVKON_SETTING_PAGE r_imas_wizard_dialog_edwin_next_back
       
   296     {
       
   297     softkey_resource = r_imas_wizard_softkeys_next_back_texteditor;
       
   298     menubar = R_AVKON_MENUPANE_EMPTY;
       
   299     type = EEikCtEdwin;
       
   300     editor_resource_id = r_imas_wizard_edwin_text_latin_only;
       
   301     }
       
   302 
       
   303 // ---------------------------------------------------------
       
   304 //
       
   305 //    r_imas_wizard_dialog_edwin_finish_back
       
   306 //
       
   307 // ---------------------------------------------------------
       
   308 //
       
   309 RESOURCE AVKON_SETTING_PAGE r_imas_wizard_dialog_edwin_finish_back
       
   310     {
       
   311     softkey_resource = r_imas_wizard_softkeys_finish_back;
       
   312     menubar = R_AVKON_MENUPANE_EMPTY;
       
   313     type =  EEikCtEdwin;
       
   314     editor_resource_id = r_imas_wizard_edwin_text;
       
   315     }
       
   316 
       
   317 // ---------------------------------------------------------
       
   318 //
       
   319 //    Setting page editors
       
   320 //
       
   321 //
       
   322 // ---------------------------------------------------------
       
   323 //
       
   324 RESOURCE EDWIN r_imas_wizard_edwin_text_latin_only
       
   325     {
       
   326     flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
       
   327     width = KMuiuDynMaxSettingsTextWidth;
       
   328     lines = 6;
       
   329     default_case = EAknEditorLowerCase;
       
   330     maxlength = KMuiuDynMaxSettingsTextLength;
       
   331     avkon_flags = EAknEditorFlagNoT9 | EAknEditorFlagLatinInputModesOnly;
       
   332     }
       
   333 
       
   334 RESOURCE EDWIN r_imas_wizard_edwin_text
       
   335     {
       
   336     flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
       
   337     width = KMuiuDynMaxSettingsTextWidth;
       
   338     lines = 6;
       
   339     default_case = EAknEditorLowerCase;
       
   340     maxlength = KMuiuDynMaxSettingsTextLength;
       
   341     }
       
   342 
       
   343 RESOURCE LISTBOX r_imas_wizard_page_listbox
       
   344     {
       
   345     flags = EEikListBoxMultipleSelection;
       
   346     }
       
   347 
       
   348 // SOFTKEYS
       
   349 RESOURCE CBA r_imas_wizard_softkeys_start_cancel
       
   350     {
       
   351     buttons =
       
   352         {
       
   353         CBA_BUTTON 
       
   354             { 
       
   355             id = EAknSoftkeyDone;
       
   356             txt = text_softkey_start; 
       
   357             },
       
   358         CBA_BUTTON 
       
   359             { 
       
   360             id = EAknSoftkeyBack; 
       
   361             txt = text_softkey_cancel; 
       
   362             },
       
   363         CBA_BUTTON 
       
   364             { 
       
   365             id = EAknSoftkeyDone; 
       
   366             txt = gen_selection_key; 
       
   367             }      
       
   368         };
       
   369     }
       
   370 
       
   371 RESOURCE CBA r_imas_wizard_softkeys_next_back_rbeditor
       
   372     {
       
   373     buttons =
       
   374         {
       
   375         CBA_BUTTON 
       
   376             { 
       
   377             id = EAknSoftkeyDone;
       
   378             txt = text_softkey_next; 
       
   379             },
       
   380         CBA_BUTTON 
       
   381             { 
       
   382             id = EAknSoftkeyBack; 
       
   383             txt = text_softkey_back; 
       
   384             },
       
   385         CBA_BUTTON 
       
   386             { 
       
   387             id = EAknSoftkeyOk; 
       
   388             txt = qtn_msk_select; 
       
   389             }      
       
   390         };
       
   391     }
       
   392     
       
   393 RESOURCE CBA r_imas_wizard_softkeys_next_back_texteditor
       
   394     {
       
   395     buttons =
       
   396         {
       
   397         CBA_BUTTON 
       
   398             { 
       
   399             id = EAknSoftkeyDone;
       
   400             txt = text_softkey_next; 
       
   401             },
       
   402         CBA_BUTTON 
       
   403             { 
       
   404             id = EAknSoftkeyBack; 
       
   405             txt = text_softkey_back; 
       
   406             },
       
   407         CBA_BUTTON 
       
   408             { 
       
   409             id = EAknSoftkeyDone; 
       
   410             txt = gen_selection_key; 
       
   411             }      
       
   412         };
       
   413     }
       
   414 
       
   415 RESOURCE CBA r_imas_wizard_softkeys_finish_back
       
   416     {
       
   417     buttons =
       
   418         {
       
   419         CBA_BUTTON 
       
   420             { 
       
   421             id = EAknSoftkeyDone;
       
   422             txt = text_softkey_finished; 
       
   423             },
       
   424         CBA_BUTTON 
       
   425             { 
       
   426             id = EAknSoftkeyBack; 
       
   427             txt = text_softkey_back; 
       
   428             },
       
   429         CBA_BUTTON 
       
   430             { 
       
   431             id = EAknSoftkeyDone; 
       
   432             txt = gen_selection_key;
       
   433             }      
       
   434         };
       
   435     }
       
   436 
       
   437 // ---------------------------------------------------------------------------
       
   438 // r_aiw_email_criteria
       
   439 // criteria for searching right external email-plugin through AIW
       
   440 // ---------------------------------------------------------------------------
       
   441 //
       
   442 RESOURCE AIW_INTEREST r_aiw_email_criteria
       
   443     {
       
   444     items =
       
   445         {
       
   446         AIW_CRITERIA_ITEM 
       
   447             {
       
   448             id = KAiwCmdSettingWizardEmailView;
       
   449             serviceCmd = KAiwCmdSettingWizardEmailView;
       
   450             contentType = "*";
       
   451             serviceClass = KAiwClassMenu;
       
   452             }
       
   453         };
       
   454     }
       
   455 
       
   456 // End of File
       
   457