www.pudn.com > Example_BluetoothChat.rar > BluetoothChat.rss


/** 
*  
* @brief Resource file for BluetoothChat application 
* 
* Copyright (c) EMCC Software Ltd 2003 
* @version 1.0 
*/ 
 
// RESOURCE IDENTIFIER 
NAME	BTCH // 4 letter ID 
 
// INCLUDES 
 
#include  
#include  
#include  
#include  
 
#include "BluetoothChat.hrh" 
#include "BluetoothChat.loc" 
 
// RESOURCE DEFINITIONS  
 
RESOURCE RSS_SIGNATURE { } 
 
RESOURCE TBUF { buf= qtn_app_caption_string; } 
 
RESOURCE EIK_APP_INFO 
	{ 
	menubar=r_bluetoothchat_menubar;  
	} 
 
//---------------------------------------------------- 
// 
//	r_bluetoothchat_menubar 
//	options menu for the application 
// 
//---------------------------------------------------- 
// 
RESOURCE MENU_BAR r_bluetoothchat_menubar 
	{ 
	titles= 
		{ 
		MENU_TITLE  
			{ 
			txt = ""; // the text is not used in Series 60 
			menu_pane = r_bluetoothchat_menu_pane; 
			} 
		}; 
	} 
 
 
//---------------------------------------------------- 
// 
//	r_bluetoothchat4_menu_pane 
//	options menu pane for the application 
// 
//---------------------------------------------------- 
// 
RESOURCE MENU_PANE r_bluetoothchat_menu_pane 
	{ 
	items = 
		{ 
		MENU_ITEM 
			{ 
			command = EBluetoothChatConnect; 
			txt = CONNECT_TEXT; 
			}, 
		MENU_ITEM 
			{ 
			command = EBluetoothChatReceive; 
			txt = RECEIVER_TEXT; 
			}, 
		MENU_ITEM 
			{ 
			command = EBluetoothChatStopReceive; 
			txt = STOP_RECEIVER_TEXT; 
			}, 
		MENU_ITEM 
			{ 
			command = EBluetoothChatSend; 
			txt = SEND_TEXT; 
			}, 
		MENU_ITEM 
			{ 
			command = EAknCmdExit; 
			txt = EXIT_TEXT; 
			} 
		}; 
	} 
 
 
//---------------------------------------------------- 
// 
//		r_bluetoothchat_dialog 
//		definition of the dialog 
//		N.B. The dialog is modeless, as it is the main  
//		application window. 
// 
//---------------------------------------------------- 
// 
RESOURCE DIALOG r_bluetoothchat_dialog 
	{ 
	flags=EEikDialogFlagNoDrag |  
		EEikDialogFlagNoTitleBar |  
		EEikDialogFlagFillAppClientRect |  
		EEikDialogFlagCbaButtons |  
		EEikDialogFlagModeless; 
	buttons=R_AVKON_SOFTKEYS_OPTIONS_BACK;  
	items= 
		{ 
		}; 
	} 
 
//---------------------------------------------------- 
// 
//		r_bluetooth_connection_wait_dialog 
//		definition of the dialog 
//		N.B. The dialog is modal, as it provides a 
//		mechanism for the user to cancel the connection 
//		process 
// 
//---------------------------------------------------- 
// 
RESOURCE DIALOG r_bluetooth_connection_wait_dialog 
	{ 
	flags = EAknWaitNoteFlags| EEikDialogFlagWait; 
	buttons = R_AVKON_SOFTKEYS_CANCEL; 
	items = 
		{ 
		DLG_LINE 
			{ 
			type = EAknCtNote; 
			id = EBluetoothConnectionWaitDialog; 
			control= AVKON_NOTE  
				{  
				layout = EWaitLayout; 
				singular_label = "Searching for service"; 
				animation = R_QGN_GRAF_WAIT_BAR_ANIM; 
				}; 
			} 
		}; 
	} 
 
//---------------------------------------------------- 
// 
//		r_bluetooth_chat_message_dialog 
//		definition of the dialog 
//		N.B. The dialog is used to obtain a message to 
//		send to a remote device 
// 
//---------------------------------------------------- 
// 
RESOURCE DIALOG r_bluetooth_chat_message_dialog 
	{ 
	flags = EGeneralQueryFlags; 
	buttons = R_AVKON_SOFTKEYS_OK_CANCEL; 
	items = 
		{ 
		DLG_LINE 
			{ 
			type = EAknCtQuery; 
			id = EGeneralQuery; 
			control = AVKON_DATA_QUERY 
				{ 
				layout = EDataLayout; 
				label = qtn_aknexquery_data_label_text; 
				control = EDWIN 
					{ 
					flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable; 
					width = 5; 
					maxlength = 60; 
					// added to limit expanding in forms.  
					// If you want full screen use 6 here 
					max_view_height_in_lines = 5;  
					// if you have the line above, you must have this.  
					// It's calculable from LAF 
					base_line_delta = 21;  
					}; 
				}; 
			} 
		}; 
	} 
 
//---------------------------------------------------- 
// 
//		r_bluetooth_chat_reply_dialog 
//		definition of the dialog 
//		N.B. Reply or Cancel query dialog 
// 
//---------------------------------------------------- 
// 
RESOURCE DIALOG r_bluetooth_chat_reply_dialog 
	{ 
	flags = EGeneralQueryFlags; 
	buttons = r_chat_message_buttons; 
	items = 
		{ 
		DLG_LINE 
			{ 
			type = EAknCtQuery; 
			id = EGeneralQuery; 
			control = AVERELL_CONFIRMATION_QUERY  
				{  
				layout = EConfirmationLayout; 
				}; 
			} 
		}; 
	} 
 
//---------------------------------------------------- 
// 
//		r_chat_message_buttons 
//		definition of the softkeys 
//		N.B. Reply or Cancel softkey options 
// 
//---------------------------------------------------- 
// 
RESOURCE CBA r_chat_message_buttons 
	{ 
	buttons = 
		{ 
		AVKON_CBA_BUTTON 
			{ 
			id = EBluetoothReply;  
			txt = "Reply"; 
			}, 
		CBA_BUTTON  
			{ 
			id = EAknSoftkeyCancel; 
			txt = "Cancel"; 
			} 
		}; 
	} 
 
// --------------------------------------------------------- 
// 
//	Strings used by the application 
// 
// --------------------------------------------------------- 
// 
RESOURCE TBUF r_service_not_found	{ buf="Service not found"; } 
RESOURCE TBUF r_connected			{ buf="Connected"; } 
RESOURCE TBUF r_chat_title			{ buf="Message to Send"; } 
RESOURCE TBUF r_waiting_message		{ buf="Waiting For Connection"; } 
RESOURCE TBUF r_disconnected		{ buf="Disconnected"; } 
RESOURCE TBUF r_connection_lost		{ buf="Connection Lost"; } 
RESOURCE TBUF r_could_not_connect	{ buf="Could Not Connect"; } 
RESOURCE TBUF r_unknown_error		{ buf="Unknown Error"; } 
 
// End of File