nettools/conntest/data/ConnTest.rss
changeset 0 857a3e953887
child 2 4cefe9af9cf4
equal deleted inserted replaced
-1:000000000000 0:857a3e953887
       
     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: The resource for ConnTest
       
    15 *
       
    16 */
       
    17 
       
    18 //  RESOURCE IDENTIFIER
       
    19 NAME    AWIZ // 4 letter ID
       
    20 
       
    21 //  INCLUDES
       
    22 #include <eikon.rh>
       
    23 #include "ConnTest.rh"
       
    24 #include "conntest.hrh"
       
    25 #include "conntest.loc"
       
    26 #include <avkon.rsg>
       
    27 #include <avkon.rh>
       
    28 #include <avkon.mbg>
       
    29 #include <appinfo.rh>
       
    30 
       
    31 #include <data_caging_paths_strings.hrh>
       
    32 
       
    33 //  CONSTANTS  
       
    34 
       
    35 // for Text Setting Page
       
    36 #define TEXT_SETTING_PAGE_NUMBER 1
       
    37 #define TEXT_SETTING_PAGE_WIDTH 9
       
    38 #define TEXT_SETTING_PAGE_LINES 5
       
    39 #define TEXT_SETTING_PAGE_MAXLENGTH   50
       
    40 
       
    41 
       
    42 //  MACROS  
       
    43 //#define ?macro
       
    44 
       
    45 
       
    46 //  RESOURCE DEFINITIONS 
       
    47 
       
    48 RESOURCE RSS_SIGNATURE { }
       
    49 
       
    50 RESOURCE TBUF { buf="\\private\\101F6D2B\\ConnTest"; }
       
    51 
       
    52 RESOURCE EIK_APP_INFO
       
    53     {
       
    54     status_pane = r_conntest_status_pane;
       
    55     }
       
    56 
       
    57 //----------------------------------------------------
       
    58 //   
       
    59 //    r_conntest_hotkeys
       
    60 //    ?description
       
    61 //
       
    62 //----------------------------------------------------
       
    63 //
       
    64 RESOURCE HOTKEYS r_conntest_hotkeys
       
    65     {
       
    66     control=
       
    67         {
       
    68         HOTKEY { command=EAknCmdExit; key='e'; }
       
    69         };
       
    70     }
       
    71 
       
    72 //----------------------------------------------------
       
    73 //   
       
    74 //    r_conntest_view1
       
    75 //    ?description
       
    76 //
       
    77 //----------------------------------------------------
       
    78 //
       
    79 RESOURCE AVKON_VIEW r_conntest_view1
       
    80     {
       
    81     hotkeys=r_conntest_hotkeys;
       
    82     menubar=r_conntest_menubar_view1;  
       
    83     //cba=R_AVKON_SOFTKEYS_SELECTION_LIST;    
       
    84     cba=R_AVKON_SOFTKEYS_OPTIONS_EXIT;    
       
    85     }
       
    86     
       
    87 
       
    88 //----------------------------------------------------
       
    89 //   
       
    90 //    r_conntest_menubar_view1
       
    91 //    ?description
       
    92 //
       
    93 //----------------------------------------------------
       
    94 //
       
    95 RESOURCE MENU_BAR r_conntest_menubar_view1
       
    96     {
       
    97     titles=
       
    98         {
       
    99         MENU_TITLE { menu_pane=r_conntest_app_menu; txt="App"; },
       
   100         MENU_TITLE { menu_pane=r_conntest_view1_menu; txt="View"; }
       
   101         };
       
   102     }
       
   103 
       
   104 //----------------------------------------------------
       
   105 //   
       
   106 //    r_conntest_view1_menu
       
   107 //    ?description
       
   108 //
       
   109 //----------------------------------------------------
       
   110 //
       
   111 RESOURCE MENU_PANE r_conntest_view1_menu
       
   112     {
       
   113     items=
       
   114         {
       
   115         MENU_ITEM { command=EConnTestCmdMigrate; txt = "Migrate"; },
       
   116         
       
   117         MENU_ITEM { command=EConnTestCmdIgnore; txt = "Ignore"; },
       
   118         
       
   119         MENU_ITEM { command=EConnTestCmdAccept; txt = "Accept"; },
       
   120         
       
   121         MENU_ITEM { command=EConnTestCmdReject; txt = "Reject"; },
       
   122 
       
   123         MENU_ITEM { command=EConnTestCmdCancel; txt = "Cancel"; },
       
   124 
       
   125         MENU_ITEM { command=EConnTestCmdStartInterface; txt = "Start interface";},
       
   126         
       
   127         MENU_ITEM { command=EConnTestCmdStopInterface; txt = "Stop interface"; },
       
   128 
       
   129         MENU_ITEM { command=EConnTestCmdStartInternet; txt = "Start Internet";},        
       
   130 
       
   131         MENU_ITEM { command=EConnTestCmdConnect; txt = "Connect"; },
       
   132 
       
   133 		MENU_ITEM { command=EConnTestCmdListen; txt = "Listen"; },
       
   134 
       
   135 		MENU_ITEM { command=EConnTestCmdDisconnect; txt = "Disconnect"; },
       
   136 
       
   137         MENU_ITEM { command = EConnTestCmdClearOutputWindow; txt = "Clear output"; },
       
   138 
       
   139 		MENU_ITEM { command=EConnTestCmdSendRawData; txt = "Send";
       
   140 		            cascade=r_conntest_sub_menu_send; },
       
   141 		            
       
   142         MENU_ITEM { command=EConnTestWlanDir; txt = "WLAN"; cascade=r_conntest_sub_menu_wlan;},
       
   143         
       
   144 		MENU_ITEM { command=EConnTestCmdConnectionInfo; txt = "Info"; 
       
   145 		            cascade=r_conntest_sub_menu_info;},
       
   146 
       
   147 		MENU_ITEM { command=EConnTestCmdHttpFrameworkGet; txt = "HTTP framework";
       
   148                     cascade=r_conntest_sub_menu_http_fw; },
       
   149 
       
   150 		MENU_ITEM { command=EConnTestCmdAdvanced; txt = "Advanced"; 
       
   151 		            cascade=r_conntest_sub_menu_advanced;},
       
   152 
       
   153 		MENU_ITEM {	command = EConnTestCmdIpLog; txt = "IP packet logging";
       
   154 			        cascade=r_conntest_sub_menu_ipdump;},
       
   155 		            
       
   156         MENU_ITEM { command=EConnTestCmdSettings; txt = "Settings"; }
       
   157         };
       
   158     }
       
   159 
       
   160 RESOURCE MENU_PANE r_conntest_sub_menu_wlan
       
   161     {
       
   162     items=
       
   163         {
       
   164         MENU_ITEM { command=EConnTestWlanAvailableIaps; txt = "Available IAPs"; },
       
   165         
       
   166         MENU_ITEM { command=EConnTestWlanScan; txt = "Scan"; },
       
   167         
       
   168         MENU_ITEM { command=EConnTestWlanGetSsid; txt = "Get SSID"; },
       
   169         
       
   170         MENU_ITEM { command=EConnTestWlanGetBssid; txt = "Get BSSID"; },
       
   171         
       
   172         MENU_ITEM { command=EConnTestWlanGetRssi; txt = "Get RSSI"; },
       
   173         
       
   174         MENU_ITEM { command=EConnTestWlanGetConnMode; txt = "Get Mode"; },
       
   175         
       
   176 		MENU_ITEM { command=EConnTestWlanGetSecurityMode; txt = "Get Security"; }
       
   177         };
       
   178     }
       
   179 
       
   180 
       
   181 
       
   182 RESOURCE MENU_PANE r_conntest_sub_menu_info
       
   183     {
       
   184     items=
       
   185         {
       
   186         MENU_ITEM 
       
   187             {
       
   188             command = EConnTestCmdConnectionInfo;
       
   189             txt = "Connection info";
       
   190             },
       
   191         MENU_ITEM 
       
   192             {
       
   193             command = EConnTestCmdInterfaceInfo;
       
   194             txt = "Interface info";
       
   195             }
       
   196         };
       
   197     }
       
   198 
       
   199 RESOURCE MENU_PANE r_conntest_sub_menu_advanced
       
   200     {
       
   201     items=
       
   202         {
       
   203         MENU_ITEM
       
   204             {
       
   205             command=EConnTestCmdStartSnap;
       
   206             txt = "Start Snap";
       
   207             },
       
   208         MENU_ITEM 
       
   209             {
       
   210             command = EConnTestCmdStartInterfaceNoPrefs;
       
   211             txt = "Start, no prefs";
       
   212             },
       
   213         MENU_ITEM 
       
   214             {
       
   215             command = EConnTestCmdSetCustomPrefs;
       
   216             txt = "Set custom prefs";
       
   217             },
       
   218         MENU_ITEM 
       
   219             {
       
   220             command = EConnTestCmdStartInterfaceExtConnPrefs;
       
   221             txt = "Start, custom prefs";
       
   222             },
       
   223         MENU_ITEM 
       
   224             {
       
   225             command = EConnTestCmdStartForClose;
       
   226             txt = "Start, test Close";
       
   227             },
       
   228         MENU_ITEM 
       
   229             {
       
   230             command = EConnTestCmdCloseInterface;
       
   231             txt = "RConnection::Close";
       
   232             },
       
   233         MENU_ITEM 
       
   234             {
       
   235             command = EConnTestCmdConnectionPrefsIap;
       
   236             txt = "ConnPrefs IapId";
       
   237             },
       
   238         MENU_ITEM 
       
   239             {
       
   240             command = EConnTestCmdClearOutputWindow;
       
   241             txt = "Timeouts";
       
   242 			cascade=r_conntest_sub_menu_timeout;
       
   243 			flags = EEikMenuItemSeparatorAfter;
       
   244             },
       
   245         MENU_ITEM 
       
   246             {
       
   247             command = EConnTestCmdWLANQoSVoice;
       
   248             txt = "WLAN QoS";
       
   249 			cascade=r_conntest_sub_menu_wlanqos;
       
   250 			flags = EEikMenuItemSeparatorAfter;
       
   251             },
       
   252 		MENU_ITEM
       
   253 			{
       
   254 			command = EConnTestCmdParallelGet;
       
   255 			txt = "Parallel GET";
       
   256 			}
       
   257         };
       
   258     }
       
   259 
       
   260 RESOURCE MENU_PANE r_conntest_sub_menu_ipdump
       
   261     {
       
   262     items=
       
   263         {
       
   264         MENU_ITEM 
       
   265             {
       
   266             command = EConnTestCmdStartIpLog;
       
   267             txt = "Start logging";
       
   268             },
       
   269         MENU_ITEM 
       
   270             {
       
   271             command = EConnTestCmdStopIpLog;
       
   272             txt = "Stop logging";
       
   273             },
       
   274         MENU_ITEM 
       
   275             {
       
   276             command = EConnTestCmdSendIpLog;
       
   277             txt = "Send log";
       
   278             }
       
   279         };
       
   280     }
       
   281 
       
   282 
       
   283 RESOURCE MENU_PANE r_conntest_sub_menu_send
       
   284     {
       
   285     items=
       
   286         {
       
   287         MENU_ITEM 
       
   288             {
       
   289             command = EConnTestCmdSendHttpGet;
       
   290             txt = "HTTP GET";
       
   291             },
       
   292         MENU_ITEM 
       
   293             {
       
   294             command = EConnTestCmdSendPerformanceHttpGet;
       
   295             txt = "Performance GET";
       
   296             },
       
   297         MENU_ITEM 
       
   298             {
       
   299             command = EConnTestCmdSendHttpPost;
       
   300             txt = "Performance POST";
       
   301             },
       
   302         MENU_ITEM 
       
   303             {
       
   304             command = EConnTestCmdSendRawData;
       
   305             txt = "Raw data";
       
   306             }
       
   307         };
       
   308     }
       
   309 
       
   310 RESOURCE MENU_PANE r_conntest_sub_menu_http_fw
       
   311     {
       
   312     items=
       
   313         {
       
   314         MENU_ITEM 
       
   315             {
       
   316             command = EConnTestCmdHttpFrameworkGet;
       
   317             txt = "HTTP Get";
       
   318             },
       
   319         //MENU_ITEM 
       
   320         //    {
       
   321         //    command = EConnTestCmdHttpFrameworkPost;
       
   322         //    txt = "Post";
       
   323         //    },
       
   324         MENU_ITEM 
       
   325             {
       
   326             command = EConnTestCmdHttpFrameworkSecureGet;
       
   327             txt = "HTTPS Get";
       
   328             },
       
   329         MENU_ITEM 
       
   330             {
       
   331             command = EConnTestCmdHttpFrameworkPerformanceGet;
       
   332             txt = "Performance GET";
       
   333             },
       
   334         MENU_ITEM 
       
   335             {
       
   336             command = EConnTestCmdHttpFrameworkPerformancePost;
       
   337             txt = "Performance POST";
       
   338             }
       
   339         };
       
   340     }
       
   341 
       
   342 RESOURCE MENU_PANE r_conntest_sub_menu_timeout
       
   343     {
       
   344     items=
       
   345         {
       
   346         MENU_ITEM 
       
   347             {
       
   348             command = EConnTestCmdTimeoutLastSocketActivity;
       
   349             txt = "LastSocketActivity";
       
   350             },
       
   351         MENU_ITEM 
       
   352             {
       
   353             command = EConnTestCmdTimeoutLastSocketClosed;
       
   354             txt = "LastSocketclosed";
       
   355             },
       
   356         MENU_ITEM 
       
   357             {
       
   358             command = EConnTestCmdTimeoutLastSessionClosed;
       
   359             txt = "LastSessionClosed";
       
   360             }
       
   361         };
       
   362     }
       
   363 
       
   364 RESOURCE MENU_PANE r_conntest_sub_menu_wlanqos
       
   365     {
       
   366     items=
       
   367         {
       
   368         MENU_ITEM 
       
   369             {
       
   370             command = EConnTestCmdWLANQoSVoice;
       
   371             txt = "Voice";
       
   372             },
       
   373         MENU_ITEM 
       
   374             {
       
   375             command = EConnTestCmdWLANQoSVideo;
       
   376             txt = "Video";
       
   377             },
       
   378         MENU_ITEM 
       
   379             {
       
   380             command = EConnTestCmdWLANQoSBestEffort;
       
   381             txt = "Best Effort";
       
   382             },
       
   383         MENU_ITEM 
       
   384             {
       
   385             command = EConnTestCmdWLANQoSBackground;
       
   386             txt = "Background";
       
   387             },
       
   388         MENU_ITEM 
       
   389             {
       
   390             command = EConnTestCmdWLANQoSNone;
       
   391             txt = "None";
       
   392             }
       
   393         };
       
   394     }
       
   395 
       
   396 
       
   397 
       
   398 RESOURCE MENU_PANE r_conntest_sub_menu_qos
       
   399     {
       
   400     items=
       
   401         {
       
   402         MENU_ITEM 
       
   403             {
       
   404             command = EConnTestCmdQoS1;
       
   405             txt = "Join";
       
   406             }
       
   407         };
       
   408     }
       
   409 
       
   410 
       
   411 //----------------------------------------------------
       
   412 //   
       
   413 //    r_conntest_app_menu
       
   414 //    ?description
       
   415 //
       
   416 //----------------------------------------------------
       
   417 //
       
   418 RESOURCE MENU_PANE r_conntest_app_menu
       
   419     {
       
   420     items=
       
   421         {
       
   422         //MENU_ITEM { command=EAknCmdExit; txt = qtn_appl_option_item; },
       
   423         MENU_ITEM { command=EAknCmdExit; txt="Exit"; }
       
   424         };
       
   425     }
       
   426 
       
   427 RESOURCE STATUS_PANE_APP_MODEL r_conntest_status_pane
       
   428     {
       
   429 	panes=
       
   430 		{
       
   431 		SPANE_PANE
       
   432 			{
       
   433 			id = EEikStatusPaneUidNavi;
       
   434 			type = EAknCtNaviPane;
       
   435 			resource = r_conntest_navi_decorator;
       
   436 			}
       
   437 		};
       
   438     }
       
   439 
       
   440 //----------------------------------------------------
       
   441 //   
       
   442 //    r_conntest_navi_decorator
       
   443 //    ?description
       
   444 //
       
   445 //----------------------------------------------------
       
   446 //
       
   447 RESOURCE NAVI_DECORATOR r_conntest_navi_decorator
       
   448     {
       
   449     type = ENaviDecoratorControlTabGroup;
       
   450     control = TAB_GROUP
       
   451 		{
       
   452 		tab_width = EAknTabWidthWithFourTabs;  // four tabs
       
   453 		active = 0;
       
   454 		tabs = {
       
   455 			TAB
       
   456 				{
       
   457                 id = EConnTestView1Tab; // from application hrh
       
   458                 txt = "1";
       
   459                 },
       
   460 			TAB
       
   461 				{
       
   462                 id = EConnTestView2Tab; // from application hrh
       
   463                 txt = "2";
       
   464                 },
       
   465 			TAB
       
   466 				{
       
   467                 id = EConnTestView3Tab;
       
   468                 txt = "3";
       
   469 				},
       
   470 			TAB
       
   471 				{
       
   472                 id = EConnTestView4Tab;
       
   473                 txt = "4";
       
   474 				}
       
   475 			};
       
   476 		};
       
   477 	}
       
   478 
       
   479 //----------------------------------------------------
       
   480 //   
       
   481 //    r_conntest_custom_prefs_list
       
   482 //    Custom Preferences list
       
   483 //
       
   484 //----------------------------------------------------
       
   485 //
       
   486 RESOURCE AVKON_SETTING_ITEM_LIST r_conntest_custom_prefs_list
       
   487   {
       
   488   flags= EAknSettingItemNumberedStyle;
       
   489   title = "custom_prefs";
       
   490   initial_number = 1;
       
   491   items =
       
   492     {
       
   493     AVKON_SETTING_ITEM
       
   494       {
       
   495       identifier = EConnTestExtConnPrefsItemSnapPurpose;
       
   496       setting_page_resource = r_conntest_enumtext_setting_page;
       
   497       associated_resource = r_conntest_snap_purpose_list;
       
   498       name = "SnapPurpose";
       
   499       },
       
   500     AVKON_SETTING_ITEM
       
   501       {
       
   502       identifier = EConnTestExtConnPrefsItemSnapId;
       
   503       setting_page_resource = r_conntest_integer_setting_page;
       
   504       name = "SnapId";
       
   505       },
       
   506     AVKON_SETTING_ITEM
       
   507       {
       
   508       identifier = EConnTestExtConnPrefsItemIapId;
       
   509       setting_page_resource = r_conntest_integer_setting_page;
       
   510       name = "IapId";
       
   511       },
       
   512     AVKON_SETTING_ITEM
       
   513       {
       
   514       identifier = EConnTestExtConnPrefsItemBearerSet;
       
   515       setting_page_resource = r_conntest_enumtext_setting_page;
       
   516       associated_resource = r_conntest_bearer_set_list;
       
   517       name = "BearerSet";
       
   518       },
       
   519     AVKON_SETTING_ITEM
       
   520       {
       
   521       identifier = EConnTestExtConnPrefsItemNoteBehaviour;
       
   522       setting_page_resource = r_conntest_enumtext_setting_page;
       
   523       associated_resource = r_conntest_note_behaviour_list;
       
   524       name = "NoteBehaviour";
       
   525       },
       
   526     AVKON_SETTING_ITEM
       
   527       {
       
   528       identifier = EConnTestExtConnPrefsItemConnSelectionDialog;
       
   529       setting_page_resource = r_conntest_binary_switch_setting_page;
       
   530       associated_resource = r_conntest_conn_selection_dialog_list;
       
   531       name = "SelectionDialog";
       
   532       },
       
   533     AVKON_SETTING_ITEM
       
   534       {
       
   535       identifier = EConnTestExtConnPrefsItemDisconnectDialog;
       
   536       setting_page_resource = r_conntest_binary_switch_setting_page;
       
   537       associated_resource = r_conntest_disconnect_dialog_list;
       
   538       name = "DisconnectDialog";
       
   539       },
       
   540     AVKON_SETTING_ITEM
       
   541       {
       
   542       identifier = EConnTestExtConnPrefsItemForcedRoaming;
       
   543       setting_page_resource = r_conntest_binary_switch_setting_page;
       
   544       associated_resource = r_conntest_forced_roaming_list;
       
   545       name = "ForcedRoaming";
       
   546       }
       
   547     };
       
   548   } 
       
   549 
       
   550 //----------------------------------------------------
       
   551 //   
       
   552 //    r_conntest_setting_list
       
   553 //    Setting list
       
   554 //
       
   555 //----------------------------------------------------
       
   556 //
       
   557 RESOURCE AVKON_SETTING_ITEM_LIST r_conntest_setting_list
       
   558   {
       
   559   flags= EAknSettingItemNumberedStyle;
       
   560   title = "not_shown";
       
   561   initial_number = 1;
       
   562   items =
       
   563     {
       
   564     AVKON_SETTING_ITEM
       
   565       {
       
   566       identifier = EConnTestRoaming;
       
   567       setting_page_resource = r_conntest_enumtext_setting_page;
       
   568       associated_resource = r_conntest_roaming_setting_list;
       
   569       name = "Roaming";
       
   570       },
       
   571     AVKON_SETTING_ITEM
       
   572       {
       
   573       identifier = EConnTestIpAddress;
       
   574       setting_page_resource = r_conntest_text_setting_page;
       
   575       name = "IP address";
       
   576       },
       
   577 	AVKON_SETTING_ITEM
       
   578       {
       
   579       identifier = EConnTestPort;
       
   580       setting_page_resource = r_conntest_integer_setting_page;
       
   581       name = "Port";
       
   582       },
       
   583     AVKON_SETTING_ITEM
       
   584       {
       
   585       identifier = EConnTestHttpPage;
       
   586       setting_page_resource = r_conntest_text_setting_page;
       
   587       name = "HTTP page";
       
   588       },
       
   589     AVKON_SETTING_ITEM
       
   590       {
       
   591       identifier = EConnTestProtocol;
       
   592       setting_page_resource = r_conntest_enumtext_setting_page;
       
   593       associated_resource = r_conntest_protocol_setting_list;
       
   594       name = "Protocol";
       
   595       },
       
   596 	AVKON_SETTING_ITEM
       
   597       {
       
   598       identifier = EConnTestPacketSize;
       
   599       setting_page_resource = r_conntest_integer_setting_page;
       
   600       name = "Packet size (<16384)";
       
   601       },
       
   602 	AVKON_SETTING_ITEM
       
   603       {
       
   604       identifier = EConnTestPackets;
       
   605       setting_page_resource = r_conntest_integer_setting_page;
       
   606       name = "Number of packets";
       
   607       },
       
   608 	AVKON_SETTING_ITEM
       
   609       {
       
   610       identifier = EConnTestDelay;
       
   611       setting_page_resource = r_conntest_integer_setting_page;
       
   612       name = "Delay (ms)";
       
   613       }
       
   614     };
       
   615   } 
       
   616 
       
   617 //----------------------------------------------------------------
       
   618 
       
   619 RESOURCE AVKON_POPUP_SETTING_TEXTS r_conntest_snap_purpose_list
       
   620     {
       
   621     setting_texts_resource = r_conntest_snap_purpose_page_list;
       
   622     popped_up_texts_resource = r_conntest_snap_purpose_list_item_array;
       
   623     }
       
   624 
       
   625 RESOURCE ARRAY r_conntest_snap_purpose_page_list
       
   626     {
       
   627     items =
       
   628         {
       
   629         AVKON_ENUMERATED_TEXT
       
   630             {
       
   631             value = 0;
       
   632             text = "Unknown";
       
   633             },
       
   634         AVKON_ENUMERATED_TEXT
       
   635             {
       
   636             value = 1;
       
   637             text = "Internet";
       
   638             },
       
   639         AVKON_ENUMERATED_TEXT
       
   640             {
       
   641             value = 2;
       
   642             text = "Operator";
       
   643             },
       
   644         AVKON_ENUMERATED_TEXT
       
   645             {
       
   646             value = 3;
       
   647             text = "MMS";
       
   648             },
       
   649         AVKON_ENUMERATED_TEXT
       
   650             {
       
   651             value = 4;
       
   652             text = "Intranet";
       
   653             }
       
   654         };
       
   655     }
       
   656 
       
   657 RESOURCE ARRAY r_conntest_snap_purpose_list_item_array
       
   658     {
       
   659     items =
       
   660         {
       
   661         LBUF
       
   662             {
       
   663             txt = "Unknown";
       
   664             },
       
   665         LBUF
       
   666             {
       
   667             txt = "Internet";
       
   668             },
       
   669         LBUF
       
   670             {
       
   671             txt = "Operator";
       
   672             },
       
   673         LBUF
       
   674             {
       
   675             txt = "MMS";
       
   676             },
       
   677         LBUF
       
   678             {
       
   679             txt = "Intranet";
       
   680             }
       
   681         };
       
   682     }
       
   683 
       
   684 //----------------------------------------------------------------
       
   685 
       
   686 RESOURCE AVKON_POPUP_SETTING_TEXTS r_conntest_bearer_set_list
       
   687     {
       
   688     setting_texts_resource = r_conntest_bearer_set_page_list;
       
   689     popped_up_texts_resource = r_conntest_bearer_set_list_item_array;
       
   690     }
       
   691 
       
   692 RESOURCE ARRAY r_conntest_bearer_set_page_list
       
   693     {
       
   694     items =
       
   695         {
       
   696         AVKON_ENUMERATED_TEXT
       
   697             {
       
   698             value = 0;
       
   699             text = "Unknown";
       
   700             },
       
   701         AVKON_ENUMERATED_TEXT
       
   702             {
       
   703             value = 1;
       
   704             text = "Cellular";
       
   705             },
       
   706         AVKON_ENUMERATED_TEXT
       
   707             {
       
   708             value = 2;
       
   709             text = "WLAN";
       
   710             }
       
   711         };
       
   712     }
       
   713 
       
   714 RESOURCE ARRAY r_conntest_bearer_set_list_item_array
       
   715     {
       
   716     items =
       
   717         {
       
   718         LBUF
       
   719             {
       
   720             txt = "Unknown";
       
   721             },
       
   722         LBUF
       
   723             {
       
   724             txt = "Cellular";
       
   725             },
       
   726         LBUF
       
   727             {
       
   728             txt = "WLAN";
       
   729             }
       
   730         };
       
   731     }
       
   732 
       
   733 //----------------------------------------------------------------
       
   734 
       
   735 RESOURCE AVKON_POPUP_SETTING_TEXTS r_conntest_note_behaviour_list
       
   736     {
       
   737     setting_texts_resource = r_conntest_note_behaviour_page_list;
       
   738     popped_up_texts_resource = r_conntest_note_behaviour_list_item_array;
       
   739     }
       
   740 
       
   741 RESOURCE ARRAY r_conntest_note_behaviour_page_list
       
   742     {
       
   743     items =
       
   744         {
       
   745         AVKON_ENUMERATED_TEXT
       
   746             {
       
   747             value = 0;
       
   748             text = "Default";
       
   749             },
       
   750         AVKON_ENUMERATED_TEXT
       
   751             {
       
   752             value = 1;
       
   753             text = "Disable notes";
       
   754             },
       
   755         AVKON_ENUMERATED_TEXT
       
   756             {
       
   757             value = 2;
       
   758             text = "Disable Queries";
       
   759             },
       
   760         AVKON_ENUMERATED_TEXT
       
   761             {
       
   762             value = 3;
       
   763             text = "Silent";
       
   764             }
       
   765         };
       
   766     }
       
   767 
       
   768 RESOURCE ARRAY r_conntest_note_behaviour_list_item_array
       
   769     {
       
   770     items =
       
   771         {
       
   772         LBUF
       
   773             {
       
   774             txt = "Default";
       
   775             },
       
   776         LBUF
       
   777             {
       
   778             txt = "Disable notes";
       
   779             },
       
   780         LBUF
       
   781             {
       
   782             txt = "Disable queries";
       
   783             },
       
   784         LBUF
       
   785             {
       
   786             txt = "Silent";
       
   787             }
       
   788         };
       
   789     }
       
   790 
       
   791 //----------------------------------------------------------------
       
   792 
       
   793 RESOURCE AVKON_POPUP_SETTING_TEXTS r_conntest_disconnect_dialog_list
       
   794     {
       
   795     setting_texts_resource = r_conntest_disconnect_dialog_page_list;
       
   796     }
       
   797 
       
   798 RESOURCE ARRAY r_conntest_disconnect_dialog_page_list
       
   799     {
       
   800     items =
       
   801         {
       
   802         AVKON_ENUMERATED_TEXT
       
   803             {
       
   804             value = 0;
       
   805             text = "Disabled";
       
   806             },
       
   807         AVKON_ENUMERATED_TEXT
       
   808             {
       
   809             value = 1;
       
   810             text = "Enabled";
       
   811             }
       
   812         };
       
   813     }
       
   814 
       
   815 
       
   816 //----------------------------------------------------------------
       
   817 
       
   818 RESOURCE AVKON_POPUP_SETTING_TEXTS r_conntest_conn_selection_dialog_list
       
   819     {
       
   820     setting_texts_resource = r_conntest_conn_selection_dialog_page_list;
       
   821     }
       
   822 
       
   823 RESOURCE ARRAY r_conntest_conn_selection_dialog_page_list
       
   824     {
       
   825     items =
       
   826         {
       
   827         AVKON_ENUMERATED_TEXT
       
   828             {
       
   829             value = 0;
       
   830             text = "Disabled";
       
   831             },
       
   832         AVKON_ENUMERATED_TEXT
       
   833             {
       
   834             value = 1;
       
   835             text = "Enabled";
       
   836             }
       
   837         };
       
   838     }
       
   839 
       
   840 
       
   841 //----------------------------------------------------------------
       
   842 
       
   843 RESOURCE AVKON_POPUP_SETTING_TEXTS r_conntest_forced_roaming_list
       
   844     {
       
   845     setting_texts_resource = r_conntest_forced_roaming_page_list;
       
   846     }
       
   847 
       
   848 RESOURCE ARRAY r_conntest_forced_roaming_page_list
       
   849     {
       
   850     items =
       
   851         {
       
   852         AVKON_ENUMERATED_TEXT
       
   853             {
       
   854             value = 0;
       
   855             text = "Disabled";
       
   856             },
       
   857         AVKON_ENUMERATED_TEXT
       
   858             {
       
   859             value = 1;
       
   860             text = "Enabled";
       
   861             }
       
   862         };
       
   863     }
       
   864 
       
   865 //----------------------------------------------------------------
       
   866 
       
   867 RESOURCE AVKON_POPUP_SETTING_TEXTS r_conntest_roaming_setting_list
       
   868     {
       
   869     setting_texts_resource = r_conntest_roaming_page_list;
       
   870     popped_up_texts_resource = r_conntest_roaming_list_item_array;
       
   871     }
       
   872 
       
   873 RESOURCE ARRAY r_conntest_roaming_page_list
       
   874     {
       
   875     items =
       
   876         {
       
   877         AVKON_ENUMERATED_TEXT
       
   878             {
       
   879             value = 0;
       
   880             text = "Off";
       
   881             },
       
   882         AVKON_ENUMERATED_TEXT
       
   883             {
       
   884             value = 1;
       
   885             text = "Automatic";
       
   886             },
       
   887         AVKON_ENUMERATED_TEXT
       
   888             {
       
   889             value = 2;
       
   890             text = "Manual";
       
   891             }
       
   892         };
       
   893     }
       
   894 
       
   895 RESOURCE ARRAY r_conntest_roaming_list_item_array
       
   896     {
       
   897     items =
       
   898         {
       
   899         LBUF
       
   900             {
       
   901             txt = "Off";
       
   902             },
       
   903         LBUF
       
   904             {
       
   905             txt = "Automatic";
       
   906             },
       
   907         LBUF
       
   908             {
       
   909             txt = "Manual";
       
   910             }
       
   911         };
       
   912     }
       
   913 
       
   914 //----------------------------------------------------------------------------
       
   915 
       
   916 RESOURCE AVKON_POPUP_SETTING_TEXTS r_conntest_protocol_setting_list
       
   917     {
       
   918     setting_texts_resource = r_conntest_protocol_page_list;
       
   919     popped_up_texts_resource = r_conntest_protocol_list_item_array;
       
   920     }
       
   921 
       
   922 RESOURCE ARRAY r_conntest_protocol_page_list
       
   923     {
       
   924     items =
       
   925         {
       
   926         AVKON_ENUMERATED_TEXT
       
   927             {
       
   928             value = 0;
       
   929             text = "TCP";
       
   930             },
       
   931         AVKON_ENUMERATED_TEXT
       
   932             {
       
   933             value = 1;
       
   934             text = "UDP";
       
   935             }
       
   936         };
       
   937     }
       
   938 
       
   939 RESOURCE ARRAY r_conntest_protocol_list_item_array
       
   940     {
       
   941     items =
       
   942         {
       
   943         LBUF
       
   944             {
       
   945             txt = "TCP/IP";
       
   946             },
       
   947         LBUF
       
   948             {
       
   949             txt = "UDP/IP";
       
   950             }
       
   951         };
       
   952     }
       
   953 
       
   954 
       
   955 //----------------------------------------------------------------------------
       
   956 //
       
   957 //    r_conntest_enumtext_setting_page
       
   958 //    Setting page for enumerations
       
   959 //
       
   960 //----------------------------------------------------------------------------
       
   961 //
       
   962 RESOURCE AVKON_SETTING_PAGE r_conntest_enumtext_setting_page
       
   963     {   
       
   964     number= 1;
       
   965     label= qtn_conntest_enumtext_title;
       
   966     type = EAknCtPopupSettingList;
       
   967     editor_resource_id = r_conntest_popup_setting_list_new_entry;
       
   968     }
       
   969 
       
   970 RESOURCE POPUP_SETTING_LIST r_conntest_popup_setting_list_new_entry
       
   971     {
       
   972     //flags = EAknPopupSettingListFlagAllowsUserDefinedEntry;
       
   973     }
       
   974 
       
   975 //----------------------------------------------------------------------------
       
   976 //
       
   977 //    r_conntest_integer_setting_page
       
   978 //    Setting page for integers
       
   979 //
       
   980 //----------------------------------------------------------------------------
       
   981 //
       
   982 RESOURCE AVKON_SETTING_PAGE r_conntest_integer_setting_page
       
   983   {
       
   984   number = 1;
       
   985   //label = "Port";
       
   986   type = EAknCtIntegerEdwin;
       
   987   editor_resource_id = r_conntest_integer;
       
   988   }
       
   989 
       
   990 RESOURCE AVKON_INTEGER_EDWIN r_conntest_integer
       
   991   {
       
   992    min=0;
       
   993   } 
       
   994   
       
   995 
       
   996 //----------------------------------------------------------------------------
       
   997 //
       
   998 //    r_conntest_binary_switch_setting_page
       
   999 //    Setting page for binary values
       
  1000 //
       
  1001 //----------------------------------------------------------------------------
       
  1002 //
       
  1003 RESOURCE AVKON_SETTING_PAGE r_conntest_binary_switch_setting_page
       
  1004     {   
       
  1005     number= 1;
       
  1006     label= "Binary switch";
       
  1007     type = EAknCtPopupSettingList;
       
  1008     editor_resource_id = r_conntest_popup_setting_list_new_entry;
       
  1009     }
       
  1010 
       
  1011 //-----------------------------------------------------------------------------
       
  1012 //
       
  1013 //    r_conntest_text_setting_page
       
  1014 //    Setting page for text
       
  1015 //
       
  1016 //-----------------------------------------------------------------------------
       
  1017 //
       
  1018 RESOURCE AVKON_SETTING_PAGE r_conntest_text_setting_page
       
  1019     {
       
  1020     number = 1;
       
  1021     type = EEikCtEdwin;
       
  1022     editor_resource_id = r_conntest_edwin;
       
  1023     }
       
  1024 
       
  1025 
       
  1026 RESOURCE EDWIN r_conntest_edwin
       
  1027     {
       
  1028     width = TEXT_SETTING_PAGE_WIDTH ;
       
  1029     lines = TEXT_SETTING_PAGE_LINES;
       
  1030     maxlength = TEXT_SETTING_PAGE_MAXLENGTH;
       
  1031     }
       
  1032 
       
  1033 //-----------------------------------------------------------------------------
       
  1034 //
       
  1035 //    r_aknatquery_number_layout
       
  1036 //    Resource of Number Query.
       
  1037 //
       
  1038 //-----------------------------------------------------------------------------
       
  1039 //
       
  1040 RESOURCE DIALOG r_conntest_number_layout
       
  1041     {
       
  1042     flags = EGeneralQueryFlags;
       
  1043     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
  1044     items =
       
  1045         {
       
  1046         DLG_LINE
       
  1047             {
       
  1048             type = EAknCtQuery;
       
  1049             id = EGeneralQuery;
       
  1050             control= AVKON_DATA_QUERY
       
  1051                 {
       
  1052                 layout = ENumberLayout;
       
  1053                 label = qtn_aknatquery_num_label_text;
       
  1054                 control = AVKON_INTEGER_EDWIN
       
  1055                     {
       
  1056                     min = -1;
       
  1057                     max = 1000000;
       
  1058                     };
       
  1059                 };
       
  1060             }
       
  1061         };
       
  1062     }
       
  1063 
       
  1064 //-----------------------------------------------------------------------------
       
  1065 //
       
  1066 //    r_aknatquery_number_layout
       
  1067 //    Resource of Number Query.
       
  1068 //
       
  1069 //-----------------------------------------------------------------------------
       
  1070 //
       
  1071 RESOURCE DIALOG r_conntest_parallel_number_layout
       
  1072     {
       
  1073     flags = EGeneralQueryFlags;
       
  1074     buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
       
  1075     items =
       
  1076         {
       
  1077         DLG_LINE
       
  1078             {
       
  1079             type = EAknCtQuery;
       
  1080             id = EGeneralQuery;
       
  1081             control= AVKON_DATA_QUERY
       
  1082                 {
       
  1083                 layout = ENumberLayout;
       
  1084                 label = qtn_aknatquery_num_label_text;
       
  1085                 control = AVKON_INTEGER_EDWIN
       
  1086                     {
       
  1087                     min = 0;
       
  1088                     max = 4; // Max 4 parallel HTTP gets
       
  1089                     };
       
  1090                 };
       
  1091             }
       
  1092         };
       
  1093     }
       
  1094 
       
  1095 // Add a new resource definition
       
  1096 RESOURCE LOCALISABLE_APP_INFO r_conntest_localisable_app_info
       
  1097     {
       
  1098     short_caption = "ConnTest";
       
  1099     caption_and_icon = 
       
  1100     CAPTION_AND_ICON_INFO
       
  1101         {
       
  1102         caption = "ConnTest";
       
  1103         number_of_icons = 2;
       
  1104         icon_file = APP_BITMAP_DIR"\\ConnTest_aif.mbm";
       
  1105         };
       
  1106     }
       
  1107     
       
  1108         //icon_file = "Z:\\resource\\apps\\localisablefiles\\ConnTest_aif.mbm";
       
  1109 // End of File