/***************************************************************************** * FUNCTION * mmi_rmgr_entry_main * DESCRIPTION * Entry function of the rights manager main screen * PARAMETERS * void * RETURNS * void *****************************************************************************/ static void mmi_rmgr_entry_main(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U16 ItemList[MAX_SUB_MENUS]; U16 ItemIcons[MAX_SUB_MENUS]; U8 *hints[MAX_SUB_MENUS]; U16 nItems; U8 *guiBuffer; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ EntryNewScreen(SCR_ID_RMGR_MAIN, NULL, mmi_rmgr_entry_main, NULL); if (g_mmi_rmgr_switch_cermgr) { mmi_frm_unhide_menu_item(MENU_ID_RMGR_CERMGR); } else { mmi_frm_hide_menu_item(MENU_ID_RMGR_CERMGR); } nItems = GetNumOfChild_Ext(MENU_ID_RMGR); GetSequenceStringIds_Ext(MENU_ID_RMGR, ItemList); GetSequenceImageIds_Ext(MENU_ID_RMGR, ItemIcons); SetParentHandler(MENU_ID_RMGR); ConstructHintsList(MENU_ID_RMGR, (U8 **) hints); RegisterHighlightHandler(mmi_rmgr_highlight_hdlr); guiBuffer = GetCurrGuiBuffer(SCR_ID_RMGR_MAIN); ShowCategory52Screen( STR_ID_RMGR, GetRootTitleIcon(MAIN_MENU_SERVICES_MENUID), STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nItems, ItemList, ItemIcons, 0, 0, mmi_rmgr_p->rmgr_sel_idx, guiBuffer); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); SetDelScrnIDCallbackHandler(SCR_ID_RMGR_LIST_RO_MAIN, (HistoryDelCBPtr)DRM_free_ro_list); }
/***************************************************************************** * FUNCTION * EntryScrGPRSCounter * DESCRIPTION * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void EntryScrGPRSCounter(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ U16 nStrItemList[MAX_SUB_MENUS]; /* Stores the strings id of submenus returned */ U8 *guiBuffer; /* Buffer holding history data */ U16 nNumofItem; /* Stores no of children in the submenu */ // U16 nDispAttribute; /* Stores display attribue */ U8 *u8GPRSCount[MAX_SUB_MENUS]; /* sms counters for display hint popups */ /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* Call Exit Handler */ EntryNewScreen(SCR8004_GPRS_COUNTER, NULL, EntryScrGPRSCounter, NULL); /* Get current screen to gui buffer for history purposes */ guiBuffer = GetCurrGuiBuffer(SCR8004_GPRS_COUNTER); /* Retrieve no of child of menu item to be displayed */ nNumofItem = GetNumOfChild(MENU_CALL_HISTORY_GPRSCOUNTER); /* Get attribute of menu to be displayed */ /* nDispAttribute = GetDispAttributeOfItem( MENU_CALL_HISTORY_GPRSCOUNTER ); */ /* Retrieve string ids in sequence of given menu item to be displayed */ GetSequenceStringIds(MENU_CALL_HISTORY_GPRSCOUNTER, nStrItemList); /* Set current parent id */ SetParentHandler(MENU_CALL_HISTORY_GPRSCOUNTER); /* Register highlight handler to be called in menu screen */ RegisterHighlightHandler(ExecuteCurrHiliteHandler); /* construct hint popups for the menu items */ ConstructHintsList(MENU_CALL_HISTORY_GPRSCOUNTER, u8GPRSCount); /* Display Category52 Screen */ ShowCategory52Screen( STR_GPRS_CAPTION, IMG_SCR8056_CAPTION, 0, 0, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nNumofItem, nStrItemList, (U16*) gIndexIconsImageList, u8GPRSCount, 0, 0, guiBuffer); /* Register left arrow key */ SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); /* Register function with left/right softkey */ SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); return; }
/************************************************************** FUNCTION NAME : EntryCHISTResetCallLog PURPOSE : Entry function of reset calls. INPUT PARAMETERS : nil OUTPUT PARAMETERS : nil RETURNS : void **************************************************************/ void EntryCHISTResetCallLog( void ) { //U16 nDispAttribute; /* Stores display attribue */ U8* guiBuffer; /* Buffer holding history data */ U16 nStrItemList[MAX_SUB_MENUS];/* Stores the strings id of submenus returned */ U16 nNumofItem; /* Stores no of children in the submenu*/ U16 ItemIcons[MAX_SUB_MENUS]; U8* PopUpList[MAX_SUB_MENUS]; /* Call Exit Handler*/ #ifdef __MMI_CH_NUMERIC_LIST_ICON__ EntryNewScreen(SCR_CALLHISTORY_RESETCALL, wgui_restore_list_menu_slim_style, EntryCHISTResetCallLog, NULL); #else EntryNewScreen(SCR_CALLHISTORY_RESETCALL, NULL, EntryCHISTResetCallLog, NULL); #endif /* Get current screen to gui buffer for history purposes*/ guiBuffer = GetCurrGuiBuffer( SCR_CALLHISTORY_RESETCALL); /* Retrieve no of child of menu item to be displayed */ nNumofItem = GetNumOfChild( MENU8113_CALLHISTORY_RESETCALL ); /* Get attribute of menu to be displayed */ //nDispAttribute = GetDispAttributeOfItem( MENU8113_CALLHISTORY_RESETCALL ); /* Retrieve string ids in sequence of given menu item to be displayed */ GetSequenceStringIds( MENU8113_CALLHISTORY_RESETCALL, nStrItemList ); GetSequenceImageIds( MENU8113_CALLHISTORY_RESETCALL, ItemIcons ); /* Set current parent id*/ SetParentHandler( MENU8113_CALLHISTORY_RESETCALL ); /* Register highlight handler to be called in menu screen */ RegisterHighlightHandler( ExecuteCurrHiliteHandler ); /* Construct the hint handler for the menu items */ ConstructHintsList(MENU8113_CALLHISTORY_RESETCALL, PopUpList); #ifdef __MMI_CH_NUMERIC_LIST_ICON__ wgui_override_list_menu_slim_style(WGUI_LIST_MENU_SLIM_STYLE_NUMBER); #endif /* Display the screen for the reset call logs */ ShowCategory52Screen( STR_MENU8113_CALLHISTORY_RESETCALL, IMG_SCR8056_CAPTION, STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nNumofItem, nStrItemList, ItemIcons, ( U8 * * ) PopUpList, 0, 0,guiBuffer ); /* Register function with right softkey */ SetKeyHandler( GoBackHistory,KEY_LEFT_ARROW, KEY_EVENT_DOWN); SetRightSoftkeyFunction( GoBackHistory, KEY_EVENT_UP ); return; }
/***************************************************************************** * FUNCTION * EntryCHISTMainMenu * DESCRIPTION * Main screen of call history * NA * * PARAMETERS * void * RETURNS * void *****************************************************************************/ void EntryCHISTMainMenu(void) { /*----------------------------------------------------------------*/ /* Local Variables */ /*----------------------------------------------------------------*/ // U16 nDispAttribute; /* Stores display attribue */ U8 *guiBuffer; /* Buffer holding history data */ U16 nStrItemList[MAX_SUB_MENUS]; /* Stores the strings id of submenus returned */ U16 nNumofItem; /* Stores no of children in the submenu */ U16 ItemIcons[MAX_SUB_MENUS]; U8 *PopUpList[MAX_SUB_MENUS]; U16 LSKStr; U16 LSKImg; /*----------------------------------------------------------------*/ /* Code Body */ /*----------------------------------------------------------------*/ /* S32 maskingByte=-1; S32 menuItemId=-1; */ #ifdef __MMI_UI_SMALL_SCREEN_SUPPORT__ if (mmi_is_redrawing_bk_screens() == TRUE) { return; } #endif /* __MMI_UI_SMALL_SCREEN_SUPPORT__ */ /* Call Exit Handler */ #ifdef __MMI_CH_NUMERIC_LIST_ICON__ EntryNewScreen(SCR_CALL_HISTORY_MAIN_MENU, wgui_restore_list_menu_slim_style, EntryCHISTMainMenu, NULL); #else EntryNewScreen(SCR_CALL_HISTORY_MAIN_MENU, NULL, EntryCHISTMainMenu, NULL); #endif /* reset the indicies for dialed/recived/missed call list menus */ chis_p->currRecvdCallIndex = 0; chis_p->currMissedCallIndex = 0; chis_p->currDialedCallIndex = 0; /* Get current screen to gui buffer for history purposes */ guiBuffer = GetCurrGuiBuffer(SCR_CALL_HISTORY_MAIN_MENU); /* Retrieve no of child of menu item to be displayed */ nNumofItem = GetNumOfChild_Ext(MAIN_MENU_CALL_HISTORY); /* diamond, 2005/07/01 add _Ext to menu item functions */ /* Get attribute of menu to be displayed */ /* nDispAttribute = GetDispAttributeOfItem( MAIN_MENU_CALL_HISTORY ); */ /* Retrieve string/image ids in sequence of given menu item to be displayed */ GetSequenceStringIds_Ext(MAIN_MENU_CALL_HISTORY, nStrItemList); /* diamond, 2005/07/01 add _Ext to menu item functions */ GetSequenceImageIds_Ext(MAIN_MENU_CALL_HISTORY, ItemIcons); /* diamond, 2005/07/01 add _Ext to menu item functions */ /* Set current parent id */ SetParentHandler(MAIN_MENU_CALL_HISTORY); /* Register highlight handler to be called in menu screen */ RegisterHighlightHandler(ExecuteCurrHiliteHandler); /* diamond, 2005/07/01 removed for new menu item architecture to CPHS */ #if 0 /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ /* under construction !*/ #endif /* 0 */ /* construct hint popup strings for menu items */ ConstructHintsList(MAIN_MENU_CALL_HISTORY, PopUpList); #ifdef __MMI_CH_NUMERIC_LIST_ICON__ wgui_override_list_menu_slim_style(WGUI_LIST_MENU_SLIM_STYLE_NUMBER); #endif /* MTK Leo add, mini_tab_bar */ #ifdef __MMI_WGUI_MINI_TAB_BAR__ wgui_enable_mini_tab_bar(MAIN_MENU_CALL_HISTORY); #endif /* MTK Leo end */ /* There may be no menu items in call log */ if (nNumofItem == 0) { LSKStr = 0; LSKImg = 0; } else { LSKStr = STR_GLOBAL_OK; LSKImg = IMG_GLOBAL_OK; } /* Display the call history main screen */ ShowCategory52Screen( #ifdef __MMI_DUAL_SIM_MASTER__ STRING_MTPNP_CARD1_CALL_HISTORY, #else /* __MMI_DUAL_SIM_MASTER__ */ STR_SCR_CALL_HISTORY_MAIN_MENU_CAPTION, #endif /* __MMI_DUAL_SIM_MASTER__ */ IMG_SCR_CALL_HISTORY_MAIN_MENU_CAPTION, LSKStr, LSKImg, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, nNumofItem, nStrItemList, ItemIcons, (U8 **)PopUpList, 0, 0, /* u16callhist_curindex, */ guiBuffer); /* Register function with right softkey */ SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN); SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP); return; }