ansphone.rss

来自「symbianOS第三版开发与实用教程部分源码和部分试验」· RSS 代码 · 共 130 行

RSS
130
字号
/*
============================================================================
 Name        : AnsPhone.rss
 Author      : Lion
 Copyright   : Your copyright notice
 Description : This file contains all the resources for the AnsPhone.
============================================================================
*/
//  RESOURCE IDENTIFIER
NAME ANSP    // 4 letter ID


//  INCLUDES
#include <eikon.rh>
#include <avkon.rh>
#include <avkon.rsg>
#include <eikon.rsg>
#include <appinfo.rh>
#include <apcaptionfile.rh>
#include "AnsPhone.hrh"
#include "AnsPhone.rls"

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

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

// -----------------------------------------------------------------------------
//
//    Define default menu and CBA key.
//
// -----------------------------------------------------------------------------
//
RESOURCE EIK_APP_INFO
    {
    menubar = r_ansphone_menubar;
    cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
    }


// -----------------------------------------------------------------------------
//
//   r_menubar
//   Main menubar
//
// -----------------------------------------------------------------------------
//
RESOURCE MENU_BAR r_ansphone_menubar
    {
    titles =
        {
        MENU_TITLE { menu_pane = r_ansphone_menu;	}
	 	};
    }

RESOURCE MENU_PANE r_ansphone_menu
	{
	items =
		{
		MENU_ITEM	{ command = EAnsPhoneMenuAnsweringStart;	txt = ANSPHONE_MENU_STARTANSWERING;	},
		MENU_ITEM	{ command = EAnsPhoneMenuAnsweringStop;		txt = ANSPHONE_MENU_STOPANSWERING;	},
		MENU_ITEM	{ command = EAnsPhoneMenuMessagesView;		txt = ANSPHONE_MENU_MESSAGESVIEW;	},
		MENU_ITEM	{ command = EAnsPhoneMenuPlayMessage;		txt = ANSPHONE_MENU_PLAYMESSAGE;	},
		MENU_ITEM	{ command = EAnsPhoneMenuRecordMessage;		txt = ANSPHONE_MENU_RECORDMESSAGE;	},
		MENU_ITEM	{ command = EAnsPhoneMenuStop;			txt = ANSPHONE_MENU_STOP;			},
		MENU_ITEM	{ command = EAnsPhoneMenuMessagesPlay;		txt = ANSPHONE_MENU_MESSAGESPLAY;	},
		MENU_ITEM	{ command = EAnsPhoneMenuMessagesDial;		txt = ANSPHONE_MENU_MESSAGESDIAL;	},
		MENU_ITEM	{ command = EAnsPhoneMenuMessagesDelete;	txt = ANSPHONE_MENU_MESSAGESDELETE;	},
		MENU_ITEM	{ command = EAnsPhoneMenuMessagesBack;		txt = ANSPHONE_MENU_MESSAGESBACK;	},
		MENU_ITEM 	{ command = EAknSoftkeyExit;			txt = ANSPHONE_MENU_EXIT;			}
		};
    }

RESOURCE LISTBOX r_ansphone_listbox_messages
	{
	flags = EAknListBoxSelectionList;
	}

RESOURCE CAPTION_DATA
	{
	caption			= APP_CAPTION_STRING;
	shortcaption	= APP_SHORT_CAPTION_STRING;
	}

RESOURCE TBUF r_ansphone_display_running		{ 	buf = ANSPHONE_DISPLAY_RUNNING; 	}
RESOURCE TBUF r_ansphone_display_stopped		{	buf = ANSPHONE_DISPLAY_STOPPED;		}
RESOURCE TBUF r_ansphone_display_answering		{	buf = ANSPHONE_DISPLAY_ANSWERING;	}
RESOURCE TBUF r_ansphone_display_newmessage		{	buf = ANSPHONE_DISPLAY_NEWMESSAGE;	}
RESOURCE TBUF r_ansphone_display_newmessages		{	buf = ANSPHONE_DISPLAY_NEWMESSAGES;	}
RESOURCE TBUF r_ansphone_title_messages			{	buf = ANSPHONE_TITLE_MESSAGES;		}
RESOURCE TBUF r_ansphone_title_app			{	buf = APP_CAPTION_STRING;			}
// ---------------------------------------------------------------------------- 
//
// r_localisable_app_info
//
// ---------------------------------------------------------------------------- 
//
RESOURCE LOCALISABLE_APP_INFO r_localisable_app_info
    {
    short_caption = qtn_caption_string;
    caption_and_icon = 
    CAPTION_AND_ICON_INFO
        {
        caption = qtn_caption_string;

        number_of_icons = 1;
	   	icon_file = "\\resource\\apps\\AnsPhone.mif";
	    };
    }

// End of File

⌨️ 快捷键说明

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