multimediacommsengine/tsrc/testdriver/testclient/ui/group/TestClient.rss
author Stefan Karlsson <stefan.karlsson@nokia.com>
Sun, 28 Mar 2010 16:37:26 +0100
branchCompilerCompatibility
changeset 9 5d1d815214a5
parent 0 1bce908db942
permissions -rw-r--r--
Fixed "extra qualification" syntax errors.

/*
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  TestClient application resource file. For both S60 and S90.
*
*/

NAME TCLI

#include <bldvariant.hrh>

#ifdef __SERIES60_
#include <avkon.rh>
#include <avkonicons.hrh>
#include <avkon.rsg>
#include <avkon.mbg>
#endif
#include <eikon.rh>
#include <eikon.rsg>
#include <uikon.rh>
#include "TestClient.hrh"

#ifdef EKA2
#include <appinfo.rh>
#endif

RESOURCE RSS_SIGNATURE {}
RESOURCE TBUF r_default_document_name { buf=""; }

RESOURCE EIK_APP_INFO
	{
	menubar = r_tc_menubar;
#ifdef __SERIES60_
   cba = r_tc_softkeys_options_exit;
#endif
    }

#ifdef __SERIES60_
RESOURCE CBA r_tc_softkeys_options_exit
	{
	buttons =
		{
		CBA_BUTTON { id = EAknSoftkeyOptions; txt = "Options"; },
		CBA_BUTTON { id = EEikCmdExit; txt = "Exit"; }
		};
	}
#endif

RESOURCE MENU_BAR r_tc_menubar
	{
	titles =
		{
		MENU_TITLE { menu_pane = r_tc_menu; txt = "File"; }
		};
	}


// -- Menus for settings dialog -----------------------------------------------

RESOURCE MENU_PANE r_tc_menu
	{
	items = 
		{
		MENU_ITEM { command = ECmdConnect; txt = "Connect"; },
		MENU_ITEM { command = ECmdDisconnect; txt = "Disconnect"; },
		MENU_ITEM { command = ECmdLocalAddress; txt = "Show local IP"; },
		MENU_ITEM { command = ECmdSettings; txt = "Settings"; },
		MENU_ITEM { command = EEikCmdExit; txt = "Exit"; }
		};
	}


RESOURCE MENU_BAR r_tc_settings_menubar
	{
	titles=
		{
		MENU_TITLE { menu_pane = r_tc_settings_menu; }
		};
	}

RESOURCE MENU_PANE r_tc_settings_menu
	{
	items=
		{
		MENU_ITEM { command = ECmdChange; txt = "Change"; },
		MENU_ITEM { command = EEikCmdExit; txt = "Exit"; }
		};
	}

#ifdef __SERIES60_

// -- Settings dialog ---------------------------------------------------------

RESOURCE DIALOG r_tc_settings_dlg
	{
	buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
	flags = EEikDialogFlagWait | EEikDialogFlagNoDrag
			| EEikDialogFlagCbaButtons | EEikDialogFlagNoTitleBar
			| EEikDialogFlagFillAppClientRect;
	items =
		{
		DLG_LINE
			{
			type = EAknCtSettingListBox;
			id = ECtrlSettingsList;
			itemflags = EEikDlgItemTakesEnterKey | EEikDlgItemOfferAllHotKeys;
			control = LISTBOX {	flags = EAknListBoxSelectionList; };
			}
		};
	}

RESOURCE TBUF r_tc_settings_dlg_title { buf = "Settings"; }

/**
 Each settings item has the following structures:
  - an item title (shown in the settings item list box)
  - a settings page
  - a text link structure
*/

// -- Settings dialog item [CONNECTION] ---------------------------------------

RESOURCE TBUF r_tc_settings_mode_title { buf = "Connection"; }

RESOURCE AVKON_SETTING_PAGE r_tc_settings_mode_page
	{
	label = "Connection";
	type = EAknCtPopupSettingList;
	editor_resource_id = r_tc_settings_mode_control;
	}

RESOURCE AVKON_POPUP_SETTING_TEXTS r_tc_settings_mode_texts
	{
	setting_texts_resource = r_tc_settings_mode;
	}

RESOURCE ARRAY r_tc_settings_mode
	{
	items=
		{
		AVKON_ENUMERATED_TEXT { value = 0; text = "Bluetooth"; },
		AVKON_ENUMERATED_TEXT { value = 1; text = "TCP/IP"; },
		AVKON_ENUMERATED_TEXT { value = 2; text = "Serial"; }		    
		};
	}

RESOURCE POPUP_SETTING_LIST r_tc_settings_mode_control
	{
	}

// -- Settings dialog item [TCPREMOTEADDR] ------------------------------------

RESOURCE TBUF r_tc_settings_tcpremoteaddr_title { buf = "TCP remote addr"; }

RESOURCE AVKON_SETTING_PAGE r_tc_settings_tcpremoteaddr_page
	{
	type = EEikCtEdwin;
	editor_resource_id = r_tc_settings_tcpremoteaddr_control;
	}

RESOURCE EDWIN r_tc_settings_tcpremoteaddr_control
	{
	flags = EEikEdwinNoLineOrParaBreaks;
	lines = 2;
	maxlength = 40;
	default_input_mode=EAknEditorNumericInputMode;
	}

// -- Settings dialog item [TCPPORT] ------------------------------------------

RESOURCE TBUF r_tc_settings_tcpport_title { buf = "TCP port"; }

RESOURCE AVKON_SETTING_PAGE r_tc_settings_tcpport_page
	{
	label = "TCP port";
	type = EAknCtIntegerEdwin;
	editor_resource_id = r_tc_settings_tcpport_control;
	}

RESOURCE AVKON_INTEGER_EDWIN r_tc_settings_tcpport_control
	{
	maxlength = 5;
	min = 1024;
	max = 32000;
    }

// -- Settings dialog item [IAPNAME] --------------------------------------

RESOURCE TBUF r_tc_settings_iapname_title { buf = "IAP"; }

RESOURCE AVKON_SETTING_PAGE r_tc_settings_iapname_page
	{
	label = "IAP";
	type = EAknCtPopupSettingList;
	editor_resource_id = r_tc_settings_iapname_control;
	}

RESOURCE AVKON_POPUP_SETTING_TEXTS r_tc_settings_iapname_texts
	{
	setting_texts_resource = r_tc_settings_iapname;
	}

RESOURCE ARRAY r_tc_settings_iapname
	{
	items=
		{
		AVKON_ENUMERATED_TEXT { value = 0; text = "<do not remove>"; }
		};
	}

RESOURCE POPUP_SETTING_LIST r_tc_settings_iapname_control
	{
	}
	
// -- Settings dialog item [CSYNAME] --------------------------------------

RESOURCE TBUF r_tc_settings_csyname_title { buf = "CSY name"; }

RESOURCE AVKON_SETTING_PAGE r_tc_settings_csyname_page
	{
	label = "CSY name";
	type = EAknCtPopupSettingList;
	editor_resource_id = r_tc_settings_csyname_control;
	}

RESOURCE AVKON_POPUP_SETTING_TEXTS r_tc_settings_csyname_texts
	{
	setting_texts_resource = r_tc_settings_csyname;
	}

RESOURCE ARRAY r_tc_settings_csyname
	{
	items=
		{
		AVKON_ENUMERATED_TEXT { value = 0; text = "ECUART"; },
	    AVKON_ENUMERATED_TEXT { value = 1; text = "IRCOMM"; }
		};
	}

RESOURCE POPUP_SETTING_LIST r_tc_settings_csyname_control
	{
	}
	
// -- Settings dialog item [COMMPORT] --------------------------------------

RESOURCE TBUF r_tc_settings_commport_title { buf = "Comm port"; }

RESOURCE AVKON_SETTING_PAGE r_tc_settings_commport_page
	{
	label = "Comm port";
	type = EAknCtPopupSettingList;
	editor_resource_id = r_tc_settings_commport_control;
	}

RESOURCE AVKON_POPUP_SETTING_TEXTS r_tc_settings_commport_texts
	{
	setting_texts_resource = r_tc_settings_commport;
	}

RESOURCE ARRAY r_tc_settings_commport
	{
	items=
		{
		AVKON_ENUMERATED_TEXT { value = 0; text = "COMM::0"; },
	    AVKON_ENUMERATED_TEXT { value = 1; text = "COMM::1"; },
		AVKON_ENUMERATED_TEXT { value = 2; text = "COMM::2"; }
		};
	}

RESOURCE POPUP_SETTING_LIST r_tc_settings_commport_control
	{
	}
	
// -- Settings dialog item [BAUDRATE] ------------------------------------------

RESOURCE TBUF r_tc_settings_baudrate_title { buf = "Baudrate"; }

RESOURCE AVKON_SETTING_PAGE r_tc_settings_baudrate_page
	{
	label = "Baudrate";
	type = EAknCtIntegerEdwin;
	editor_resource_id = r_tc_settings_baudrate_control;
	}

RESOURCE AVKON_INTEGER_EDWIN r_tc_settings_baudrate_control
	{
	maxlength = 6;
	min = 0;
	max = 115200;
    }		

// -- Settings dialog item [AUTOCONNECT] --------------------------------------

RESOURCE TBUF r_tc_settings_autoconnect_title { buf = "Connection startup"; }

