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

📄 mmibookshared.h

📁 是一个手机功能的模拟程序
💻 H
📖 第 1 页 / 共 2 页
字号:
#ifndef _MMIBOOKSHARED_
#define _MMIBOOKSHARED_ 1

/*******************************************************************************

					CONDAT (UK)

********************************************************************************                                                                              

 This software product is the property of Condat (UK) Ltd and may not be
 disclosed to any third party without the express permission of the owner.                                 
                                                                              
********************************************************************************

 $Project name:	Basic MMI                                                      
 $Project code:	BMI (6349)                                                           
 $Module:		PhoneBook
 $File:		    MmiBookShared.h
 $Revision:		1.0                                                       
                                                                              
 $Author:		Condat(UK)                                                         
 $Date:		    25/10/00                                                      
                                                                               
********************************************************************************
                                                                              
 Description:
 
    This module provides definitions of the types and
    constants which are shared across the phone book
    application modules.
   
********************************************************************************
 $History: MmiBookShared.h



*******************************************************************************/



/*******************************************************************************
                                                                              
                                Include Files
                                                                              
*******************************************************************************/

/* The following include files provide the basic type definitions
   required by the phone book application. In order to minimise
   the maintenance of these includes, we will define them all
   here and include this file in each of the public headers. In
   this way any changes are localised to a single module.
*/
#include "p_sim.h"
#include "mfw_mfw.h"
#include "mfw_win.h"
#include "mfw_sim.h"
#include "mfw_sat.h"
#include "mfw_tim.h"
#include "mfw_icn.h"
#include "mfw_mnu.h"
#include "mfw_kbd.h"
#include "mfw_edt.h"
#include "mfw_phb.h"
#include "phb.h"
#include "mfw_sys.h"
#include "ksd.h"
#include "psa.h"
#include "mfw_nm.h"
#include "mfw_str.h"
#include "mfw_sms.h"
#include "mfw_ss.h"

#include "dspl.h"


#include "mmiQQSwitch.h" //hxl add for check qq func
#include "MmiDummy.h"
#include "MmiMmi.h"
#include "MmiDialogs.h"
#include "MmiSoftKeys.h"
#include "MmiMain.h"
#include "MmiMenu.h"
#include "MmiPins.h"
#include "MmiCall.h"
#include "MmiIdle.h"



#include "MmiBlkLangDB.h"
#include "MmiResources.h"
#include "mfw_ffs.h"
#include "MmiLists.h"
#include "Mmieditor.h"


#ifndef MFW_EVENT_PASSED
#define MFW_EVENT_PASSED 0
#endif



/*******************************************************************************
                                                                              
                                Shared Definitions
                                                                              
*******************************************************************************/

/* Define standard error reports from the phone book
*/
#define BOOK_FAILURE    (-1)
#define BOOK_SUCCESS    (0)
#define BOOK_WINDOW_KEY (0x00BABE04L)



/* Standard definitions which are shared across the phonebook
   modules
*/
#define MAX_CALL_LISTS			15
#define NAME_SCREEN_MAX			13
#define NAME_LIST_SIZE			3
#define MAX_SEARCHED			3

#define MAX_SEARCH_NAME			3
#define MAX_SEARCH_CALL_LIST	3
//#define EDITOR_SIZE				41 zy move 2003-04-04 no use all is 22
#define STANDARD_EDITOR_SIZE	60

//GW-SPR#762- 40 digit phonebook size.
#ifdef PHONEBOOK_EXTENSION
#define NUMBER_LENGTH			41
#else
#define NUMBER_LENGTH			22	/* 2003/12/29 sunsj modify phone editor size in sms */
#endif
#define MAX_SEARCH_CHAR			8
//#define PHB_UPN					MAX_PHB_TYPE+1
//This definition conflicts with the MFW definition



/* Define a default menu structure
*/




/*******************************************************************************
                                                                              
                        Shared Structure Definitions
                                                                              
*******************************************************************************/
typedef enum
{
  NVMToSIM,
  SIMToNVM
} T_CopyWay;

/* Define the type of searching we can perform, these can be
   on name, number or SIM location
*/
typedef enum
{
    PhbkNone=PhbkDummy,
    PhbkNormal,
    PhbkMainMenu,
    PhbkDone,
    PhbkSearchNormal,
    PhbkDetailsListDone,
    PhbkHostkeyList,   
    PhbkHostkeyOnOffList, 
    PhbkNameEnterNormal,
    PhbkNameEnterIdle,
    PhbkNameEnterSms,
    PhbkNumberEnterNormal,
    PhbkMissedCallsListNormal,
    PhbkReplyListNormal,
    PhbkRepRedOptionsNormal,
    PhbkRedialListNormal,
	PhbkDetailListToIdle,
	PhbkFromSms,
	PhbkFromVoiceMemo,
	PhbkSearchItem,
	PhbkFromGroupingItem,
	PhbkFromDivert,
	PhbkFromShortcutKey,
	PhbkSendAsDTMF,
	PhbkToolkit,  	//for adding menu title in toolkit
	PhbkVoiceList,	//for voicelist
	PhbkWap,		//for wap menu title	
	PhbkNameEnterRecentCall,
	PhbkFromCall
#ifdef QQFUNC
	,Nvm_fri_list,
	Net_fri_list,
	Sys_info_list,
	Chat_info_list,
	find_fri_sel,
	Left_info_list,
	Unread_info_list 
#endif
	,Phbksoftversion /*2003/12/1, wangyan modify*/
#ifdef MMI_EM_ENABLED
	,PhbEmMode		/* Robert.chen 2004-08-03, integrated engineering mode */
#endif
} tBookActionIdentifiers;

typedef enum {
    SEARCH_BY_NAME, 
    SEARCH_BY_NUMBER,
    SEARCH_BY_LOCATION
} tSearchTypes;

typedef enum {
    CREATE_ENTRY,
    MODIFY_EXISTING,
    ADD_FROM_IDLE
} tUpdateTypes;



typedef struct
{
    T_MFW_PHB_ENTRY     entry[MAX_SEARCHED];
    T_MFW_PHB_LIST      list;
    T_MFW_PHB_STATUS    status;
    UBYTE               result;
	UBYTE               selectedName;

	//glowing,2004-04-09, compatible with the new version
	#if TCS20_VER
    SHORT                index;
	#else
	UBYTE               index;
	#endif

    UBYTE				missedCallsOffset;
	int                 mode;
    tSearchTypes        KindOfSearch;
} tMmiPhbData, *pMmiPhbData;

typedef enum
{
  FromSMS,
  FromSearchNumber,
  FromShortCutKey,
  FromShortCutDial,
  FromBrowserMember,
  FromAddMember
} T_EntryMode; //write to Phonebook struct

typedef struct
{
  T_EntryMode   EntryMode;
  
  unsigned char  SearchName[PHB_name_len];
  unsigned char  Select_index;
} T_EntryMenuData;

/* 2003/11/1 sunsj modify homenumber and officenumber's order */
typedef enum
{
  NAME,
  NUMBER,
  HOME,
  OFFICE,
  MEMO,
  OPTION 
} INPUT_MODE;

typedef enum
{
  NoTable,
  GlobalTable,
  SearchTable
} TABLE_TYPE;

typedef enum
{
  TOP,
  BOTTOM
} EDIT_MODE;  

typedef struct
{
	T_MMI_CONTROL		mmi_control;
    T_MFW_HND			win;
    T_MFW_HND          parent_win; 
    T_MFW_HND          kbd;
    int position;
}iconSelect_data;

typedef enum
{
  ICONSELECT_INIT,
  ICONSELECT_EXIT
}iconSelect_type;

//2004/05/25 yhf modify
#if(MAIN_LCD_SIZE==4)
#define GAME_SUBMENU
#endif
typedef enum
{
	smsTitleicon=1,
	reccallTitleicon,
	gameTitleicon,
	//calldivTitleicon,
	sceneTitleicon,
	toolkitTitleicon,
#if(MAIN_LCD_SIZE==3)
	cameraicon,//Knuth
#endif

	settingTitleicon,
	wapTitleicon,
	simtktTitleicon
#ifdef GAME_SUBMENU
	,
	russiaTitleicon,
	boxmanTitleicon,
	snakeTitleicon
#endif
} T_Titleicon;
/*typedef enum
{
	smsTitleicon=1,
	reccallTitleicon,
	gameTitleicon,
	//calldivTitleicon,
	sceneTitleicon,
	toolkitTitleicon,
	settingTitleicon,
	wapTitleicon,
	simtktTitleicon
} T_Titleicon;*/
 
/* Define the basic control record for the phonebook itself,
   this structure will be used by all phonebook application
   modules.
*/
typedef struct T_phbk_data
{
    T_MMI_CONTROL		mmi_control;
    T_MFW_HND			win;

    //internal data    
    T_MFW_HND			search_win;
	T_MFW_HND			root_win;

⌨️ 快捷键说明

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