multimediacommsengine/tsrc/testdriver/testclient/ui/group/TestClient.rss
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004 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:  TestClient application resource file. For both S60 and S90.
       
    15 *
       
    16 */
       
    17 
       
    18 NAME TCLI
       
    19 
       
    20 #include <bldvariant.hrh>
       
    21 
       
    22 #ifdef __SERIES60_
       
    23 #include <avkon.rh>
       
    24 #include <avkonicons.hrh>
       
    25 #include <avkon.rsg>
       
    26 #include <avkon.mbg>
       
    27 #endif
       
    28 #include <eikon.rh>
       
    29 #include <eikon.rsg>
       
    30 #include <uikon.rh>
       
    31 #include "TestClient.hrh"
       
    32 
       
    33 #ifdef EKA2
       
    34 #include <appinfo.rh>
       
    35 #endif
       
    36 
       
    37 RESOURCE RSS_SIGNATURE {}
       
    38 RESOURCE TBUF r_default_document_name { buf=""; }
       
    39 
       
    40 RESOURCE EIK_APP_INFO
       
    41 	{
       
    42 	menubar = r_tc_menubar;
       
    43 #ifdef __SERIES60_
       
    44    cba = r_tc_softkeys_options_exit;
       
    45 #endif
       
    46     }
       
    47 
       
    48 #ifdef __SERIES60_
       
    49 RESOURCE CBA r_tc_softkeys_options_exit
       
    50 	{
       
    51 	buttons =
       
    52 		{
       
    53 		CBA_BUTTON { id = EAknSoftkeyOptions; txt = "Options"; },
       
    54 		CBA_BUTTON { id = EEikCmdExit; txt = "Exit"; }
       
    55 		};
       
    56 	}
       
    57 #endif
       
    58 
       
    59 RESOURCE MENU_BAR r_tc_menubar
       
    60 	{
       
    61 	titles =
       
    62 		{
       
    63 		MENU_TITLE { menu_pane = r_tc_menu; txt = "File"; }
       
    64 		};
       
    65 	}
       
    66 
       
    67 
       
    68 // -- Menus for settings dialog -----------------------------------------------
       
    69 
       
    70 RESOURCE MENU_PANE r_tc_menu
       
    71 	{
       
    72 	items = 
       
    73 		{
       
    74 		MENU_ITEM { command = ECmdConnect; txt = "Connect"; },
       
    75 		MENU_ITEM { command = ECmdDisconnect; txt = "Disconnect"; },
       
    76 		MENU_ITEM { command = ECmdLocalAddress; txt = "Show local IP"; },
       
    77 		MENU_ITEM { command = ECmdSettings; txt = "Settings"; },
       
    78 		MENU_ITEM { command = EEikCmdExit; txt = "Exit"; }
       
    79 		};
       
    80 	}
       
    81 
       
    82 
       
    83 RESOURCE MENU_BAR r_tc_settings_menubar
       
    84 	{
       
    85 	titles=
       
    86 		{
       
    87 		MENU_TITLE { menu_pane = r_tc_settings_menu; }
       
    88 		};
       
    89 	}
       
    90 
       
    91 RESOURCE MENU_PANE r_tc_settings_menu
       
    92 	{
       
    93 	items=
       
    94 		{
       
    95 		MENU_ITEM { command = ECmdChange; txt = "Change"; },
       
    96 		MENU_ITEM { command = EEikCmdExit; txt = "Exit"; }
       
    97 		};
       
    98 	}
       
    99 
       
   100 #ifdef __SERIES60_
       
   101 
       
   102 // -- Settings dialog ---------------------------------------------------------
       
   103 
       
   104 RESOURCE DIALOG r_tc_settings_dlg
       
   105 	{
       
   106 	buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
       
   107 	flags = EEikDialogFlagWait | EEikDialogFlagNoDrag
       
   108 			| EEikDialogFlagCbaButtons | EEikDialogFlagNoTitleBar
       
   109 			| EEikDialogFlagFillAppClientRect;
       
   110 	items =
       
   111 		{
       
   112 		DLG_LINE
       
   113 			{
       
   114 			type = EAknCtSettingListBox;
       
   115 			id = ECtrlSettingsList;
       
   116 			itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
       
   117 			control = LISTBOX {	flags = EAknListBoxSelectionList; };
       
   118 			}
       
   119 		};
       
   120 	}
       
   121 
       
   122 RESOURCE TBUF r_tc_settings_dlg_title { buf = "Settings"; }
       
   123 
       
   124 /**
       
   125  Each settings item has the following structures:
       
   126   - an item title (shown in the settings item list box)
       
   127   - a settings page
       
   128   - a text link structure
       
   129 */
       
   130 
       
   131 // -- Settings dialog item [CONNECTION] ---------------------------------------
       
   132 
       
   133 RESOURCE TBUF r_tc_settings_mode_title { buf = "Connection"; }
       
   134 
       
   135 RESOURCE AVKON_SETTING_PAGE r_tc_settings_mode_page
       
   136 	{
       
   137 	label = "Connection";
       
   138 	type = EAknCtPopupSettingList;
       
   139 	editor_resource_id = r_tc_settings_mode_control;
       
   140 	}
       
   141 
       
   142 RESOURCE AVKON_POPUP_SETTING_TEXTS r_tc_settings_mode_texts
       
   143 	{
       
   144 	setting_texts_resource = r_tc_settings_mode;
       
   145 	}
       
   146 
       
   147 RESOURCE ARRAY r_tc_settings_mode
       
   148 	{
       
   149 	items=
       
   150 		{
       
   151 		AVKON_ENUMERATED_TEXT { value = 0; text = "Bluetooth"; },
       
   152 		AVKON_ENUMERATED_TEXT { value = 1; text = "TCP/IP"; },
       
   153 		AVKON_ENUMERATED_TEXT { value = 2; text = "Serial"; }		    
       
   154 		};
       
   155 	}
       
   156 
       
   157 RESOURCE POPUP_SETTING_LIST r_tc_settings_mode_control
       
   158 	{
       
   159 	}
       
   160 
       
   161 // -- Settings dialog item [TCPREMOTEADDR] ------------------------------------
       
   162 
       
   163 RESOURCE TBUF r_tc_settings_tcpremoteaddr_title { buf = "TCP remote addr"; }
       
   164 
       
   165 RESOURCE AVKON_SETTING_PAGE r_tc_settings_tcpremoteaddr_page
       
   166 	{
       
   167 	type = EEikCtEdwin;
       
   168 	editor_resource_id = r_tc_settings_tcpremoteaddr_control;
       
   169 	}
       
   170 
       
   171 RESOURCE EDWIN r_tc_settings_tcpremoteaddr_control
       
   172 	{
       
   173 	flags = EEikEdwinNoLineOrParaBreaks;
       
   174 	lines = 2;
       
   175 	maxlength = 40;
       
   176 	default_input_mode=EAknEditorNumericInputMode;
       
   177 	}
       
   178 
       
   179 // -- Settings dialog item [TCPPORT] ------------------------------------------
       
   180 
       
   181 RESOURCE TBUF r_tc_settings_tcpport_title { buf = "TCP port"; }
       
   182 
       
   183 RESOURCE AVKON_SETTING_PAGE r_tc_settings_tcpport_page
       
   184 	{
       
   185 	label = "TCP port";
       
   186 	type = EAknCtIntegerEdwin;
       
   187 	editor_resource_id = r_tc_settings_tcpport_control;
       
   188 	}
       
   189 
       
   190 RESOURCE AVKON_INTEGER_EDWIN r_tc_settings_tcpport_control
       
   191 	{
       
   192 	maxlength = 5;
       
   193 	min = 1024;
       
   194 	max = 32000;
       
   195     }
       
   196 
       
   197 // -- Settings dialog item [IAPNAME] --------------------------------------
       
   198 
       
   199 RESOURCE TBUF r_tc_settings_iapname_title { buf = "IAP"; }
       
   200 
       
   201 RESOURCE AVKON_SETTING_PAGE r_tc_settings_iapname_page
       
   202 	{
       
   203 	label = "IAP";
       
   204 	type = EAknCtPopupSettingList;
       
   205 	editor_resource_id = r_tc_settings_iapname_control;
       
   206 	}
       
   207 
       
   208 RESOURCE AVKON_POPUP_SETTING_TEXTS r_tc_settings_iapname_texts
       
   209 	{
       
   210 	setting_texts_resource = r_tc_settings_iapname;
       
   211 	}
       
   212 
       
   213 RESOURCE ARRAY r_tc_settings_iapname
       
   214 	{
       
   215 	items=
       
   216 		{
       
   217 		AVKON_ENUMERATED_TEXT { value = 0; text = "<do not remove>"; }
       
   218 		};
       
   219 	}
       
   220 
       
   221 RESOURCE POPUP_SETTING_LIST r_tc_settings_iapname_control
       
   222 	{
       
   223 	}
       
   224 	
       
   225 // -- Settings dialog item [CSYNAME] --------------------------------------
       
   226 
       
   227 RESOURCE TBUF r_tc_settings_csyname_title { buf = "CSY name"; }
       
   228 
       
   229 RESOURCE AVKON_SETTING_PAGE r_tc_settings_csyname_page
       
   230 	{
       
   231 	label = "CSY name";
       
   232 	type = EAknCtPopupSettingList;
       
   233 	editor_resource_id = r_tc_settings_csyname_control;
       
   234 	}
       
   235 
       
   236 RESOURCE AVKON_POPUP_SETTING_TEXTS r_tc_settings_csyname_texts
       
   237 	{
       
   238 	setting_texts_resource = r_tc_settings_csyname;
       
   239 	}
       
   240 
       
   241 RESOURCE ARRAY r_tc_settings_csyname
       
   242 	{
       
   243 	items=
       
   244 		{
       
   245 		AVKON_ENUMERATED_TEXT { value = 0; text = "ECUART"; },
       
   246 	    AVKON_ENUMERATED_TEXT { value = 1; text = "IRCOMM"; }
       
   247 		};
       
   248 	}
       
   249 
       
   250 RESOURCE POPUP_SETTING_LIST r_tc_settings_csyname_control
       
   251 	{
       
   252 	}
       
   253 	
       
   254 // -- Settings dialog item [COMMPORT] --------------------------------------
       
   255 
       
   256 RESOURCE TBUF r_tc_settings_commport_title { buf = "Comm port"; }
       
   257 
       
   258 RESOURCE AVKON_SETTING_PAGE r_tc_settings_commport_page
       
   259 	{
       
   260 	label = "Comm port";
       
   261 	type = EAknCtPopupSettingList;
       
   262 	editor_resource_id = r_tc_settings_commport_control;
       
   263 	}
       
   264 
       
   265 RESOURCE AVKON_POPUP_SETTING_TEXTS r_tc_settings_commport_texts
       
   266 	{
       
   267 	setting_texts_resource = r_tc_settings_commport;
       
   268 	}
       
   269 
       
   270 RESOURCE ARRAY r_tc_settings_commport
       
   271 	{
       
   272 	items=
       
   273 		{
       
   274 		AVKON_ENUMERATED_TEXT { value = 0; text = "COMM::0"; },
       
   275 	    AVKON_ENUMERATED_TEXT { value = 1; text = "COMM::1"; },
       
   276 		AVKON_ENUMERATED_TEXT { value = 2; text = "COMM::2"; }
       
   277 		};
       
   278 	}
       
   279 
       
   280 RESOURCE POPUP_SETTING_LIST r_tc_settings_commport_control
       
   281 	{
       
   282 	}
       
   283 	
       
   284 // -- Settings dialog item [BAUDRATE] ------------------------------------------
       
   285 
       
   286 RESOURCE TBUF r_tc_settings_baudrate_title { buf = "Baudrate"; }
       
   287 
       
   288 RESOURCE AVKON_SETTING_PAGE r_tc_settings_baudrate_page
       
   289 	{
       
   290 	label = "Baudrate";
       
   291 	type = EAknCtIntegerEdwin;
       
   292 	editor_resource_id = r_tc_settings_baudrate_control;
       
   293 	}
       
   294 
       
   295 RESOURCE AVKON_INTEGER_EDWIN r_tc_settings_baudrate_control
       
   296 	{
       
   297 	maxlength = 6;
       
   298 	min = 0;
       
   299 	max = 115200;
       
   300     }		
       
   301 
       
   302 // -- Settings dialog item [AUTOCONNECT] --------------------------------------
       
   303 
       
   304 RESOURCE TBUF r_tc_settings_autoconnect_title { buf = "Connection startup"; }
       
   305 
       
   306 RESOURCE AVKON_SETTING_PAGE r_tc_settings_autoconnect_page
       
   307 	{
       
   308 	label = "Connection startup";
       
   309 	type = EAknCtPopupSettingList;
       
   310 	editor_resource_id = r_tc_settings_autoconnect_control;
       
   311 	}
       
   312 
       
   313 RESOURCE AVKON_POPUP_SETTING_TEXTS r_tc_settings_autoconnect_texts
       
   314 	{
       
   315 	setting_texts_resource = r_tc_settings_autoconnect;
       
   316 	}
       
   317 
       
   318 RESOURCE ARRAY r_tc_settings_autoconnect
       
   319 	{
       
   320 	items=
       
   321 		{
       
   322 		AVKON_ENUMERATED_TEXT { value = 0; text = "Manual"; },
       
   323 		AVKON_ENUMERATED_TEXT { value = 1; text = "Automatic"; }
       
   324 		};
       
   325 	}
       
   326 
       
   327 RESOURCE POPUP_SETTING_LIST r_tc_settings_autoconnect_control
       
   328 	{
       
   329 	}
       
   330 
       
   331 // -- Local address confirmation query ----------------------------------------
       
   332 
       
   333 RESOURCE DIALOG r_tc_local_address_dlg
       
   334 	{
       
   335 	flags = EGeneralQueryFlags;
       
   336 	buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
       
   337 	items =
       
   338 		{
       
   339 		DLG_LINE
       
   340 			{
       
   341 			type = EAknCtQuery;
       
   342 			id = EGeneralQuery;
       
   343 			control = AVKON_CONFIRMATION_QUERY
       
   344 				{
       
   345 				layout = EConfirmationQueryLayout;
       
   346 				bmpfile = AVKON_ICON_FILE;
       
   347 				bmpid = EMbmAvkonQgn_note_empty;
       
   348 				bmpmask = EMbmAvkonQgn_note_empty_mask;
       
   349 				};
       
   350 			}
       
   351 		};
       
   352 	}
       
   353 
       
   354 #else
       
   355 
       
   356 RESOURCE DIALOG r_tc_settings_dlg
       
   357 	{
       
   358 	title = "Settings";
       
   359 	buttons = R_EIK_BUTTONS_CANCEL_OK;
       
   360 	flags = EEikDialogFlagWait;
       
   361 	items=
       
   362 		{
       
   363 		DLG_LINE
       
   364 			{
       
   365 			type = EEikCtChoiceList;
       
   366 			id = ECtrlConnection;
       
   367 			prompt = "Connection";
       
   368 			control = CHOICELIST
       
   369 				{
       
   370 				array_id = r_tc_settings_choicelist_mode;
       
   371 				};
       
   372 			},
       
   373 		DLG_LINE
       
   374 			{
       
   375 			type = EEikCtEdwin;
       
   376 			prompt = "TCP remote addr";
       
   377 			id = ECtrlRemoteAddr;
       
   378 			control = EDWIN
       
   379 					{
       
   380 					flags = EEikEdwinNoLineOrParaBreaks;
       
   381 					maxlength = 40;
       
   382 					width = 10;
       
   383 					};
       
   384 			},
       
   385 		DLG_LINE
       
   386 			{
       
   387 			type = EEikCtNumberEditor;
       
   388 			id = ECtrlTcpPort;
       
   389 			prompt = "TCP port";
       
   390 			control = NUMBER_EDITOR
       
   391 				{
       
   392 				min = 1024;
       
   393 				max = 32000;
       
   394 				};
       
   395 			},
       
   396 		DLG_LINE
       
   397 			{
       
   398 			type = EEikCtChoiceList;
       
   399 			id = ECtrlIAPName;
       
   400 			prompt = "IAP";
       
   401 			control = CHOICELIST
       
   402 				{
       
   403 				array_id = r_tc_settings_choicelist_iap;
       
   404 				};
       
   405 			},
       
   406 		DLG_LINE
       
   407 			{
       
   408 			type = EEikCtChoiceList;
       
   409 			id = ECtrlCSYName;
       
   410 			prompt = "CSY name";
       
   411 			control = CHOICELIST
       
   412 				{
       
   413 				array_id = r_tc_settings_csyname;
       
   414 				};
       
   415 			},
       
   416 		DLG_LINE
       
   417 			{
       
   418 			type = EEikCtChoiceList;
       
   419 			id = ECtrlCommPort;
       
   420 			prompt = "Comm port";
       
   421 			control = CHOICELIST
       
   422 				{
       
   423 				array_id = r_tc_settings_commport;
       
   424 				};
       
   425 			},
       
   426 		DLG_LINE
       
   427 			{
       
   428 			type = EEikCtNumberEditor;
       
   429 			id = ECtrlBaudrate;
       
   430 			prompt = "Baudrate";
       
   431 			control = NUMBER_EDITOR
       
   432 				{
       
   433 				min = 0;
       
   434 				max = 115200;
       
   435 				};
       
   436 			},
       
   437 		DLG_LINE
       
   438 			{
       
   439 			type = EEikCtChoiceList;
       
   440 			id = ECtrlAutoConnect;
       
   441 			prompt = "Connection startup";
       
   442 			control = CHOICELIST
       
   443 				{
       
   444 				array_id = r_tc_settings_choicelist_autoconnect;
       
   445 				};
       
   446 			}
       
   447 		};
       
   448 	}
       
   449 
       
   450 RESOURCE ARRAY r_tc_settings_choicelist_mode
       
   451 	{
       
   452 	items=
       
   453 		{
       
   454 		LBUF { txt = "Bluetooth"; },
       
   455 		LBUF { txt = "TCP/IP"; },
       
   456 		LBUF { txt = "Serial"; }
       
   457 		};
       
   458 	}
       
   459 
       
   460 RESOURCE ARRAY r_tc_settings_choicelist_iap
       
   461 	{
       
   462 	items=
       
   463 		{
       
   464 		LBUF { txt = "<do not remove>"; }
       
   465 		};
       
   466 	}
       
   467 	
       
   468 RESOURCE ARRAY r_tc_settings_csyname
       
   469 	{
       
   470 	items=
       
   471 		{
       
   472 		LBUF { txt = "ECUART"; },
       
   473 		LBUF { txt = "IRCOMM"; }
       
   474 		};
       
   475 	}
       
   476 	
       
   477 RESOURCE ARRAY r_tc_settings_commport
       
   478 	{
       
   479 	items=
       
   480 		{
       
   481 		LBUF { txt = "COMM::0"; },
       
   482 		LBUF { txt = "COMM::1"; },
       
   483 		LBUF { txt = "COMM::2"; }
       
   484 		};
       
   485 	}
       
   486 
       
   487 RESOURCE ARRAY r_tc_settings_choicelist_autoconnect
       
   488 	{
       
   489 	items=
       
   490 		{
       
   491 		LBUF { txt = "Manual"; },
       
   492 		LBUF { txt = "Automatic"; }
       
   493 		};
       
   494 	}
       
   495 	
       
   496 #endif