pkiutilities/CertSaver/data/CertSaver.rss
changeset 0 164170e6151a
child 21 09b1ac925e3f
equal deleted inserted replaced
-1:000000000000 0:164170e6151a
       
     1 /*
       
     2 * Copyright (c) 2003-2007 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:   Resource definitions for CertSaver
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 //  RESOURCE IDENTIFIER
       
    21 NAME    CESA // 4 letter ID
       
    22 
       
    23 //  INCLUDES
       
    24 #include <eikon.rh>
       
    25 #include <eikon.rsg>
       
    26 #include <avkon.rsg>
       
    27 #include <avkon.hrh>
       
    28 #include <avkon.rh>
       
    29 #include <avkon.mbg>
       
    30 #include <avkon.loc>
       
    31 #include <appinfo.rh>
       
    32 #include <certmanui.loc>  //qtn_cm_not_valid_yet
       
    33 #include <certsaver.loc>
       
    34 #include "certsaver.hrh"
       
    35 
       
    36 //  CONSTANTS
       
    37 
       
    38 //  MACROS
       
    39 
       
    40 //  RESOURCE DEFINITIONS
       
    41 
       
    42 RESOURCE RSS_SIGNATURE { }
       
    43 
       
    44 RESOURCE TBUF { buf="CertSaver"; }
       
    45 
       
    46 RESOURCE EIK_APP_INFO
       
    47     {
       
    48     }
       
    49 
       
    50 RESOURCE LOCALISABLE_APP_INFO r_certsaver_localisable_app_info
       
    51     {
       
    52     short_caption = qtn_certsaver_app_title;
       
    53     caption_and_icon =
       
    54     CAPTION_AND_ICON_INFO
       
    55         {
       
    56         caption = qtn_certsaver_app_title;
       
    57         number_of_icons = 0;
       
    58         };
       
    59     }
       
    60 
       
    61 
       
    62 
       
    63 //----------------------------------------------------
       
    64 //
       
    65 //    Resource buffers.
       
    66 //
       
    67 //----------------------------------------------------
       
    68 //
       
    69 RESOURCE TBUF r_certsaver_memory { buf=qtn_memlo_not_enough_memory; }
       
    70 RESOURCE TBUF r_certsaver_cert_discarded { buf=qtn_wmlsec_certificate_discarded; }
       
    71 RESOURCE TBUF r_certsaver_details_heading { buf=qtn_wmlsec_query_downl_cert; }
       
    72 RESOURCE TBUF r_certsaver_text_label { buf=qtn_wmlsec_cert_subject; }
       
    73 RESOURCE TBUF r_certsaver_text_issuer { buf=qtn_wmlsec_scert_issuer; }
       
    74 RESOURCE TBUF r_certsaver_text_fingerprint { buf=qtn_cm_fingerprint "\n%U"; }
       
    75 RESOURCE TBUF r_certsaver_text_fingerprint_md5 { buf=qtn_cm_fingerprint_md "\n%U"; }
       
    76 RESOURCE TBUF r_certsaver_text_validity { buf=qtn_wmlsec_cert_validity; }
       
    77 RESOURCE TBUF r_certsaver_error_saveok { buf=qtn_wmlsec_certificate_saved; }
       
    78 RESOURCE TBUF r_certsaver_error_unsupported_cert { buf=qtn_wmlsec_cert_unsupported; }
       
    79 RESOURCE TBUF r_certsaver_error_already_exists { buf=qtn_wmlsec_cert_duplicate; }
       
    80 RESOURCE TBUF r_certsaver_error_label_already_exists { buf = qtn_cm_label_already_exist; }
       
    81 RESOURCE TBUF r_certsaver_error_cert_corrupted { buf=qtn_wmlsec_cert_corrupted; }
       
    82 RESOURCE TBUF r_certsaver_error_cert_not_valid { buf=qtn_wmlsec_dload_expired_cert;}
       
    83 RESOURCE TBUF r_certsaver_error_cert_not_valid_yet { buf = qtn_cm_not_valid_yet; }
       
    84 RESOURCE TBUF r_certsaver_error_cacerts_db_corrupted { buf = qtn_memlo_database_corrupted; }
       
    85 RESOURCE TBUF r_certsaver_enter_label { buf = qtn_certsaver_enter_label; }
       
    86 RESOURCE TBUF r_certsaver_select_trusted_apps { buf = qtn_cm_select_trusted_apps; }
       
    87 RESOURCE TBUF r_certsaver_item_mail_image_conn { buf = qtn_cm_list_mail_image_conn; }
       
    88 RESOURCE TBUF r_certsaver_item_ocsp { buf = qtn_cm_list_ocsp; }
       
    89 RESOURCE TBUF r_certsaver_item_vpn { buf = qtn_cm_list_vpn; }
       
    90 
       
    91 RESOURCE TBUF r_certsaver_header_pkcs12_file_contains { buf = qtn_cm_header_pkcs12_file_contains; }
       
    92 RESOURCE TBUF r_certsaver_private_keys { buf = qtn_cm_private_keys; }
       
    93 RESOURCE TBUF r_certsaver_personal_certificates { buf = qtn_cm_personal_certificates; }
       
    94 RESOURCE TBUF r_certsaver_authority_certificates { buf = qtn_cm_authority_certificates; }
       
    95 RESOURCE TBUF r_certsaver_pkcs12_discarded { buf = qtn_cm_pkcs12_discarded; }
       
    96 
       
    97 RESOURCE TBUF r_certsaver_private_key_corrupted { buf = qtn_cm_private_key_corrupted; }
       
    98 RESOURCE TBUF r_certsaver_key_type_not_supported { buf = qtn_cm_key_type_not_supported; }
       
    99 RESOURCE TBUF r_certsaver_keystore_corrupted { buf = qtn_cm_keystore_corrupted; }
       
   100 RESOURCE TBUF r_certsaver_pkcs12_file_corrupted { buf = qtn_cm_pkcs12_file_corrupted; }
       
   101 RESOURCE TBUF r_certsaver_header_saved { buf = qtn_cm_header_saved; }
       
   102 RESOURCE TBUF r_qtn_cm_title_p12_password { buf = qtn_cm_title_p12_password; }
       
   103 RESOURCE TBUF r_qtn_cm_incorrect_password { buf = qtn_cm_incorrect_password; }
       
   104 RESOURCE TBUF r_qtn_cm_pkcs12_saving_failed { buf = qtn_cm_pkcs12_saving_failed; }
       
   105 RESOURCE TBUF r_certsaver_qtn_cm_valid_from { buf=qtn_cm_valid_from; }
       
   106 RESOURCE TBUF r_certsaver_qtn_cm_valid_until { buf=qtn_cm_valid_until; }
       
   107 RESOURCE TBUF r_certsaver_qtn_cm_pkcs12_expired { buf=qtn_cm_pkcs12_expired;}
       
   108 RESOURCE TBUF r_qtn_cm_pkcs12_format_not_supported { buf=qtn_cm_pkcs12_format_not_supported;}
       
   109 
       
   110 //----------------------------------------------------
       
   111 //
       
   112 //     r_qtn_cm_key_usage
       
   113 //     Key usage item label in details query.
       
   114 //
       
   115 //----------------------------------------------------
       
   116 //
       
   117 RESOURCE TBUF r_qtn_cm_key_usage
       
   118     {
       
   119     buf = qtn_cm_key_usage;
       
   120     }
       
   121 
       
   122 //----------------------------------------------------
       
   123 //
       
   124 //     r_qtn_cm_digital_signing
       
   125 //     Key usage is digital signing
       
   126 //     used in client certificate details view
       
   127 //
       
   128 //----------------------------------------------------
       
   129 //
       
   130 RESOURCE TBUF r_qtn_cm_digital_signing
       
   131     {
       
   132     buf = qtn_cm_digital_signing;
       
   133     }
       
   134 
       
   135 //----------------------------------------------------
       
   136 //
       
   137 //     r_qtn_cm_client_authentication
       
   138 //     Key usage is client authentication
       
   139 //     used in client certificate details view
       
   140 //
       
   141 //----------------------------------------------------
       
   142 //
       
   143 RESOURCE TBUF r_qtn_cm_client_authentication
       
   144     {
       
   145     buf = qtn_cm_client_authentication;
       
   146     }
       
   147 
       
   148 //----------------------------------------------------
       
   149 //
       
   150 //     r_qtn_cm_not_defined
       
   151 //     used in certificate details view
       
   152 //
       
   153 //----------------------------------------------------
       
   154 //
       
   155 
       
   156 RESOURCE TBUF r_qtn_cm_not_defined
       
   157     {
       
   158     buf = qtn_cm_not_defined;
       
   159     }
       
   160 
       
   161 //----------------------------------------------------
       
   162 //
       
   163 //    r_certsaver_softkeys_save_discard
       
   164 //    Softkeys in r_message_query_dosave.
       
   165 //
       
   166 //----------------------------------------------------
       
   167 //
       
   168 RESOURCE CBA r_certsaver_softkeys_save_discard
       
   169     {
       
   170     buttons =
       
   171         {
       
   172         CBA_BUTTON { id=EAknSoftkeyOk; txt=text_softkey_save; },
       
   173         CBA_BUTTON { id=EAknSoftkeyCancel; txt=text_wmls_list_disc_recvd_cert; },
       
   174         CBA_BUTTON { id=EAknSoftkeyOk; txt=text_softkey_save; }
       
   175         };
       
   176     }
       
   177 
       
   178 //----------------------------------------------------
       
   179 //
       
   180 //    r_message_query_dosave
       
   181 //    Dialog shown to query if received certificate
       
   182 //    should be saved. Certificate details are
       
   183 //    shown.
       
   184 //
       
   185 //----------------------------------------------------
       
   186 //
       
   187 RESOURCE DIALOG r_message_query_dosave
       
   188     {
       
   189     flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
       
   190     buttons = r_certsaver_softkeys_save_discard;
       
   191     items=
       
   192         {
       
   193         DLG_LINE
       
   194             {
       
   195             type = EAknCtPopupHeadingPane;
       
   196             id = EAknMessageQueryHeaderId;
       
   197             control = AVKON_HEADING
       
   198                 {
       
   199                 };
       
   200             },
       
   201         DLG_LINE
       
   202             {
       
   203             type = EAknCtMessageQuery;
       
   204             id = EAknMessageQueryContentId;
       
   205             control = AVKON_MESSAGE_QUERY
       
   206                 {
       
   207                 };
       
   208             }
       
   209         };
       
   210     }
       
   211 
       
   212 
       
   213 
       
   214 //----------------------------------------------------
       
   215 //
       
   216 //    r_message_query_dosave
       
   217 //    Dialog shown to query when pkcs#12 file saved
       
   218 //    succesfully.
       
   219 //
       
   220 //----------------------------------------------------
       
   221 //
       
   222 RESOURCE DIALOG r_message_query_saved
       
   223     {
       
   224     flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
       
   225     buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
       
   226     items=
       
   227         {
       
   228         DLG_LINE
       
   229             {
       
   230             type = EAknCtPopupHeadingPane;
       
   231             id = EAknMessageQueryHeaderId;
       
   232             control = AVKON_HEADING
       
   233                 {
       
   234                 };
       
   235             },
       
   236         DLG_LINE
       
   237             {
       
   238             type = EAknCtMessageQuery;
       
   239             id = EAknMessageQueryContentId;
       
   240             control = AVKON_MESSAGE_QUERY
       
   241                 {
       
   242                 };
       
   243             }
       
   244         };
       
   245     }
       
   246 
       
   247 //----------------------------------------------------
       
   248 //
       
   249 //    r_certsaver_label_query
       
   250 //    Dialog to query label for certificate.
       
   251 //
       
   252 //----------------------------------------------------
       
   253 //
       
   254 RESOURCE DIALOG r_certsaver_label_query
       
   255     {
       
   256     flags = EGeneralQueryFlags;
       
   257     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
   258     items=
       
   259         {
       
   260         DLG_LINE
       
   261             {
       
   262             type = EAknCtQuery;
       
   263             id = EGeneralQuery;
       
   264             control= AVKON_DATA_QUERY
       
   265                 {
       
   266                 layout = EDataLayout;
       
   267                 label = qtn_certsaver_enter_label;
       
   268                 control = EDWIN
       
   269                     {
       
   270                     maxlength = CERTSAVER_MAX_LABEL_LEN;
       
   271                     };
       
   272                 };
       
   273             }
       
   274         };
       
   275     }
       
   276 
       
   277 //----------------------------------------------------
       
   278 //
       
   279 //    r_certsaver_warning_note
       
   280 //    Confirmation query to warn security risk of
       
   281 //    certificate downloading.
       
   282 //
       
   283 //----------------------------------------------------
       
   284 //
       
   285 RESOURCE DIALOG r_certsaver_warning_note
       
   286     {
       
   287     flags = EGeneralQueryFlags;
       
   288     buttons = r_certsaver_softkeys_save_discard;
       
   289     items=
       
   290         {
       
   291         DLG_LINE
       
   292             {
       
   293             type=EAknCtQuery;
       
   294             id=EGeneralQuery;
       
   295             control= AVKON_CONFIRMATION_QUERY
       
   296                 {
       
   297                 layout = EConfirmationLayout;
       
   298                 label = qtn_httpsec_save_rootcertificate;
       
   299                 };
       
   300             }
       
   301         };
       
   302     }
       
   303 
       
   304 //-----------------------------------------------------------------------------
       
   305 //
       
   306 //  r_certsaver_trust_settings_listbox
       
   307 //  Items in CertSaver trust settings multiselection query
       
   308 //
       
   309 //-----------------------------------------------------------------------------
       
   310 //
       
   311 RESOURCE ARRAY r_certsaver_trust_settings_listbox
       
   312      {
       
   313     items =
       
   314         {
       
   315         LBUF
       
   316             {//mail and image connection
       
   317             txt = "1\t"qtn_cm_lipri_mail_image_conn"";
       
   318             },
       
   319         LBUF
       
   320             {//Native installer
       
   321             txt = "1\t"qtn_cm_lipri_native_installing"";
       
   322             },
       
   323         LBUF
       
   324             {//Java installer
       
   325             txt = "1\t"qtn_cm_lipri_java_installing"";
       
   326             },
       
   327         LBUF
       
   328             {//OCSP validation
       
   329             txt = "1\t"qtn_cm_lipri_ocsp"";
       
   330             }
       
   331         };
       
   332     }
       
   333 
       
   334 
       
   335 
       
   336 //----------------------------------------------------
       
   337 //
       
   338 //    r_certsaver_softkeys_ok_cancel
       
   339 //
       
   340 //----------------------------------------------------
       
   341 //
       
   342 
       
   343 RESOURCE CBA r_certsaver_softkeys_ok_cancel
       
   344     {
       
   345     buttons =
       
   346         {
       
   347         CBA_BUTTON {id=EAknSoftkeyYes; txt=text_softkey_ok;},
       
   348         CBA_BUTTON {id=EAknSoftkeyCancel; txt= text_softkey_cancel;},
       
   349         CBA_BUTTON {id=EAknSoftkeyYes; txt=text_softkey_ok;}
       
   350         };
       
   351     }
       
   352 
       
   353 //----------------------------------------------------
       
   354 //
       
   355 //    r_certsaver_softkeys_ok_cancel_mark
       
   356 //
       
   357 //----------------------------------------------------
       
   358 //
       
   359 
       
   360 RESOURCE CBA r_certsaver_softkeys_ok_cancel_mark
       
   361     {
       
   362     buttons =
       
   363         {
       
   364         CBA_BUTTON {id=EAknSoftkeyYes; txt=text_softkey_ok;},
       
   365         CBA_BUTTON {id=EAknSoftkeyCancel; txt= text_softkey_cancel;},
       
   366         CBA_BUTTON {id=EAknSoftkeyMark; txt=qtn_msk_mark;}
       
   367         };
       
   368     }
       
   369 
       
   370 
       
   371 //----------------------------------------------------
       
   372 //
       
   373 //    r_certsaver_trust_settings_query
       
   374 //    Multiselection list query for trust settings of
       
   375 //    certificate.
       
   376 //
       
   377 //----------------------------------------------------
       
   378 //
       
   379 
       
   380 RESOURCE AVKON_MULTISELECTION_LIST_QUERY r_certsaver_trust_settings_query
       
   381     {
       
   382     flags = EGeneralQueryFlags;
       
   383     softkeys = r_certsaver_softkeys_ok_cancel_mark;
       
   384     items =
       
   385         {
       
   386         AVKON_MULTISELECTION_LIST_QUERY_DLG_LINE
       
   387           {
       
   388           control = AVKON_LIST_QUERY_CONTROL
       
   389             {
       
   390             listtype = EAknCtSingleGraphicPopupMenuListBox;
       
   391             listbox = AVKON_MULTISELECTION_LIST_QUERY_LIST
       
   392                 {
       
   393                 flags = EAknListBoxMultiselectionList | EAknListBoxPointerMultiselectionList;
       
   394                 array_id=r_certsaver_trust_settings_listbox;
       
   395                 };
       
   396             heading = qtn_cm_select_trusted_apps;
       
   397             };
       
   398           }
       
   399         };
       
   400     }
       
   401 
       
   402 // -----------------------------------------------------------------------------
       
   403 //
       
   404 // r_wim_password_query_dialog
       
   405 // ?description
       
   406 //
       
   407 // -----------------------------------------------------------------------------
       
   408 //
       
   409 RESOURCE DIALOG r_pkcs12_pw_query_dialog
       
   410     {
       
   411     flags=EGeneralQueryFlags | EEikDialogFlagVirtualInput;
       
   412     buttons=R_AVKON_SOFTKEYS_OK_CANCEL;
       
   413     items=
       
   414         {
       
   415         DLG_LINE
       
   416             {
       
   417             type=EAknCtQuery;
       
   418             id=EGeneralQuery;
       
   419             control= AVKON_DATA_QUERY
       
   420                 {
       
   421                 layout = ECodeLayout;
       
   422                 control = SECRETED
       
   423                     {
       
   424                     num_letters=32;
       
   425                     };
       
   426                 };
       
   427             }
       
   428         };
       
   429     }
       
   430 
       
   431 //----------------------------------------------------
       
   432 //
       
   433 //    r_certsaver_trusted_site_query
       
   434 //    Multiselection list query for trusted site
       
   435 //    certificate.
       
   436 //
       
   437 //----------------------------------------------------
       
   438 //
       
   439 
       
   440 RESOURCE DIALOG r_certsaver_trusted_site_query
       
   441     {
       
   442     flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
       
   443     buttons = r_certsaver_softkeys_save_discard;
       
   444     items=
       
   445          {
       
   446         DLG_LINE
       
   447               {
       
   448             type = EAknCtPopupHeadingPane;
       
   449             id = EAknMessageQueryHeaderId;
       
   450             control = AVKON_HEADING
       
   451                     {
       
   452                     label = qtn_cm_save_trustedsite_certificate_warning_title;
       
   453                     };
       
   454             },
       
   455          DLG_LINE
       
   456               {
       
   457             type = EAknCtMessageQuery;
       
   458               id = EAknMessageQueryContentId;
       
   459                 control = AVKON_MESSAGE_QUERY
       
   460                     {
       
   461                      };
       
   462               }
       
   463         };
       
   464     }
       
   465 
       
   466 //----------------------------------------------------
       
   467 //
       
   468 //    Resource buffers.
       
   469 //
       
   470 //----------------------------------------------------
       
   471 //
       
   472 RESOURCE TBUF r_certsaver_one_private_key{ buf = qtn_cm_one_private_key; }
       
   473 RESOURCE TBUF r_certsaver_one_personal_certificate { buf = qtn_cm_one_personal_certificate; }
       
   474 RESOURCE TBUF r_certsaver_one_authority_certificate { buf = qtn_cm_one_authority_certificate; }
       
   475 RESOURCE TBUF r_certsaver_trustedsite_warning { buf = qtn_cm_save_trustedsite_certificate_warning_text; }
       
   476 
       
   477 // End of File