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

📄 mmibookshared.h

📁 GSM手机设计软件代码
💻 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

	25/10/00			Original Condat(UK) BMI version.	
	   
 $End

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



/*******************************************************************************
                                                                              
                                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"
/* SPR#1428 - SH -New Editor changes */
#ifndef NEW_EDITOR
#include "mfw_edt.h"
#endif
#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"

/* SPR#1428 - SH -New Editor changes */
#ifdef NEW_EDITOR
#include "ATBCommon.h"
#include "ATBDisplay.h"
#include "ATBEditor.h"
#include "AUITextEntry.h"
#include "AUIEditor.h"
#endif

#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"


#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
/*SPR 1455, */
#ifndef LSCREEN
#define NAME_SCREEN_MAX			13
#else
#define NAME_SCREEN_MAX			41
#endif 

/*SPR 1456*/
#ifdef LSCREEN
#define NAME_LIST_SIZE			10
#define MAX_SEARCHED			10
//
#define MAX_SEARCH_NAME			10
#define MAX_SEARCH_CALL_LIST	10
#else
#define NAME_LIST_SIZE			3
#define MAX_SEARCHED			3

#define MAX_SEARCH_NAME			3
#define MAX_SEARCH_CALL_LIST	3
#endif
//#define EDITOR_SIZE				32
//#define EDITOR_SIZE				96 defined in mmimain.h
#define STANDARD_EDITOR_SIZE	60

//GW-SPR#762- 40 digit phonebook size.
#ifdef PHONEBOOK_EXTENSION
#define NUMBER_LENGTH			41
#else
#define NUMBER_LENGTH			20
#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
                                                                              
*******************************************************************************/


/* Define the type of searching we can perform, these can be
   on name, number or SIM location
*/
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;
    UBYTE               index;
    UBYTE				missedCallsOffset;
	int                 mode;
    tSearchTypes        KindOfSearch;
} tMmiPhbData, *pMmiPhbData;



/* 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;
    T_MFW_HND			menu_main_win;
	T_MFW_HND			calls_list_win;
	T_MFW_HND			menu_options_win;
	T_MFW_HND			menu_options_win_2;
	T_MFW_HND		    menu_call_options_win;
	T_MFW_HND			menu_call_options_win_2;
	T_MFW_HND			name_details_win;
	T_MFW_HND		    input_number_win;
	T_MFW_HND			input_name_win;
	T_MFW_HND			parent_win;

	char				fromSMS;
	char				fromSMSSC;
	char				fromDivert;
	char				fromDeflect;/*SPR 1392, call deflection*/
	tMmiPhbData			current;
    T_MFW_PHB_ENTRY		newEntry;
    T_MFW_UPN_LIST		*upnList;
	struct T_phbk_data	*phbk;
	UBYTE				edt_buf_name[MAX_ALPHA_LEN];
	/*MC SPR 1257, replacing PHB_MAX_LEN with MAX_ALPHA_LEN for name strings*/
	char				edt_buf_number[PHB_MAX_LEN];
	/* SPR#1428 - SH - Not required for new editor */
#ifndef NEW_EDITOR
	MfwEdtAttr			edt_attr_name;
    MfwEdtAttr			edt_attr_number;
#endif /* NEW_EDITOR */
	T_VOID_FUNC			pin2_next;
	struct MfwMnuTag 			*menu;		//Added for FDN -- MC
	struct MfwMnuItemTag		*item;		//Added for FDN -- MC
    tUpdateTypes        UpdateAction;

} T_phbk;


/* SPR#1428 - SH - Not required for new editor */
#ifndef NEW_EDITOR
/* Each window uses a standard message block containing references
   to the keyboards, editors, menues etc.
*/
typedef struct _tInputSpecifics_
{
    int 		text;
    MfwEdtAttr	*edt_attr_input;
    int         left_soft_key;
    int         right_soft_key;
	short		abc;
    void		(* callback)( T_MFW_HND win,UBYTE reason );
} tInputSpecifics, *pInputSpecifics;
#endif /* NEW_EDITOR */

⌨️ 快捷键说明

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