📄 mmibookshared.h
字号:
typedef struct _tBookStandard_
{
/* Standard elements which are consistent across all phonebook
window control blocks
*/
T_MMI_CONTROL mmi_control;
T_MFW_HND win;
T_MFW_HND kbd;
T_MFW_HND kbd_long;
T_MFW_HND menu_tim;
T_MFW_HND menu;
#ifdef NEW_EDITOR
T_ED_DATA *editor;
T_AUI_ENTRY_DATA *entry_data;
#else /* NEW_EDITOR */
T_MFW_HND edt;
#endif /* NEW_EDITOR */
T_MFW_HND parent_win;
T_phbk *phbk;
T_VOID_FUNC Callback;
/* internal data
*/
UBYTE status_of_timer; /* use for the keypadlock */
#ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */
T_ED_ATTR editor_attr;
#else /* NEW_EDITOR */
MfwEdtAttr attr;
#endif /* NEW_EDITOR */
char edtBuf[STANDARD_EDITOR_SIZE];
#ifndef NEW_EDITOR /* SPR#1428 - SH - New Editor changes */
tInputSpecifics properties; /* No longer required with NEW_EDITOR */
#endif /* NEW_EDITOR */
} tBookStandard, *pBookStandard;
/* In order to encapsulate the behaviour of the phonebook in
it's own terms of reference, we will provide the following
type definition overrides.
*/
#define tBookStatus int
#define tBookPtr void *
#define tBookDialogData T_DISPLAY_DATA
#define tBookMfwMenu struct MfwMnuTag
#define tBookMfwMenuItem struct MfwMnuItemTag
#define tBookMfwHnd MfwHnd
#define tBookMfwHdr MfwHdr
#define tBookMfwWin MfwWin
#define tBookMfwEvent MfwEvt
#define tBookMfwBook int
#define tBookPhonebook T_phbk
#define pBookPhonebook tBookPhonebook *
#define pBookStandard tBookStandard *
#define pBookMfwWin tBookMfwWin *
#define THREE_SECS 0x0BB8 /* 3000 milliseconds. */
/* The following definitions are inherited from the Phbk.h header
and will be adjusted as required to provide the phone book
functionality.
*/
typedef enum
{
PhbkNone=PhbkDummy,
PhbkNormal,
PhbkMainMenu,
PhbkDone,
PhbkSearchNormal,
PhbkDetailsListDone,
PhbkNameEnterNormal,
PhbkNameEnterIdle,
PhbkNumberEnterNormal,
PhbkMissedCallsListNormal,
PhbkReplyListNormal,
PhbkRepRedOptionsNormal,
PhbkRedialListNormal,
PhbkDetailListToIdle,
PhbkFromSms,
PhbkFromSmsSC, /*SH*/
PhbkFromDivert,
PhbkSendAsDTMF,
PhbkFromDeflect/*SPR 1392, call deflection*/
} tBookActionIdentifiers;
typedef enum
{
INPUT_INIT,
INPUT_LEFT,
INPUT_RIGHT,
INPUT_CLEAR,
INPUT_DESTROY,
MENU_INIT,
ADD_CALLBACK,
DEFAULT_OPTION,
SEARCH_INIT,
SEARCH_SCROLL_UP,
SEARCH_SCROLL_DOWN,
SEARCH_STRING,
SEARCH_UPDATE,
#ifdef NEW_EDITOR /* SPR#1428 - SH - New Editor: So we can redraw screen when required */
SEARCH_REDRAW,
#endif /* NEW_EDITOR */
CALL_DETAILS_INIT,
CALLS_LIST_INIT,
PHBK_INIT,
PHBK_SEND_NUMBER,
SMS_PHBK_NUMBER,
SMSSC_PHBK_NUMBER, /* SH - Service centre number */
DIVERT_PHBK_NUMBER, //MZ 26/02/01 definition for set divert.
DEFLECT_PHBK_NUMBER /*SPR 1392, call deflection*/
} tBookMessageEvents;
/*******************************************************************************
Define common interface definitions
*******************************************************************************/
/* Define shared macros for the event and dialog handlers. This macro
definition ensures that all handlers are given the same interface.
*/
#define EVENT_HANDLER( Name ) \
static int Name( tBookMfwEvent Event, tBookMfwWin *Window )
#define DIALOG_FUNCTION( Name ) \
static void Name( tBookMfwHnd win, USHORT event, SHORT value, void *parameter )
/*******************************************************************************
Function Prototypes
*******************************************************************************/
/* We have a pair of menu area definitions which must be used in
the phone book, these are defined once in this module and then
shared between all of the phone book modules.
*/
MfwRect MmiBookMenuArea( void );
MfwRect MmiBookNamesArea( void );
/* Similarly for the shared call list buffer
*/
void *MmiBookCallList( int index );
int MmiBookCallListSize( int index );
/* and menu attributes
*/
MfwMnuAttr *MmiBookMenuDetailsList( void );
/* Helper functions
*/
void MmiBookShowDefault( void );
/* Text message handling functions
*/
int MmiBookCurrentText( void );
void MmiBookSetCurrentText( int pstr );
/* Menu structure access routines
*/
#ifdef MMI_EM_ENABLED
MfwMnuAttr *EngModeAttributes( void );/*MC, SPR1209 engineering mode menu*/
#endif
MfwMnuAttr *bookOwnNumberMenuAttributes( void );
MfwMnuItem *bookOwnNumberMenuItems( void );
MfwMnuAttr *bookPhonebookMenuAttributes( void );
MfwMnuItem *bookPhonebookMenuItems( void );
MfwMnuAttr *bookRepRedOptionsMenuAttributes( void );
MfwMnuItem *bookRepRedOptionsMenuItems( void );
MfwMnuAttr *bookNameMenuAttributes( void );
MfwMnuItem *bookNameMenuItems( void );
MfwMnuAttr *bookUPNMenuAttributes( void );/*MC SPR 1327*/
MfwMnuAttr *bookMainMenuAttributes( void );
MfwMnuAttr *bookCallBarringMenuAttributes( void );
MfwMnuItem *bookMainMenuItems( void );
MfwMnuAttr *calcOptionMenuAttributes( void );
MfwMnuItem *calcOptionMenuItems( void );
MfwMnuAttr *MelgenOptionMenuAttributes( void );
MfwMnuItem *MelgenOptionMenuItems( void );
MfwMnuAttr *ringerVolumeSetting( void );
#ifdef MMI_WAP_ENABLED
MfwMnuAttr *WAPMenuAttributes(void);
MfwMnuItem *WAPMenuItems(void);
MfwMnuAttr *WAPBookOptMenuAttributes(void);
MfwMnuItem *WAPBookOptMenuItems(void);
MfwMnuAttr *WAPHistOptMenuAttributes(void);
MfwMnuItem *WAPHistOptMenuItems(void);
MfwMnuAttr *WAPProfOptionsAttributes(void);
MfwMnuItem *WAPProfOptionsItems(void);
MfwMnuAttr *WAPGoToAttributes(void);
MfwMnuItem *WAPGoToItems(void);
MfwMnuAttr *WAPConnectionTypeAttributes(void);
MfwMnuItem *WAPConnectionTypeItems(void);
MfwMnuAttr *WAPConnectionSpeedAttributes(void); /* SPR#1983 - SH */
MfwMnuItem *WAPConnectionSpeedItems(void); /* SPR#1983 - SH */
MfwMnuAttr *WAPAccessTypeAttributes(void);
MfwMnuItem *WAPAccessTypeItems(void);
MfwMnuAttr *WAPSecurityOptionAttributes(void);
MfwMnuItem *WAPSecurityOptionItems(void);
MfwMnuAttr *WAPSaveHistoryAttributes(void);
MfwMnuItem *WAPSaveHistoryItems(void);
MfwMnuAttr *WAPScaleImagesAttributes(void);
MfwMnuItem *WAPScaleImagesItems(void);
MfwMnuAttr *WAPNewBookmarkAttributes(void); /* SPR#1983 - SH */
MfwMnuItem *WAPNewBookmarkItems(void); /* SPR#1983 - SH */
#endif // WAP
#ifdef MMI_GPRS_ENABLED
MfwMnuAttr *SMSServiceAttributes(void);
MfwMnuItem *SMSServiceItems(void);
#endif // GPRS
/* SPR#1112 - Internal phonebook menus */
#ifdef INT_PHONEBOOK
MfwMnuAttr *SelectBookAttributes(void);
MfwMnuItem *SelectBookItems(void);
#endif //INT_PHONEBOOK
/* SPR#1352 - SH - TTY */
#ifdef MMI_TTY_ENABLED
MfwMnuAttr *TTYAttributes(void);
MfwMnuItem *TTYItems(void);
#endif
/* end SH */
int MmiBook_getStoredOption( void);
/*******************************************************************************
Include Files For Phone Book Functionality
*******************************************************************************/
/* These includes need to be here as they depend on definitions
defined above.
*/
#include "MmiBookUtils.h"
#include "MmiBookServices.h"
#include "MmiBookSearchWindow.h"
#include "MmiBookMenuWindow.h"
#include "MmiBookDetailsWindow.h"
/* SPR#1428 - SH - New Editor changes: BookInputWindow is no longer required */
#ifndef NEW_EDITOR
#include "MmiBookInputWindow.h"
#endif /* NEW_EDITOR */
#include "MmiBookCallListWindow.h"
#include "MmiBookCallDetailsWindow.h"
#include "MmiBookSDNWindow.h"
#include "MmiBookPhonebook.h"
#include "MmiMenu.h"
/*******************************************************************************
End of File
*******************************************************************************/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -