presencesettingsui/data/psuigspluginrsc.rss
branchGCC_SURGE
changeset 28 d9861ae9169c
parent 23 77cb48a03620
parent 26 04ca1926b01c
equal deleted inserted replaced
23:77cb48a03620 28:d9861ae9169c
     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:    Resource file for Presence Settings UI GS plugin
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 //  RESOURCE IDENTIFIER
       
    22 NAME    UIPS // 4 letter ID
       
    23 
       
    24 //  INCLUDES
       
    25 #include    <bldvariant.hrh>
       
    26 #include    <avkon.rh>
       
    27 #include    <avkon.hrh>
       
    28 #include    <avkon.rsg>
       
    29 #include    <avkon.mbg>
       
    30 #include    <eikcore.rsg>
       
    31 #include    <eikon.rh>
       
    32 #include    <eikon.rsg>
       
    33 #include    <avkon.loc>
       
    34 #include    <data_caging_paths_strings.hrh>
       
    35 #include    <psuigsplugin.loc>
       
    36 #include    "psuigsplugin.hrh"
       
    37 
       
    38 // CONSTANTS
       
    39 #define KPSUICompulsoryChar "*"
       
    40 #define KPSUIMaxServerNameLength 100
       
    41 #define KPSUIURILength 255
       
    42 #define KPSUIMaxObjectSize 999999999
       
    43 #define KPSUIObjectSizeEditorLength 9
       
    44 #define KPSUIPublIntervalEditorLength 6
       
    45 #define KPSUISubscriptionsEditorLength 4
       
    46 
       
    47 //  RESOURCE DEFINITIONS 
       
    48 
       
    49 // ---------------------------------------------------------------------------
       
    50 // RSS_SIGNATURE
       
    51 // ---------------------------------------------------------------------------
       
    52 //
       
    53 RESOURCE RSS_SIGNATURE {}
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // r_psui_mainview_menubar - menubar
       
    57 // Settings mainview's titles
       
    58 // ---------------------------------------------------------------------------
       
    59 //
       
    60 RESOURCE MENU_BAR r_psui_mainview_menubar
       
    61     {
       
    62     titles = 
       
    63         {
       
    64         MENU_TITLE { menu_pane = r_psui_mainview_menupane; }
       
    65         };
       
    66     }
       
    67 
       
    68 // ---------------------------------------------------------------------------
       
    69 // r_psui_mainview_menupane - menupane
       
    70 // Settings mainview's menuitems
       
    71 // ---------------------------------------------------------------------------
       
    72 //
       
    73 RESOURCE MENU_PANE r_psui_mainview_menupane
       
    74     {
       
    75     items =
       
    76         {
       
    77         MENU_ITEM { command = EPSUICmdEdit; txt = qtn_presence_settings_edit; },
       
    78         MENU_ITEM { command = EPSUICmdNewSettings; txt = qtn_presence_settings_new;
       
    79             cascade = r_psui_newsettings_menu; },
       
    80         MENU_ITEM { command = EPSUICmdDelete; txt = qtn_presence_settings_delete; },
       
    81         MENU_ITEM { command = EAknCmdHelp; txt = qtn_options_help; },
       
    82         MENU_ITEM { command = EAknCmdExit; txt = qtn_options_exit; }
       
    83         };
       
    84     }
       
    85 
       
    86 // ---------------------------------------------------------------------------
       
    87 // r_psui_newsettings_menu - titlepane
       
    88 // Settings mainview's menuitems in New Settings cascade menu
       
    89 // ---------------------------------------------------------------------------
       
    90 // 
       
    91 RESOURCE MENU_PANE r_psui_newsettings_menu
       
    92     {
       
    93     items =
       
    94         {
       
    95         MENU_ITEM { command = EPSUICmdNewSettingsDefault; txt = qtn_presence_settings_new_default; },
       
    96         MENU_ITEM { command = EPSUICmdNewSettingsExisting; txt = qtn_presence_settings_new_existing; }
       
    97         };
       
    98     }
       
    99 
       
   100 // ---------------------------------------------------------------------------
       
   101 // r_psui_mainview_title - titlepane
       
   102 // Settings mainview's title
       
   103 // ---------------------------------------------------------------------------
       
   104 //    
       
   105 RESOURCE TITLE_PANE r_psui_mainview_title
       
   106     {
       
   107     txt = qtn_presence_settings_title;
       
   108     }
       
   109 
       
   110 // ---------------------------------------------------------------------------
       
   111 // r_psui_main_view - view
       
   112 // Settings mainview's menubar and command button area definitions
       
   113 // ---------------------------------------------------------------------------
       
   114 //
       
   115 RESOURCE AVKON_VIEW r_psui_main_view
       
   116     {
       
   117     menubar = r_psui_mainview_menubar;
       
   118     cba = r_psui_mainview_softkeys;
       
   119     }
       
   120 
       
   121 // ---------------------------------------------------------------------------
       
   122 // r_psui_mainview_softkeys - cba
       
   123 // Settings mainview's command button area definitions
       
   124 // ---------------------------------------------------------------------------
       
   125 //
       
   126 RESOURCE CBA r_psui_mainview_softkeys
       
   127     {
       
   128     flags = 0;
       
   129     buttons = 
       
   130         {
       
   131         CBA_BUTTON {id=EAknSoftkeyOptions; txt= text_softkey_option;},
       
   132         CBA_BUTTON {id=EAknSoftkeyBack; txt= text_softkey_back;},
       
   133         CBA_BUTTON {id=EPSUICmdEdit; txt= qtn_msk_edit ;}
       
   134         };
       
   135     }
       
   136     
       
   137 // ---------------------------------------------------------------------------
       
   138 // r_psui_setting_view - view
       
   139 // Setting view's menubar and command button area definitions
       
   140 // ---------------------------------------------------------------------------
       
   141 //
       
   142 RESOURCE AVKON_VIEW r_psui_setting_view
       
   143     {
       
   144     menubar = r_psui_settingview_menubar;
       
   145     cba = r_psui_settingview_softkeys;
       
   146     }
       
   147 
       
   148 // ---------------------------------------------------------------------------
       
   149 // r_psui_settingview_softkeys - cba
       
   150 // Settings mainview's command button area definitions
       
   151 // ---------------------------------------------------------------------------
       
   152 //
       
   153 RESOURCE CBA r_psui_settingview_softkeys
       
   154     {
       
   155     flags = 0;
       
   156     buttons = 
       
   157         {
       
   158         CBA_BUTTON {id=EAknSoftkeyOptions; txt= text_softkey_option;},
       
   159         CBA_BUTTON {id=EAknSoftkeyBack; txt= text_softkey_back;},
       
   160         CBA_BUTTON {id=EPSUICmdChange; txt= qtn_msk_change ;}
       
   161         };
       
   162     }
       
   163 
       
   164 // ---------------------------------------------------------------------------
       
   165 // r_psui_settingview_menubar - menubar
       
   166 // Settingview's titles
       
   167 // ---------------------------------------------------------------------------
       
   168 //
       
   169 RESOURCE MENU_BAR r_psui_settingview_menubar
       
   170     {
       
   171     titles = 
       
   172         {
       
   173         MENU_TITLE { menu_pane = r_psui_settingview_menupane; }
       
   174         };
       
   175     }    
       
   176 
       
   177 // ---------------------------------------------------------------------------
       
   178 // r_psui_settingview_menupane - menupane
       
   179 // Settingview's menuitems
       
   180 // ---------------------------------------------------------------------------
       
   181 //
       
   182 RESOURCE MENU_PANE r_psui_settingview_menupane
       
   183     {
       
   184     items =
       
   185         {
       
   186         MENU_ITEM { command = EPSUICmdChange; txt = qtn_presence_settings_change; },
       
   187         MENU_ITEM { command = EAknCmdHelp; txt = qtn_options_help; },
       
   188         MENU_ITEM { command = EEikCmdExit; txt = qtn_options_exit; }
       
   189         };
       
   190     }
       
   191 
       
   192 // ---------------------------------------------------------------------------
       
   193 // r_psui_setting_items - AVKON_SETTING_ITEM_LIST
       
   194 // Setting items for presence settings
       
   195 // ---------------------------------------------------------------------------
       
   196 //
       
   197 RESOURCE AVKON_SETTING_ITEM_LIST r_psui_setting_items
       
   198     {
       
   199     items = 
       
   200         {
       
   201         AVKON_SETTING_ITEM
       
   202             {
       
   203             identifier = EPSUIServerNameId;
       
   204             setting_page_resource = r_psui_server_name_setting_page;
       
   205             name = qtn_presence_settings_name;
       
   206             compulsory_ind_string = KPSUICompulsoryChar;
       
   207             empty_item_text = qtn_selec_setting_compulsory;
       
   208             },
       
   209         AVKON_SETTING_ITEM
       
   210             {
       
   211             identifier = EPSUISIPProfileId;
       
   212             setting_page_resource = r_radiobutton_setting_page;
       
   213             name = qtn_presence_settings_sip_profile;
       
   214             compulsory_ind_string = KPSUICompulsoryChar;
       
   215             empty_item_text = qtn_selec_setting_compulsory;
       
   216             },
       
   217         AVKON_SETTING_ITEM
       
   218             {
       
   219             identifier = EPSUIXDMSettingsId;
       
   220             setting_page_resource = r_radiobutton_setting_page;
       
   221             name = qtn_presence_settings_xdm_settings;
       
   222             },
       
   223         AVKON_SETTING_ITEM
       
   224             {
       
   225             identifier = EPSUIObjectSizeId;
       
   226             setting_page_resource = r_psui_object_size_setting_page;
       
   227             name = qtn_presence_settings_object_size;
       
   228             compulsory_ind_string = KPSUICompulsoryChar;
       
   229             empty_item_text = qtn_selec_setting_compulsory;
       
   230             },
       
   231 /* server address disabled       
       
   232         AVKON_SETTING_ITEM
       
   233             {
       
   234             identifier = EPSUIServerAddrId;
       
   235             setting_page_resource = r_psui_server_addr_setting_page;
       
   236             name = qtn_presence_settings_url;
       
   237             },*/
       
   238         AVKON_SETTING_ITEM
       
   239             {
       
   240             identifier = EPSUIPublishingIntervalId;
       
   241             setting_page_resource = r_psui_publ_interval_setting_page;
       
   242             name = qtn_presence_settings_time_interval;
       
   243             },
       
   244         AVKON_SETTING_ITEM
       
   245             {
       
   246             identifier = EPSUIMaxSubscriptionsId;
       
   247             setting_page_resource = r_psui_subscriptions_setting_page;
       
   248             name = qtn_presence_settings_number_subscriptions;
       
   249             },
       
   250         AVKON_SETTING_ITEM
       
   251             {
       
   252             identifier = EPSUIMaxContactsInListId;
       
   253             setting_page_resource = r_psui_subscriptions_list_setting_page;
       
   254             name = qtn_presence_settings_number_subsc_lists;
       
   255             },
       
   256         AVKON_SETTING_ITEM
       
   257             {
       
   258             identifier = EPSUIDomainSyntaxId;
       
   259             setting_page_resource = r_psui_domain_syntax_setting_page;
       
   260             name = qtn_presence_settings_domain;
       
   261             compulsory_ind_string = KPSUICompulsoryChar;
       
   262             empty_item_text = qtn_selec_setting_compulsory;
       
   263             }                                    
       
   264         };
       
   265     }
       
   266 
       
   267 // ---------------------------------------------------------------------------
       
   268 // r_psui_server_name_setting_page
       
   269 // ---------------------------------------------------------------------------
       
   270 RESOURCE AVKON_SETTING_PAGE r_psui_server_name_setting_page
       
   271     {
       
   272     label= qtn_presence_settings_name;
       
   273     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   274     invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL;
       
   275     type = EEikCtEdwin;
       
   276     editor_resource_id = r_psui_server_name_editor;
       
   277     }
       
   278 
       
   279 RESOURCE EDWIN r_psui_server_name_editor
       
   280     {
       
   281     flags = EEikEdwinNoLineOrParaBreaks;
       
   282     width = 0;
       
   283     lines = 0;    
       
   284     maxlength = KPSUIMaxServerNameLength;
       
   285     }
       
   286 
       
   287 // ---------------------------------------------------------------------------
       
   288 // r_radiobutton_setting_page
       
   289 // ---------------------------------------------------------------------------
       
   290 RESOURCE AVKON_SETTING_PAGE r_radiobutton_setting_page
       
   291     {
       
   292     number = EAknSettingPageNoOrdinalDisplayed; 
       
   293     label = qtn_presence_settings_sip_profile;
       
   294     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   295     invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL;
       
   296     type =  EAknSetListBox;
       
   297     editor_resource_id = r_setting_listbox;
       
   298     }
       
   299     
       
   300 RESOURCE LISTBOX r_setting_listbox
       
   301     {
       
   302     flags = EAknListBoxMultiselectionList;//no actual multiselection, just to make radiobutton visible in previously chosen item
       
   303     }
       
   304 
       
   305 // ---------------------------------------------------------------------------
       
   306 // r_psui_object_size_setting_page
       
   307 // ---------------------------------------------------------------------------
       
   308 RESOURCE AVKON_SETTING_PAGE r_psui_object_size_setting_page
       
   309     {
       
   310     label= qtn_presence_settings_object_size;
       
   311     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   312     invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL;
       
   313     type = EAknCtIntegerEdwin;
       
   314     editor_resource_id = r_psui_object_size_editor;
       
   315     }
       
   316 
       
   317 RESOURCE AVKON_INTEGER_EDWIN r_psui_object_size_editor
       
   318     {
       
   319     maxlength = KPSUIObjectSizeEditorLength;
       
   320     min = 1;
       
   321     max = KPSUIMaxObjectSize;// needed since default value is smaller
       
   322     unset_value = -1;//KErrNotFound
       
   323     }
       
   324 
       
   325 // ---------------------------------------------------------------------------
       
   326 // r_server_addr_setting_page
       
   327 // ---------------------------------------------------------------------------
       
   328 /* server address disabled
       
   329 RESOURCE AVKON_SETTING_PAGE r_psui_server_addr_setting_page
       
   330     {
       
   331     label= qtn_presence_settings_url;
       
   332     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   333     invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL;
       
   334     type = EEikCtEdwin;
       
   335     editor_resource_id = r_psui_uri_editor;
       
   336     }*/
       
   337 
       
   338 RESOURCE EDWIN r_psui_uri_editor
       
   339     {
       
   340     width = 0;
       
   341     lines = 0;
       
   342     maxlength = KPSUIURILength;
       
   343     flags = EEikEdwinAutoSelection | EAknEditorLowerCase | EEikEdwinNoLineOrParaBreaks;
       
   344     allowed_case_modes = EAknEditorLowerCase | EAknEditorUpperCase;
       
   345     numeric_keymap=EAknEditorCalculatorNumberModeKeymap;
       
   346     allowed_input_modes = EAknEditorTextInputMode | EAknEditorNumericInputMode;
       
   347     default_input_mode = EAknEditorTextInputMode;
       
   348     special_character_table = R_AVKON_URL_SPECIAL_CHARACTER_TABLE_DIALOG;
       
   349     default_case = EAknEditorLowerCase;
       
   350     avkon_flags = EAknEditorFlagLatinInputModesOnly;
       
   351     }
       
   352 
       
   353 // ---------------------------------------------------------------------------
       
   354 // r_psui_publ_interval_setting_page
       
   355 // ---------------------------------------------------------------------------
       
   356 RESOURCE AVKON_SETTING_PAGE r_psui_publ_interval_setting_page
       
   357     {
       
   358     label= qtn_presence_settings_time_interval;
       
   359     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   360     invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL;
       
   361     type = EAknCtIntegerEdwin;
       
   362     editor_resource_id = r_psui_publ_interval_editor;
       
   363     }
       
   364 
       
   365 RESOURCE AVKON_INTEGER_EDWIN r_psui_publ_interval_editor
       
   366     {
       
   367     maxlength = KPSUIPublIntervalEditorLength;
       
   368     min = 1;
       
   369     unset_value = -1;//KErrNotFound
       
   370     }
       
   371 
       
   372 // ---------------------------------------------------------------------------
       
   373 // r_psui_subscriptions_setting_page
       
   374 // ---------------------------------------------------------------------------
       
   375 RESOURCE AVKON_SETTING_PAGE r_psui_subscriptions_setting_page
       
   376     {
       
   377     label= qtn_presence_settings_number_subscriptions;
       
   378     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   379     invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL;
       
   380     type = EAknCtIntegerEdwin;
       
   381     editor_resource_id = r_psui_subscriptions_editor;
       
   382     }
       
   383 
       
   384 RESOURCE AVKON_INTEGER_EDWIN r_psui_subscriptions_editor
       
   385     {
       
   386     maxlength = KPSUISubscriptionsEditorLength;
       
   387     min = 0;
       
   388     unset_value = -1;//KErrNotFound
       
   389     }
       
   390 
       
   391 // ---------------------------------------------------------------------------
       
   392 // r_psui_subscriptions_setting_page
       
   393 // ---------------------------------------------------------------------------
       
   394 RESOURCE AVKON_SETTING_PAGE r_psui_subscriptions_list_setting_page
       
   395     {
       
   396     label= qtn_presence_settings_number_subsc_lists;
       
   397     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   398     invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL;
       
   399     type = EAknCtIntegerEdwin;
       
   400     editor_resource_id = r_psui_subscriptions_editor;
       
   401     }    
       
   402     
       
   403 // ---------------------------------------------------------------------------
       
   404 // r_psui_domain_syntax_setting_page
       
   405 // ---------------------------------------------------------------------------
       
   406 RESOURCE AVKON_SETTING_PAGE r_psui_domain_syntax_setting_page
       
   407     {
       
   408     label= qtn_presence_settings_domain;
       
   409     softkey_resource = R_AVKON_SOFTKEYS_OK_CANCEL__OK;
       
   410     invalid_contents_softkey_resource = R_AVKON_SOFTKEYS_CANCEL;
       
   411     type = EEikCtEdwin;
       
   412     editor_resource_id = r_psui_uri_editor;
       
   413     }
       
   414 
       
   415 // ---------------------------------------------------------
       
   416 //    r_deletesettingsconf_query - query
       
   417 //    Query when deleting settings
       
   418 // ---------------------------------------------------------
       
   419 //
       
   420 RESOURCE DIALOG r_psui_conf_query
       
   421     {
       
   422     flags=EGeneralQueryFlags;
       
   423     buttons=R_AVKON_SOFTKEYS_YES_NO;
       
   424     items=
       
   425         {
       
   426         DLG_LINE
       
   427             {
       
   428             type=EAknCtQuery;
       
   429             id=EGeneralQuery;
       
   430             control= AVKON_CONFIRMATION_QUERY
       
   431                 { 
       
   432                 layout = EConfirmationLayout;
       
   433                 };
       
   434             }
       
   435         };
       
   436     }
       
   437     
       
   438 // ---------------------------------------------------------------------------
       
   439 // resource texts
       
   440 // ---------------------------------------------------------------------------
       
   441 //
       
   442 RESOURCE TBUF r_qtn_presence_settings_empty_primary     { buf = qtn_presence_settings_empty_primary; }
       
   443 RESOURCE TBUF r_qtn_presence_settings_empty_secondary   { buf = qtn_presence_settings_empty_secondary; }
       
   444 RESOURCE TBUF r_qtn_presence_propmt_use_exist           { buf = qtn_presence_propmt_use_exist; }    
       
   445 RESOURCE TBUF r_qtn_presence_name_default               { buf = qtn_presence_name_default; } 
       
   446 RESOURCE TBUF r_qtn_presence_name_default_number        { buf = qtn_presence_name_default_number; } 
       
   447 RESOURCE TBUF r_qtn_query_common_conf_delete            { buf = qtn_query_common_conf_delete; }
       
   448 RESOURCE TBUF r_qtn_presence_settings_delete_last       { buf = qtn_presence_settings_delete_last; }
       
   449 RESOURCE TBUF r_qtn_presence_settings_not_filled        { buf = qtn_presence_settings_not_filled; }
       
   450 RESOURCE TBUF r_qtn_presence_settings_name_exists       { buf = qtn_presence_settings_name_exists; }
       
   451 RESOURCE TBUF r_qtn_set_folder_presence                 { buf = qtn_set_folder_presence; }
       
   452    
       
   453 //End of File