RESOURCE AVKON_SETTING_PAGE r_tc_settings_autoconnect_page
	{
	label = "Connection startup";
	type = EAknCtPopupSettingList;
	editor_resource_id = r_tc_settings_autoconnect_control;
	}

RESOURCE AVKON_POPUP_SETTING_TEXTS r_tc_settings_autoconnect_texts
	{
	setting_texts_resource = r_tc_settings_autoconnect;
	}

RESOURCE ARRAY r_tc_settings_autoconnect
	{
	items=
		{
		AVKON_ENUMERATED_TEXT { value = 0; text = "Manual"; },
		AVKON_ENUMERATED_TEXT { value = 1; text = "Automatic"; }
		};
	}

RESOURCE POPUP_SETTING_LIST r_tc_settings_autoconnect_control
	{
	}

// -- Local address confirmation query ----------------------------------------

RESOURCE DIALOG r_tc_local_address_dlg
	{
	flags = EGeneralQueryFlags;
	buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
	items =
		{
		DLG_LINE
			{
			type = EAknCtQuery;
			id = EGeneralQuery;
			control = AVKON_CONFIRMATION_QUERY
				{
				layout = EConfirmationQueryLayout;
				bmpfile = AVKON_ICON_FILE;
				bmpid = EMbmAvkonQgn_note_empty;
				bmpmask = EMbmAvkonQgn_note_empty_mask;
				};
			}
		};
	}

#else

RESOURCE DIALOG r_tc_settings_dlg
	{
	title = "Settings";
	buttons = R_EIK_BUTTONS_CANCEL_OK;
	flags = EEikDialogFlagWait;
	items=
		{
		DLG_LINE
			{
			type = EEikCtChoiceList;
			id = ECtrlConnection;
			prompt = "Connection";
			control = CHOICELIST
				{
				array_id = r_tc_settings_choicelist_mode;
				};
			},
		DLG_LINE
			{
			type = EEikCtEdwin;
			prompt = "TCP remote addr";
			id = ECtrlRemoteAddr;
			control = EDWIN
					{
					flags = EEikEdwinNoLineOrParaBreaks;
					maxlength = 40;
					width = 10;
					};
			},
		DLG_LINE
			{
			type = EEikCtNumberEditor;
			id = ECtrlTcpPort;
			prompt = "TCP port";
			control = NUMBER_EDITOR
				{
				min = 1024;
				max = 32000;
				};
			},
		DLG_LINE
			{
			type = EEikCtChoiceList;
			id = ECtrlIAPName;
			prompt = "IAP";
			control = CHOICELIST
				{
				array_id = r_tc_settings_choicelist_iap;
				};
			},
		DLG_LINE
			{
			type = EEikCtChoiceList;
			id = ECtrlCSYName;
			prompt = "CSY name";
			control = CHOICELIST
				{
				array_id = r_tc_settings_csyname;
				};
			},
		DLG_LINE
			{
			type = EEikCtChoiceList;
			id = ECtrlCommPort;
			prompt = "Comm port";
			control = CHOICELIST
				{
				array_id = r_tc_settings_commport;
				};
			},
		DLG_LINE
			{
			type = EEikCtNumberEditor;
			id = ECtrlBaudrate;
			prompt = "Baudrate";
			control = NUMBER_EDITOR
				{
				min = 0;
				max = 115200;
				};
			},
		DLG_LINE
			{
			type = EEikCtChoiceList;
			id = ECtrlAutoConnect;
			prompt = "Connection startup";
			control = CHOICELIST
				{
				array_id = r_tc_settings_choicelist_autoconnect;
				};
			}
		};
	}

RESOURCE ARRAY r_tc_settings_choicelist_mode
	{
	items=
		{
		LBUF { txt = "Bluetooth"; },
		LBUF { txt = "TCP/IP"; },
		LBUF { txt = "Serial"; }
		};
	}

RESOURCE ARRAY r_tc_settings_choicelist_iap
	{
	items=
		{
		LBUF { txt = "<do not remove>"; }
		};
	}
	
RESOURCE ARRAY r_tc_settings_csyname
	{
	items=
		{
		LBUF { txt = "ECUART"; },
		LBUF { txt = "IRCOMM"; }
		};
	}
	
RESOURCE ARRAY r_tc_settings_commport
	{
	items=
		{
		LBUF { txt = "COMM::0"; },
		LBUF { txt = "COMM::1"; },
		LBUF { txt = "COMM::2"; }
		};
	}

RESOURCE ARRAY r_tc_settings_choicelist_autoconnect
	{
	items=
		{
		LBUF { txt = "Manual"; },
		LBUF { txt = "Automatic"; }
		};
	}
	
#endif