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