⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xinshebt.rss

📁 打开蓝牙
💻 RSS
字号:
/* Copyright (c) 2009, Nokia. All rights reserved */

NAME XINS

#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>

#include "XinSheBT.hrh"
#include "XinSheBT.loc"


// ---------------------------------------------------------
//   
//    Define the resource file signature 
//    This resource should be empty.
//
// ---------------------------------------------------------
//
RESOURCE RSS_SIGNATURE
    {
    }

// ---------------------------------------------------------
//   
//    Default Document Name
//
// ---------------------------------------------------------
//
RESOURCE TBUF r_xinshebt_default_doc_name
    {
    buf="";
    }

// ---------------------------------------------------------
//   
//    Define default menu and CBA key.
//
// ---------------------------------------------------------

RESOURCE EIK_APP_INFO
    {
    menubar = r_xinshebt_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }


// ---------------------------------------------------------
//   
//   r_xinshebtt_menubar
//   Menubar for xinshebtt example
//
// ---------------------------------------------------------
//
RESOURCE MENU_BAR r_xinshebt_menubar
    {
    titles =
        {
        MENU_TITLE
            {
            menu_pane = r_xinshebt_menu;
            }
        };
    }


// ---------------------------------------------------------
//   
//   r_xinshebtt_menu
//   Menu for "Options"
//
// ---------------------------------------------------------
//
RESOURCE MENU_PANE r_xinshebt_menu
    {
    items = 
        {
        MENU_ITEM
            {
            command = EAknSoftkeyExit;
            txt = "Exit";
            }
        };
    }


/***************************************************
*  Define menu and CBA key of xinshebttview
***************************************************/

RESOURCE AVKON_VIEW r_XinSheBTView
{
    menubar = r_XinSheBTView_menubar;
}


RESOURCE MENU_BAR r_XinSheBTView_menubar
{
    titles =
        {
        MENU_TITLE
            {
			 menu_pane = r_XinSheBTView_menu_pane;
            }
        };
}


//----------------------------------------------------
//
//	r_XinSheBTView4_menu_pane
//	options menu pane for the application
//
//----------------------------------------------------
//
RESOURCE MENU_PANE r_XinSheBTView_menu_pane
	{
	items =
		{
		MENU_ITEM
			{
			command = EXinSheBTViewConnect;
			txt = qtn_view_menu_connect;
			},
		MENU_ITEM
			{
			command = EXinSheBTWapBrowser;
			txt = deb_view_menu_wap_browser;
			},
		MENU_ITEM
			{
			command = EAknCmdExit;
			txt = qtn_view_menu_back;
			}
		};
	}


//----------------------------------------------------
//
//		r_XinSheBTView_dialog
//		definition of the dialog
//		N.B. The dialog is modeless, as it is the main 
//		application window.
//
//----------------------------------------------------
//
RESOURCE DIALOG r_XinSheBTView_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_view_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_view_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_view_reply_dialog
//		definition of the dialog
//		N.B. Reply or Cancel query dialog
//
//----------------------------------------------------
//
RESOURCE DIALOG r_bluetooth_view_reply_dialog
	{
	flags = EGeneralQueryFlags;
	buttons = r_view_message_buttons;
	items =
		{
		DLG_LINE
			{
			type = EAknCtQuery;
			id = EGeneralQuery;
			control = AVERELL_CONFIRMATION_QUERY 
				{ 
				layout = EConfirmationLayout;
				};
			}
		};
	}

//----------------------------------------------------
//
//		r_view_message_buttons
//		definition of the softkeys
//		N.B. Reply or Cancel softkey options
//
//----------------------------------------------------
//
RESOURCE CBA r_view_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_view_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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -