/*****************************************************************************
* FUNCTION
*	EntrySpofEdit
* DESCRIPTION
*   Entry function of inline editor screen of schedule power on off
* PARAMETERS
*	None.
* RETURNS
*	None.
* GLOBALS AFFECTED
*	None
*****************************************************************************/
void EntrySpofEdit(void)
{
	U8* guiBuffer;
	U8* inputBuffer;			//added for inline edit history
	U16 inputBufferSize;		//added for inline edit history
	U16 spof_icon_list[] = {SPOF_SETTING_STATUS_IMAGEID, 0, SPOF_TYPEPOWERON_IMAGEID,	IMG_TIME};

	EntryNewScreen(SCR_ID_SPOF_EDITOR, ExitSpofEdit, NULL, NULL);
	guiBuffer = GetCurrGuiBuffer(SCR_ID_SPOF_EDITOR);
	InitializeCategory57Screen();
	SpofFillInlineEditStruct();

	inputBuffer = GetCurrNInputBuffer (SCR_ID_SPOF_EDITOR, &inputBufferSize );    //added for inline edit history
	if(inputBuffer != NULL)
		SetCategory57Data(wgui_inline_items, NUM_ITEM_EDIT_SCREEN, inputBuffer);

	RegisterHighlightHandler(HighlightSPOFInlineItem);
	ShowCategory57Screen(SPOF_EDIT_TITLE_STRINGID,IMG_SCR_SETTING_CAPTION,
		STR_GLOBAL_OK,IMG_GLOBAL_OK,STR_GLOBAL_BACK, 
		IMG_GLOBAL_BACK,NUM_ITEM_EDIT_SCREEN,spof_icon_list,
		wgui_inline_items,0,guiBuffer);

	DisableCategory57ScreenDone();

	SetCategory57RightSoftkeyFunctions(SpofSaveData,GoBackHistory);
}
Beispiel #2
0
/*****************************************************************************

	FUNCTION NAME		: Draw_MobileEdenScreen

  PURPOSE	:draw Level1.
	INPUT PARAMETERS	: void
	OUTPUT PARAMETERS	: void

	RETURNS				:



                         Entry_MobileEden   Entry_SP_Level1  SP_Pre_Entry_Level2
                              |                   |             |
                              |    /Level1/       | /Level2/    |
              Mobile Paradise |        |          |    |        |
                              ->New Style World        |        |
                                                ---->Joke
                                                           -------->Request
                                                           -------->Price Explanation
                                                      ...

                           <-----              <-----
                   SP_EDEN_GoBackHistory  SP_Level1_GoBackHistory

******************************************************************************/
void Draw_MobileEdenScreen(void)
{
    U16 nStrItemList[5];
    U16 nTempStrItemList[5];
    int i = 0;
    U16 nNumofItem = 0; 	 /* Stores no of children in the submenu*/
    U8* guiBuffer = NULL;		 /* Buffer holding history data */


    mmi_trace(g_sw_SP,"niej Draw_MobileEdenScreen");

    EntryNewScreen(SCR_SP_MOBILE_EDEN, NULL, Draw_MobileEdenScreen, NULL);

    guiBuffer = GetCurrGuiBuffer(SCR_SP_MOBILE_EDEN);
    GetSequenceStringIds_Ext(MENU_ID_SP_MOBILE_EDEN,nTempStrItemList);
    /*in the submenu of MENU_ID_SP_MOBILE_EDEN,
    the first 3 items support China Telecom, the last item support China Unicom*/

    if(sp_network_name == SP_NETWORK_CU)
    {
        mmi_trace(g_sw_SP,"niej sp_network_name is SP_NETWORK_CU");
        nNumofItem = 1;
        nStrItemList[0] = nTempStrItemList[3];
        // SetLeftSoftkeyFunction(Entry_Fun_Interact_CU,KEY_EVENT_UP);
    }
    else if (sp_network_name == SP_NETWORK_CT)
    {
        mmi_trace(g_sw_SP,"niej sp_network_name is SP_NETWORK_CT nNumofItem[%d]", nNumofItem);
        nNumofItem = 3;
        for(i=0; i<nNumofItem; i++)
        {
            nStrItemList[i] = nTempStrItemList[i];
            mmi_trace(g_sw_SP,"niej nStrItemList[%d]:[%d]",i, nStrItemList[i]);
        }
        RegisterHighlightHandler(ExecuteCurrHiliteHandler);
    }
    else
    {
        mmi_trace(g_sw_SP,"niej sp_network_name[%d] can't support this function", sp_network_name);
    }

    SetParentHandler(MENU_ID_SP_MOBILE_EDEN);

    mmi_trace(g_sw_SP,"niej ShowCategory52Screen ");
    ShowCategory52Screen(STR_MOBILE_EDEN,MAIN_MENU_TITLE_FUNANDGAMES_ICON,
                         STR_GLOBAL_OK, IMG_GLOBAL_OK,
                         STR_GLOBAL_BACK, IMG_GLOBAL_BACK,
                         nNumofItem,nStrItemList,(PU16)gIndexIconsImageList,
                         NULL,
                         0,0,guiBuffer);

    if(sp_network_name == SP_NETWORK_CU)
    {
        SetLeftSoftkeyFunction(Entry_Fun_Interact_CU,KEY_EVENT_UP);
    }

    SetRightSoftkeyFunction(SP_EDEN_GoBackHistory,KEY_EVENT_UP);
    SetKeyHandler(SP_EDEN_GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);

}
Beispiel #3
0
/*****************************************************************************

	FUNCTION NAME		: Entry_SP_Level2

  PURPOSE	: From level2 go to next screen .
            SP_Pre_Entry_Level2 will do some preparation for SP_Pre_Entry_Level2.

	INPUT PARAMETERS	: void
	OUTPUT PARAMETERS	: void

	RETURNS				:



                         Entry_MobileEden   Entry_SP_Level1  SP_Pre_Entry_Level2
                              |                   |             |
                              |    /Level1/       | /Level2/    |
              Mobile Paradise |        |          |    |        |
                              ->New Style World        |        |
                                                ---->Joke
                                                           -------->Request
                                                           -------->Price Explanation
                                                      ...

                           <-----              <-----
                    SP_EDEN_GoBackHistory  SP_Level1_GoBackHistory

******************************************************************************/
void Entry_SP_Level2(void)
{
    U16 nStrItemList[SP_MAX_SUB_MENUS]; /* Stores the strings id of submenus returned */
    U16 nNumofItem = 0; 	 /* Stores no of children in the submenu*/
    U8* guiBuffer = NULL;		 /* Buffer holding history data */

    U16 ScrId = sp_level1_scr.sp_scr_id+sp_level_2_index+1;
    U16 MenuId = sp_level1_scr.sp_menu_id+sp_level_2_index+1;

    EntryNewScreen(ScrId, NULL, Entry_SP_Level2, NULL);

    guiBuffer = GetCurrGuiBuffer(ScrId);
    nNumofItem = GetNumOfChild(MenuId);
    GetSequenceStringIds_Ext(MenuId, nStrItemList);

    SetParentHandler(MenuId);
    RegisterHighlightHandler(ExecuteCurrHiliteHandler);
    ShowCategory52Screen(GetStringIdOfItem(MenuId),
                         MAIN_MENU_TITLE_FUNANDGAMES_ICON,
                         STR_GLOBAL_OK, IMG_GLOBAL_OK,
                         STR_GLOBAL_BACK, IMG_GLOBAL_BACK,
                         nNumofItem,nStrItemList,(PU16)gIndexIconsImageList,
                         NULL,
                         0,0,guiBuffer);

    SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
    SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);

}
Beispiel #4
0
/*****************************************************************************

	FUNCTION NAME		: void Entry_SP_Level1(void)

  PURPOSE		: From level1 go to next screen .
              The association between entry function and menu as following

                         Entry_MobileEden   Entry_SP_Level1  SP_Pre_Entry_Level2
                              |                   |             |
                              |    /Level1/       | /Level2/    |
              Mobile Paradise |                   |             |
                              ->New Style World                 |
                                                ---->Joke
                                                           -------->Request
                                                           -------->Price Explanation
                                                      ...
                          <-----              <-----
                   SP_EDEN_GoBackHistory  SP_Level1_GoBackHistory

              eg. when into Mobile Paradise ->New Style World->, this function will be
                  called.

	INPUT PARAMETERS	: void

	OUTPUT PARAMETERS	: void

	RETURNS				: void



******************************************************************************/
void Entry_SP_Level1(void)
{
    U16 nStrItemList[SP_MAX_SUB_MENUS]; /* Stores the strings id of submenus returned */
    U16 nNumofItem; 	 /* Stores no of children in the submenu*/
    U8* guiBuffer;		 /* Buffer holding history data */
    mmi_trace(g_sw_SP,"niej Entry_SP_Level1 sp_level1_scr.sp_scr_id[%d],sp_level1_scr.sp_menu_id[%d]",
              sp_level1_scr.sp_scr_id, sp_level1_scr.sp_menu_id);

    EntryNewScreen(sp_level1_scr.sp_scr_id, NULL, Entry_SP_Level1, NULL);

    guiBuffer = GetCurrGuiBuffer(sp_level1_scr.sp_scr_id);

    nNumofItem = GetNumOfChild(sp_level1_scr.sp_menu_id);
    GetSequenceStringIds_Ext(sp_level1_scr.sp_menu_id, nStrItemList);
    SetParentHandler(sp_level1_scr.sp_menu_id);

    RegisterHighlightHandler (SP_Level_2_Get_Index);
    ShowCategory52Screen(GetStringIdOfItem(sp_level1_scr.sp_menu_id),
                         MAIN_MENU_TITLE_FUNANDGAMES_ICON,
                         STR_GLOBAL_OK, IMG_GLOBAL_OK,
                         STR_GLOBAL_BACK, IMG_GLOBAL_BACK,
                         nNumofItem,nStrItemList,(PU16)gIndexIconsImageList,
                         NULL,
                         0,0,guiBuffer);

    SetLeftSoftkeyFunction (SP_Pre_Entry_Level2, KEY_EVENT_UP);
    SetKeyHandler (SP_Pre_Entry_Level2, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);

    SetRightSoftkeyFunction(SP_Level1_GoBackHistory,KEY_EVENT_UP);
    SetKeyHandler(SP_Level1_GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);

}
Beispiel #5
0
/**************************************************************

	FUNCTION NAME		: EntryCALLSETBarringOption(void)

  	PURPOSE				: entry function for call barring option menu

	INPUT PARAMETERS	: nil

	OUTPUT PARAMETERS	: nil

	RETURNS				: void

 

**************************************************************/
void EntryCALLSETBarringOption(void)
{
//micha1229
//	U16 nDispAttribute;  /* Stores display attribue */
	U8* guiBuffer;		/* Buffer holding history data */
	U16 nNumofItem;
	U16 nStrItemList[MAX_SUB_MENUS];

	EntryNewScreen(SCR_ID_CALLSET_BARRING_OPTION, NULL, EntryCALLSETBarringOption, NULL);
	
	/* Get current screen info into gui buffer  for history purposes*/
	guiBuffer = GetCurrGuiBuffer(SCR_ID_CALLSET_BARRING_OPTION);	
	/* Retrieve no of child of menu item to be displayed */
	nNumofItem = GetNumOfChild(MENU_BARRING_OPTION);
	/* Get attribute of menu to be displayed */
//	nDispAttribute = GetDispAttributeOfItem(MENU_BARRING_OPTION);
	/* Retrieve string ids in sequence of given menu item to be displayed */
	GetSequenceStringIds(MENU_BARRING_OPTION, nStrItemList);
	/* Set current parent id*/
	SetParentHandler(MENU_BARRING_OPTION	);
	/* Register highlight handler to be called in menu screen */
	RegisterHighlightHandler(ExecuteCurrHiliteHandler);
	/* Display Category Screen */
	ShowCategory15Screen(	STR_MENU_BARRING_OPTION, MAIN_MENU_TITLE_SETTINGS_ICON,
						  STR_GLOBAL_OK, IMG_GLOBAL_OK,
						  STR_GLOBAL_BACK, IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
						  (U16 *)gIndexIconsImageList,1,0,guiBuffer);
	/* Register function with right softkey */
	SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
	SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
	/* Register Exit handler */
	return;
}
Beispiel #6
0
/*****************************************************************************
* FUNCTION
*	EntryBMIInputScreen
* DESCRIPTION
*   Display inline editor screen for entering gender, height, and weight
* PARAMETERS
*	None
* RETURNS
*	None
* GLOBALS AFFECTED
*	None
*****************************************************************************/
void EntryBMIInputScreen(void) 
{
	U8 *guiBuffer;
	U8* inputBuffer;                       //added for inline edit history
	U16 inputBufferSize;                //added for inline edit history
	U16 BMIImageList[6] = {0,0,0,0,0,0};

	//to malloc memory
	if(g_bmi_cntx == NULL)
	{
		g_bmi_cntx = OslMalloc(sizeof(bmi_context_struct));
		memset(g_bmi_cntx, 0, sizeof(bmi_context_struct));
	}		
	//
	
	EntryNewScreen(SCR_BMI_INPUT, ExitBMIInputScreen, NULL, NULL);
	SetDelScrnIDCallbackHandler(SCR_BMI_INPUT, (HistoryDelCBPtr)BmiExit);

	InitializeCategory57Screen();							

	guiBuffer = GetCurrGuiBuffer(SCR_BMI_INPUT);

	BMIFillInlineStruct();

	RegisterHighlightHandler(HighlightBMIInlineEditor);

	if(g_bmi_cntx->Gender == 0)
		BMIImageList[ENUM_GENDER] = IMG_BMI_BLUE_FLOWER;
	else
		BMIImageList[ENUM_GENDER] = IMG_BMI_RED_FLOWER;

	inputBuffer = GetCurrNInputBuffer(SCR_BMI_INPUT, &inputBufferSize);    //added for inline edit history
	
	if(inputBuffer!=NULL)                                            //added for inline edit history
		SetCategory57Data(wgui_inline_items, ENUM_INLINE_TOTAL, inputBuffer);//sets the data 

 	DisableCategory57ScreenDone();
 	
 	#ifdef __MMI_SLIM_LISTMENU_NUMBER__ 
 		wgui_override_list_menu_slim_style(WGUI_LIST_MENU_SLIM_STYLE_DRAW_ICON);
 	#endif
 
	 
 	//Category57AppendTopImage(IMG_BMI_WELCOME_SCREEN, TRUE);
 	 
	ShowCategory57Screen(STR_BMI_INPUT_CAPTION,GetRootTitleIcon(ORGANIZER_HEALTH_MENU), 
	                     STR_GLOBAL_OK, IMG_GLOBAL_OK, 
	                     STR_GLOBAL_BACK, IMG_GLOBAL_BACK, 
						 ENUM_INLINE_TOTAL, 
						 BMIImageList,
						 wgui_inline_items, 
						 g_bmi_cntx->CurrHilite, 
						 guiBuffer);
 
	SetCategory57RightSoftkeyFunctions(BmiComputeResult, GoBackHistory);

}
Beispiel #7
0
/*****************************************************************************
 * 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);
}
Beispiel #8
0
/*****************************************************************************
 * FUNCTION
 *  mmi_netset_entry_user_ctrl_plmn_options
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_netset_entry_user_ctrl_plmn_options(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    PU8 guiBuffer;
    U16 nStrItemList[2];    /* Stores the strings id of submenus returned */
    U16 nNumofItem;         /* Stores no of children in the submenu */
    U16 ItemIcons[2];

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_ID_NETSET_USER_CTRL_PLMN_OPTIONS, NULL, mmi_netset_entry_user_ctrl_plmn_options, NULL);

    guiBuffer = GetCurrGuiBuffer(SCR_ID_NETSET_USER_CTRL_PLMN_OPTIONS);
    nNumofItem = GetNumOfChild(MENU_ID_NETSET_USER_CTRL_PLMN_OPTIONS);

    ItemIcons[0] = IMG_GLOBAL_L1;
    ItemIcons[1] = IMG_GLOBAL_L2;

    GetSequenceStringIds(MENU_ID_NETSET_USER_CTRL_PLMN_OPTIONS, nStrItemList);
    SetParentHandler(MENU_ID_NETSET_USER_CTRL_PLMN_OPTIONS);
    RegisterHighlightHandler(mmi_netset_exec_options_highlight_handler);

    if (gUserCtrlPlmnList.PlmnListSize == 0)
    {
        nNumofItem = 1;
    }
    else if (gUserCtrlPlmnList.PlmnListSize == MAX_USER_CTRL_PLMN)
    {
        nNumofItem = 1;
        nStrItemList[0] = nStrItemList[1];
    }
    else
    {
        /* keep 2 items */
    }

    ShowCategory15Screen(
        STR_GLOBAL_OPTIONS,
        MAIN_MENU_TITLE_SETTINGS_ICON,
        STR_GLOBAL_OK,
        IMG_GLOBAL_OK,
        STR_GLOBAL_BACK,
        IMG_GLOBAL_BACK,
        nNumofItem,
        nStrItemList,
        ItemIcons,
        LIST_MENU,
        0,
        guiBuffer);

    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
    SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
/*****************************************************************************
 * FUNCTION
 *  mmi_vrsdscut_entry_tag_option
 * DESCRIPTION
 *  This function is just for template.
 * PARAMETERS
 *  void
 *  a(?)        [IN/OUT]        First variable, used as returns
 *  b(?)        [IN]            Second variable
 * RETURNS
 *  the description of return value, if any.(?)
 *****************************************************************************/
void mmi_vrsdscut_entry_tag_option(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *guiBuffer;
    U16 nStrItemList[4];
    U16 nNumofItem;

    U32 HideItemId = -1;
    U32 maskingByte = -1;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_ID_VRSD_SHORTCUT_OPTION, NULL, mmi_vrsdscut_entry_tag_option, NULL);
   
    guiBuffer = GetCurrGuiBuffer(SCR_ID_VRSD_SHORTCUT_OPTION);
    SetParentHandler(MENU_ID_VRSD_SHORTCUT_MAIN_MENU);
    RegisterHighlightHandler(ExecuteCurrHiliteHandler);

    /* Register all highlight handler again, because RsetBit() may change the highlight handler when hide menu. */
    mmi_vrsdscut_init_highlight_handler();

    mmi_frm_unhide_menu_item(MENU_ID_VRSD_SHORTCUT_MAIN_ADD);
    /* Display Change and Delete. */
    if (mmi_vrsd_util_get_tag_id(MMI_VRSD_APP_SHORTCUT, g_vrsdscut_highlight) != 0xffff)
    {
        mmi_frm_hide_menu_item(MENU_ID_VRSD_SHORTCUT_MAIN_ADD);
    }

    nNumofItem = GetNumOfChild_Ext(MENU_ID_VRSD_SHORTCUT_MAIN_MENU);
    GetSequenceStringIds_Ext(MENU_ID_VRSD_SHORTCUT_MAIN_MENU, nStrItemList);
    
    if (mmi_vrsd_util_get_tag_id(MMI_VRSD_APP_SHORTCUT, g_vrsdscut_highlight) == 0xffff)
    {
        nNumofItem = 1; /* Display add only */
    }

    ShowCategory15Screen(
        STR_ID_VRSD_SHORTCUT,
        MAIN_MENU_TITLE_MULTIMEDIA_ICON,
        STR_GLOBAL_OK,
        IMG_GLOBAL_OK,
        STR_GLOBAL_BACK,
        IMG_GLOBAL_BACK,
        nNumofItem,
        nStrItemList,
        (U16*) gIndexIconsImageList,
        LIST_MENU,
        0,
        guiBuffer);

    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
    SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
Beispiel #10
0
/*****************************************************************************
 * FUNCTION
 *  mmi_idle_entry_dial_pad_option
 * DESCRIPTION
 *  Entry function of dial pad screen option menu (only available for __MMI_UCM__)
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_idle_entry_dial_pad_option(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    PU8 guiBuffer;
    U16 nNumofItem;

#if defined(__MMI_WLAN_FEATURES__) && defined(__MMI_VOIP__)
    U16 nStrItemList[4];    /* dial, save, input method, and change dial mode */
#else 
    U16 nStrItemList[2];    /* dial and save */
#endif 

    historyNode *History;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(IDLE_SCREEN_DIGIT_OPTIONS_ID, NULL, mmi_idle_entry_dial_pad_option, NULL);
    guiBuffer = GetCurrGuiBuffer(IDLE_SCREEN_DIGIT_OPTIONS_ID);

    nNumofItem = GetNumOfChild_Ext(MENU_ID_DIALER_SCREEN_OPTIONS);
    GetSequenceStringIds_Ext(MENU_ID_DIALER_SCREEN_OPTIONS, nStrItemList);
    SetParentHandler(MENU_ID_DIALER_SCREEN_OPTIONS);

    RegisterHighlightHandler(ExecuteCurrHiliteHandler);

    ShowCategory15Screen(
        STR_GLOBAL_OPTIONS,
        0,
        STR_GLOBAL_OK,
        IMG_GLOBAL_OK,
        STR_GLOBAL_BACK,
        IMG_GLOBAL_BACK,
        nNumofItem,
        nStrItemList,
        (PU16) gIndexIconsImageList,
        LIST_MENU,
        0,
        guiBuffer);

    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
    SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);

    /* reset the guiBuffer to enable long press after go back to the digit dialer screen */
    if (GetHistoryScrID(IDLE_SCREEN_DIGIT_HANDLER_ID, &History) == ST_SUCCESS)
    {
        if (History->guiBuffer != NULL)
        {
            OslMfree(History->guiBuffer);
            History->guiBuffer = NULL;
        }
    }
}
Beispiel #11
0
/*****************************************************************************
 * 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;
}
Beispiel #12
0
/**************************************************************

	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;
}
static void avk_framework_entry_list_scr_ext(mmi_scrn_essential_struct* data)
{
    MMI_BOOL enter_ret;
    
    U16 index_num = 0;
    U8 *guiBuffer;
    U8 *itemlist[AVK_FRAMEWORK_MAX_LIST_NUM];
    avk_test_case* test_case,*item;
    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    item = (avk_test_case*)data->user_data;
    g_avk_framework_ctx.item = item;
    test_case = item->first_child;
    while (test_case && AVK_FRAMEWORK_IS_ITEM(test_case))
    {
        itemlist[index_num++] = (U8*)test_case->test_name;
        test_case=test_case->next;
    }

    enter_ret = mmi_frm_scrn_enter(GRP_ID_AVK, data->scrn_id, 
                    (FuncPtr)NULL, (FuncPtr)avk_framework_entry_list_scr_ext, MMI_FRM_FULL_SCRN);

    if (enter_ret == MMI_FALSE)
    {
        return;
    }

    guiBuffer = mmi_frm_scrn_get_active_gui_buf();        /* get current guibuffer */

    mmi_frm_scrn_set_leave_proc(GRP_ID_AVK, data->scrn_id, avk_framework_leave_scr);
    
    RegisterHighlightHandler(avk_framework_highlight);    /* register highlight handler */

    
    
    /* show category */
    ShowCategory36Screen_ext(
        (U8*)item->test_name,
        0,
        (U8*)get_string(STR_GLOBAL_OK),
        get_image(IMG_GLOBAL_OK),
        (U8*)get_string(STR_GLOBAL_BACK),
        get_image(IMG_GLOBAL_BACK),
        index_num,
        itemlist,
        0,
        guiBuffer);

    AVK_FRAMEWORK_SET_GOBACK;
}
Beispiel #14
0
/**************************************************************

	FUNCTION NAME		: EntrySECSETFDNDetails(void)
  	PURPOSE				: Entry screen to add FDL entry.
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void EntrySECSETFDNDetails(void)
{
	U16 nNumofItem;      /* Stores no of children in the submenu*/
//micha1229
//	U16 nDispAttribute;  /* Stores display attribue */
	U8* guiBuffer;       /* Buffer holding history data */
	U16	ItemIcons[2];
	U8* inputBuffer;                       //added for inline edit history
	U16 inputBufferSize;                //added for inline edit history
	mmi_trace(1, TSTXT("EntrySECSETFDNDetails"));
	if((gpFDLBDLContext->FDNBDNCount == (U16)gpFDLBDLContext->MaxFDL ||gpFDLBDLContext->FDNBDNCount == MAX_SIM_ENTRIES)  &&( gpFDLBDLContext->FDNBDNEdit == FALSE))
	{
		DisplayPopup((U8*)GetString(STR_SETTING_STORAGE_FULL),IMG_GLOBAL_WARNING,0,ST_NOTIFYDURATION,(U8)WARNING_TONE);
	}
	else
	{
		EntryNewScreen(SCR_ID_SECSET_FDN_DETAILS, ExitSECSETFDNDetails, NULL, NULL);

		guiBuffer = GetCurrGuiBuffer(SCR_ID_SECSET_FDN_DETAILS);
		inputBuffer = GetCurrNInputBuffer ( SCR_ID_SECSET_FDN_DETAILS, &inputBufferSize );    //added for inline edit history

		nNumofItem = GetNumOfChild(MENU8234_FDL_VIEW_OPTIONS_ADD);
		
//		nDispAttribute = GetDispAttributeOfItem(MENU8234_FDL_VIEW_OPTIONS_ADD);

		GetSequenceImageIds(MENU8234_FDL_VIEW_OPTIONS_ADD,ItemIcons);

		InitializeCategory57Screen();
		RegisterHighlightHandler(mmi_EntrySECSETFDNDetails_hdlr);

		FillFdlInlineEditStruct();

		if(inputBuffer!=NULL)                                            //added for inline edit history
			SetCategory57Data(gpFDLBDLContext->FDLBDLInlineDisplay, nNumofItem, inputBuffer);//sets the data 

		ShowCategory57Screen(STR_SETTING_FDL_EDIT_ENTRY,MAIN_MENU_TITLE_SETTINGS_ICON,
							STR_EDIT,IMG_GLOBAL_OK,
							STR_DONE, IMG_GLOBAL_BACK,
							nNumofItem,ItemIcons,gpFDLBDLContext->FDLBDLInlineDisplay,
							0,guiBuffer);
	#if defined(__MMI_GB__)
		mmi_frm_set_highlight_handler();
		GBSetInputboxLSKFunction(EntryScrForInputMethodAndDone); 
	#endif
		SetCategory57RightSoftkeyFunctions( PreNewFdlEntryReq, GoBackHistory);
		mmi_trace(1, TSTXT("SCR_ID_SECSET_FDN_DETAILS"));
	}
}
Beispiel #15
0
void EntryCALLSETBarringIn(void)
{
//micha1229
//	U16 nDispAttribute;  /* Stores display attribue */
	U8* guiBuffer;		/* Buffer holding history data */
	U16 nNumofItem;
	U16 nStrItemList[MAX_SUB_MENUS];
	/*U32 maskingByte=0xFFFFFFFF;
	U32 menuItemId=0xFFFFFFFF;*/

	EntryNewScreen(SCR_ID_CALLSET_BARRING_IN, NULL, EntryCALLSETBarringIn, NULL);

	/* Get current screen info into gui buffer  for history purposes*/
	guiBuffer = GetCurrGuiBuffer(SCR_ID_CALLSET_BARRING_IN);	
	/* Retrieve no of child of menu item to be displayed */
	nNumofItem = GetNumOfChild_Ext(MENU_CALL_BARRING_INCOMING);  
	/* Get attribute of menu to be displayed */
//	nDispAttribute = GetDispAttributeOfItem(MENU8237_SCR8093_MNGCALL_MENU_BARRING);
	/* Retrieve string ids in sequence of given menu item to be displayed */
	GetSequenceStringIds_Ext(MENU_CALL_BARRING_INCOMING, nStrItemList);  
	/* Set current parent id*/
	SetParentHandler(MENU_CALL_BARRING_INCOMING);
	/* Register highlight handler to be called in menu screen */
	RegisterHighlightHandler(ExecuteCurrHiliteHandler);

 
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif /* 0 */

	/* Display Category Screen */
	ShowCategory15Screen(STR_MENU_BARRING_INCOMING_MAIN, MAIN_MENU_TITLE_SETTINGS_ICON,
						  STR_GLOBAL_OK , IMG_GLOBAL_OK,
						  STR_GLOBAL_BACK, IMG_GLOBAL_BACK,nNumofItem, nStrItemList,
						  (U16 *)gIndexIconsImageList,1,0,guiBuffer);
	/* Register function with right softkey */
	SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
	/* Register Exit handler */
	return;
}
/*****************************************************************************
 * FUNCTION
 *  avk_framework_entry_list_scr_ext
 * DESCRIPTION
 *  test framework list screen true entry function
 * PARAMETERS
 *  data       [IN]                 
 * RETURNS
 *  void
 *****************************************************************************/
static void avk_framework_entry_setting_scr_ext(mmi_scrn_essential_struct* data)
{
    MMI_BOOL enter_ret;
    
    U16 index_num = 0;
    U8 *guiBuffer;
    U8 *itemlist[AVK_FRAMEWORK_MAX_LIST_NUM];
    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/

    itemlist[index_num++] = (U8*)L"test normal";
//    itemlist[index_num++] = (U8*)L"test regressive";
    itemlist[index_num++] = (U8*)L"test abort case";
    
    enter_ret = mmi_frm_scrn_enter(GRP_ID_AVK, data->scrn_id, 
                    (FuncPtr)NULL, (FuncPtr)avk_framework_entry_setting_scr_ext, MMI_FRM_FULL_SCRN);

    if (enter_ret == MMI_FALSE)
    {
        return;
    }

    guiBuffer = mmi_frm_scrn_get_active_gui_buf();        /* get current guibuffer */

    mmi_frm_scrn_set_leave_proc(GRP_ID_AVK, data->scrn_id, avk_framework_leave_scr);
    
    RegisterHighlightHandler(avk_framework_setting_highlight);    /* register highlight handler */    
    
    /* show category */
    ShowCategory36Screen_ext(
        (U8*)L"Settings",
        0,
        (U8*)get_string(STR_GLOBAL_OK),
        get_image(IMG_GLOBAL_OK),
        (U8*)get_string(STR_GLOBAL_BACK),
        get_image(IMG_GLOBAL_BACK),
        index_num,
        itemlist,
        g_avk_framework_fw_ctx.avk_framework_test_all_type,
        guiBuffer);

    AVK_FRAMEWORK_SET_GOBACK;
}
Beispiel #17
0
/*****************************************************************************
 * FUNCTION
 *  mmi_java_entry_terminate_dialog
 * DESCRIPTION
 *  The entry function to ask user if they want to terminate/Pause Java
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_java_entry_terminate_dialog(void)  /* called by JAVA adaptor, also in mmi task */
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *guiBuffer;
    U8 *icon_items[2];
    U8 *text_items[2];

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(
        SCR_JAVA_TERMINATE_DIALOG,
        mmi_java_entry_terminate_dialog_exit,
        mmi_java_entry_terminate_dialog,
        NULL);

    guiBuffer = GetCurrGuiBuffer(SCR_JAVA_TERMINATE_DIALOG);

    RegisterHighlightHandler(mmi_java_highlight_handler);

    memset(icon_items, 0, sizeof(icon_items));

    text_items[0] = (PU8) GetString(STR_JAVA_PAUSE);
    text_items[1] = (PU8) GetString(STR_JAVA_TERMINATE);

    ShowCategory32Screen(
        format_asking_string(STR_JAVA_TERMINATE_DIALOG_TITLE),
        NULL,
        (PU8) GetString(STR_GLOBAL_OK),
        (PU8) GetImage(IMG_GLOBAL_OK),
        (PU8) GetString(STR_GLOBAL_BACK),
        (PU8) GetImage(IMG_GLOBAL_BACK),
        2,
        text_items,
        icon_items,
        0,
        0,
        guiBuffer);

    SetLeftSoftkeyFunction(mmi_java_terminate_dialog_yes_hdlr, KEY_EVENT_UP);
    SetRightSoftkeyFunction(mmi_java_terminate_dialog_no_hdlr, KEY_EVENT_UP);
}
Beispiel #18
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_address_list_entry_options
 * DESCRIPTION
 *  Entry function for Enter Address Options screen.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_address_list_entry_options(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U16* UC_list_of_items;
    U8 *guiBuffer;
    S32 num_of_items;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_ID_BRW_ENTER_ADDRESS_OPTIONS, NULL, mmi_brw_address_list_entry_options, NULL);
    guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_ENTER_ADDRESS_OPTIONS);

	/*it saves the current screen as the browser top most screen*/
	mmi_brw_set_top_screen_id();

    num_of_items = GetNumOfChild(MENU_ID_BRW_ENTER_ADR_OPTIONS);
	UC_list_of_items = OslMalloc(sizeof(U16)*num_of_items);
    GetSequenceStringIds(MENU_ID_BRW_ENTER_ADR_OPTIONS, UC_list_of_items);
    SetParentHandler(MENU_ID_BRW_ENTER_ADR_OPTIONS);
    RegisterHighlightHandler(ExecuteCurrHiliteHandler);

    ShowCategory15Screen(
        STR_GLOBAL_OPTIONS,
        GetRootTitleIcon(SERVICES_WAP_MENU_ID),
        STR_GLOBAL_OPTIONS,
        0,
        STR_GLOBAL_BACK,
        0,
        num_of_items,
        UC_list_of_items,
        (U16*) gIndexIconsImageList,
        LIST_MENU,
        0,
        guiBuffer);

	ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
    SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);

	OslMfree(UC_list_of_items);
}
Beispiel #19
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_entry_address_list
 * DESCRIPTION
 *  Entry function for enter address menu
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_entry_address_list(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *guiBuffer = NULL;
    U8 highlight_index = 0;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_ID_BRW_ENTER_ADDRESS, NULL, mmi_brw_entry_address_list, NULL);
    guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_ENTER_ADDRESS);

	/*it saves the current screen as the browser top most screen*/
	mmi_brw_set_top_screen_id();

    if (mmi_brw_address_list_get_hiliter_flag() && guiBuffer != NULL && guiBuffer[2] != 0)
    {
        guiBuffer = NULL;
        mmi_brw_address_list_set_hiliter_flag(MMI_FALSE);
        highlight_index = 1;
    }
    
	RegisterHighlightHandler(mmi_brw_address_list_scr_highlight_hdlr);

    ShowCategory184Screen(
        STR_ID_BRW_ENTER_ADDRESS,
        GetRootTitleIcon(SERVICES_WAP_MENU_ID),
        STR_GLOBAL_OK,
        0,
        STR_GLOBAL_BACK,
        0,
        g_brw_cntx.total_address_list_items + 1,
        mmi_brw_address_list_get_item,
        0,
        highlight_index,
        guiBuffer);


    SetRightSoftkeyFunction(mmi_brw_address_list_GoBackHistory, KEY_EVENT_UP);
    SetKeyHandler(mmi_brw_address_list_GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
Beispiel #20
0
/*****************************************************************************
 * FUNCTION
 *  mmi_bt_avrcp_ct_main
 * DESCRIPTION
 *  This function is to
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_bt_avrcp_ct_main(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *gui_buffer;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_ID_BT_AVCRP_CT_MAIN, NULL, mmi_bt_avrcp_ct_main, NULL);

    gui_buffer = GetCurrGuiBuffer(SCR_ID_BT_AVCRP_CT_MAIN);

    if (gui_buffer == NULL)
    {
        g_mmi_bt_avrcp_ct_curr_cmd = 0;
        srv_avrcp_set_cmd_frame_cnf_hdlr((AVRCP_SRV_CMD_CNF_CALLBACK)mmi_bt_avrcp_ct_cmd_confirm);
    }

    RegisterHighlightHandler(mmi_bt_avrcp_ct_main_list_highlight_hdlr);

    ShowCategory184Screen(
        STR_GLOBAL_OK, /* Title ID*/
        IMG_GLOBAL_OK, /* Title ICON */
        STR_GLOBAL_SELECT,
        IMG_GLOBAL_OK,
        STR_GLOBAL_BACK,
        IMG_GLOBAL_BACK,
        MMI_BT_AVRCP_CMD_NUM,
        mmi_bt_avrcp_ct_main_list_item,
        NULL,
        g_mmi_bt_avrcp_ct_curr_cmd,
        gui_buffer);

    /* register LSK, RSK hanlders */
    SetLeftSoftkeyFunction(mmi_bt_avrcp_ct_send_cmd, KEY_EVENT_UP);
    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);

    /* register left right arrow key handler */
    SetKeyHandler(mmi_bt_avrcp_ct_send_cmd, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
    SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
Beispiel #21
0
void EntryShowRegisterProgress(void)
{
    MTPNP_UINT8 *guiBuffer;

    EntryNewScreen(SCR_REGISTERPROG, MTPNP_NULL, EntryShowRegisterProgress, MTPNP_NULL);

    guiBuffer = GetCurrGuiBuffer(SCR_REGISTERPROG);
    SetParentHandler(MENU_MTPNP_HELPINFO);
    RegisterHighlightHandler(ExecuteCurrHiliteHandler);

    MTPNP_OSAL_memset(UnicodeDisplayBuf, 0, sizeof(UnicodeDisplayBuf));

    MTPNP_PFAL_Unicode_String_Copy((MTPNP_CHAR *) UnicodeDisplayBuf,
                                   (const MTPNP_CHAR *) GetString(STRING_MTPNP_REGISTER_TIP));

    ShowCategory74Screen(STRING_MTPNP_REGISTER, 0, (MTPNP_UINT16) NULL, 0, STR_GLOBAL_BACK, 0,
                         (MTPNP_UINT8 *) UnicodeDisplayBuf, sizeof(UnicodeDisplayBuf), guiBuffer);

    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
/**************************************************************

	FUNCTION NAME		: EntryScrPreferedInputMethodList

  	PURPOSE				: Entry function for input method screen

	INPUT PARAMETERS	: nil

	OUTPUT PARAMETERS	: nil

	RETURNS				: void



**************************************************************/
void EntryScrPreferedInputMethodList(void)
{
    U8* pGuiBuffer;
    U8 i;
    InitPreferedInputMethod();

    i = 0;
    while(MMI_all_prefered_input_mode_set[i] != MMI_prefered_input_type)
    {
        if(MMI_all_prefered_input_mode_set[i] == 0xffff)
        {
            i=0;
            break;
        }
        else
            i++;

    }
    currInputMethodIndex = i;
    /* Call Exit Handler*/
    //ExecuteCurrExitHandler();
    EntryNewScreen(SCR_INPUT_METHOD_SELECTION, ExitInputMethodSelectScreen, NULL, NULL);
    /* Get current screen info into gui buffer  for history purposes*/
    pGuiBuffer = GetCurrGuiBuffer(SCR_INPUT_METHOD_SELECTION);
    /* Register highlight handler to be called in menu screen */
    RegisterHighlightHandler(HighlightCurrentInputMethod);
    /* Display Screen */
    ShowCategory36Screen(  STR_MENU_INPUT_METHOD, MAIN_MENU_TITLE_SETTINGS_ICON,
                           STR_GLOBAL_OK, IMG_GLOBAL_OK,
                           STR_GLOBAL_BACK, IMG_GLOBAL_BACK,
                           gnInputMethods, (U8**)inputMethodList, currInputMethodIndex,pGuiBuffer);
    /* Register function with left/right softkey */
    SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
    SetLeftSoftkeyFunction(SelectInputMethodHandler, KEY_EVENT_UP);
    /* Register function with left/right arrow key */
    SetKeyHandler(0, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
    SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
    /* Register Exit handler */
    //SetExitHandler(SCR_INPUT_METHOD_SELECTION, ExitInputMethodSelectScreen);
    return;
}
Beispiel #23
0
/**************************************************************

	FUNCTION NAME		: EntrySECSETFDNOption(void)
  	PURPOSE				: Entry screen of FDL list Options, when list is not empty.
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void EntrySECSETFDNOption()
{
	
	U16 nStrItemList[MAX_SUB_MENUS];/* Stores the strings id of submenus returned */
	U16 nNumofItem;		 /* Stores no of children in the submenu*/
//micha1229
//	U16 nDispAttribute;  /* Stores display attribue */
	U8* guiBuffer;		/* Buffer holding history data */

	EntryNewScreen(SCR_ID_SECSET_FDN_OPTION, NULL, EntrySECSETFDNOption, NULL);

	/* 2 Get current screen to gui buffer  for history purposes*/
	guiBuffer = GetCurrGuiBuffer(SCR_ID_SECSET_FDN_OPTION);	

	/* 3. Retrieve no of child of menu item to be displayed */
	nNumofItem = GetNumOfChild(MENU8234_FDL_VIEW_OPTIONS_MAIN	);

	/* 4. Get attribute of menu to be displayed */
//	nDispAttribute = GetDispAttributeOfItem(MENU8234_FDL_VIEW_OPTIONS_MAIN	);
	
	/* 5. Retrieve string ids in sequence of given menu item to be displayed */
	GetSequenceStringIds(MENU8234_FDL_VIEW_OPTIONS_MAIN	, nStrItemList);

	/* 6 Set current parent id*/
	SetParentHandler(MENU8234_FDL_VIEW_OPTIONS_MAIN	);

	/* 7 Register highlight handler to be called in menu screen */
	RegisterHighlightHandler(ExecuteCurrHiliteHandler);

	/* 8 Display Category15 Screen */
	ShowCategory15Screen(STR_GLOBAL_OPTIONS, MAIN_MENU_TITLE_SETTINGS_ICON,
						  STR_GLOBAL_OK, IMG_GLOBAL_OK,
						  STR_GLOBAL_BACK, IMG_GLOBAL_BACK,
						  nNumofItem, nStrItemList, (PU16)gIndexIconsImageList,
						  LIST_MENU, 0, guiBuffer);

	/* 9.Register function with right softkey */
	SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);

}
Beispiel #24
0
/*****************************************************************************
 * FUNCTION
 *  mmi_rmgr_http_profile_entry_main
 * DESCRIPTION
 *  Entry function of http profile main screen
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_rmgr_http_profile_entry_main(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *guiBuffer;
    U32 i;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_ID_RMGR_HTTP_PROFILE_MAIN, NULL, mmi_rmgr_http_profile_entry_main, NULL);

    for (i = 0; i < MMI_RMGR_MAX_HTTP_PROFILE_NUM; i++)
    {
        subMenuDataPtrs[i] = (U8*) L"<http>";
    }

    guiBuffer = GetCurrGuiBuffer(SCR_ID_RMGR_HTTP_PROFILE_MAIN);

    RegisterHighlightHandler(mmi_rmgr_http_profile_highlight_hdlr);

    /* set high item as current http profile setting */
    mmi_rmgr_p->http_profile_hilite_idx = mmi_rmgr_p->http_profile_idx;

    ShowCategory36Screen(
        STR_ID_RMGR,
        IMG_ID_RMGR_ICON,
        STR_GLOBAL_OK,
        IMG_GLOBAL_OK,
        STR_GLOBAL_BACK,
        IMG_GLOBAL_BACK,
        MMI_RMGR_MAX_HTTP_PROFILE_NUM,
        subMenuDataPtrs,
        mmi_rmgr_p->http_profile_hilite_idx,
        guiBuffer);

    SetLeftSoftkeyFunction(mmi_rmgr_http_profile_entry_done, KEY_EVENT_UP);
    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
Beispiel #25
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_entry_service_inbox_options
 * DESCRIPTION
 *  Entry function for service inbox options screen.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_entry_service_inbox_options(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U16 UC_list_of_items[3];
    U8 *guiBuffer;
    S32 num_of_items;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_ID_BRW_SERVICE_INBOX_OPTIONS, NULL, mmi_brw_entry_service_inbox_options, NULL);

    guiBuffer = GetCurrGuiBuffer(SCR_ID_BRW_SERVICE_INBOX_OPTIONS);

    num_of_items = GetNumOfChild(MENU_ID_BRW_PUSH_MSG_OPTIONS);
    GetSequenceStringIds(MENU_ID_BRW_PUSH_MSG_OPTIONS, UC_list_of_items);
    SetParentHandler(MENU_ID_BRW_PUSH_MSG_OPTIONS);
    RegisterHighlightHandler(ExecuteCurrHiliteHandler);

    ShowCategory15Screen(
        STR_ID_BRW_OPTION,
        GetRootTitleIcon(SERVICES_WAP_MENU_ID),
        STR_GLOBAL_OK,
        0,
        STR_GLOBAL_BACK,
        0,
        num_of_items,
        UC_list_of_items,
        (U16*) gIndexIconsImageList,
        LIST_MENU,
        0,
        guiBuffer);

    SetRightSoftkeyFunction(mmi_brw_entry_service_inbox_options_back, KEY_EVENT_UP);
    SetKeyHandler(mmi_brw_entry_service_inbox_options_back, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
Beispiel #26
0
/*****************************************************************************
 * FUNCTION
 *  mmi_ssc_handle_venus_debug_panel
 * DESCRIPTION
 *  SSC handler for Venus UI Debug Panel
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_ssc_venus_debug_panel(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    PU8 items[2];
    U8* gui_buffer;
    S16 error;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (!mmi_frm_scrn_enter(GRP_ID_ROOT, SCR_ENTER_SSC, NULL, mmi_ssc_venus_debug_panel, MMI_FRM_FULL_SCRN))
    {
        return;
    }

    ReadValue(NVRAM_VENUS_DEBUG_PANEL_ENABLE, &debug_panel_enabled, DS_BYTE, &error);
    items[0] = (PU8)GetString(STR_GLOBAL_ON);
    items[1] = (PU8)GetString(STR_GLOBAL_OFF);
    gui_buffer = mmi_frm_scrn_get_active_gui_buf();
    RegisterHighlightHandler(mmi_ssc_venus_debug_panel_hilite_hdlr);
    ShowCategory36Screen(
        STR_ID_EM_PROFILING_VENUS_DEBUG_PANEL,
        0,
        STR_GLOBAL_OK,
        IMG_GLOBAL_OK,
        STR_GLOBAL_BACK,
        IMG_GLOBAL_BACK,
        2,
        (PU8*)items,
        debug_panel_enabled ? 0 : 1,
        gui_buffer);
    EnableCenterSoftkey(0, IMG_GLOBAL_COMMON_CSK);
    SetLeftSoftkeyFunction(mmi_ssc_venus_debug_panel_done, KEY_EVENT_UP);
    SetRightSoftkeyFunction(mmi_frm_scrn_close_active_id, KEY_EVENT_UP);
}
static void mmiapi_goto_fullscreen_editor_option(void)
{
	U16 item_texts[] = {STR_GLOBAL_DONE, \
						STR_GLOBAL_CANCEL, \
						STR_GLOBAL_INPUT_METHOD} ;
	
	U16 item_icons[] = {IMG_GLOBAL_L1, \
						IMG_GLOBAL_L2, \
						IMG_GLOBAL_L3} ;
	
	EntryNewScreen (MMIAPI_SCREEN_FULLSCREEN_EDITOR_OPTION, 0, 0, 0) ;
    
	RegisterHighlightHandler (mmiapi_inputBox_highlighthanlder);

	ShowCategory52Screen (STR_GLOBAL_OPTIONS, 0, 
							STR_GLOBAL_OK, 0,
							STR_GLOBAL_BACK, 0, 
							3, item_texts, item_icons,
							0, 0, 0, 0);
	
	// register LSK, RSK handlers
	//SetLeftSoftkeyFunction (jddex_inputBoxOption_lskHandler, KEY_EVENT_UP ) ;
	SetRightSoftkeyFunction (GoBackHistory, KEY_EVENT_UP ) ;
}
Beispiel #28
0
void mmi_dialer_entry_screen(U16 scr_id, U16 left_softkey_id, U16 right_softkey_id, U8 *buffer, S32 buff_len)
{
	/*----------------------------------------------------------------*/
	/* Local Variables                                                */
	/*----------------------------------------------------------------*/
	U8 *guiBuffer;
	S32 cnt;

	memset(CallBuffer, 0, sizeof(CallBuffer));

	if (g_phb_cntx.phb_ready)
	{
		total_items = PhoneBookEntryCount;
	}
	else
	{
		total_items = 0;
	}
	if (!init_list_cell_text_array())
	{
		return;
	}

	guiBuffer = GetCurrGuiBuffer(scr_id);

	RegisterCat200SearchFunction(my_search_func);
	RegisterHighlightHandler(mmi_dailer_word_hdlr);

	cnt = 0;
	
	input_buffer = (UI_string_type)buffer;
	input_buffer_len = buff_len;

#if 0		//liping 2008-06-11 del
	// 第一次进入该窗口
	if (guiBuffer == NULL)
	{	
		memset(input_buffer, 0, input_buffer_len);
	}
#endif	

//renchangming Bug #10121 待机界面输入号码进行保存时,左软键提示“保存”实际功能为拨号,提示与实际功能不符 	2009-03-30 
#ifdef __NEED_CHANGE_LEFT_KEY_TO_SENTER__
            entry_new_dis_id_left_key_to_senter_init();
#endif
menu_shortcut_handler_display = 1;
	ShowCategory658Screen(
			0,
			0,
			left_softkey_id,
			0,
			right_softkey_id,
			0,
			cnt,
			mmi_dailer_list_get_item,
			NULL,
			0,
			0,
			(U8*)input_buffer,
			input_buffer_len,
			guiBuffer);

	RegisterHighlightHandler(mmi_dailer_word_hdlr);
	
	SetCategory16RightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
Beispiel #29
0
/**************************************************************

	FUNCTION NAME		: EntrySECSETFDNList(void)
  	PURPOSE				: Entry screen to view FDl list
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void EntrySECSETFDNList()
{

	U8 *pstfdlist[MAX_SIM_ENTRIES],*fdlHint[MAX_SIM_ENTRIES];
	U16 index;
	U8* guiBuffer;
	U16 fdlimagelist[MAX_SIM_ENTRIES];
	
	EntryNewScreen(SCR_ID_SECSET_FDN_LIST, NULL, EntrySECSETFDNList, NULL);
	
	guiBuffer = GetCurrGuiBuffer(SCR_ID_SECSET_FDN_LIST);		/* Getting the Index from history */

	for(index = 0; index < gpFDLBDLContext->FDNBDNCount; index++) 
	{
		if(gpFDLBDLContext->FDLBDLEntries[index].alpha_id.name[0] != '\0')
		{
			pstfdlist[index] = (U8*)gpFDLBDLContext->FDLBDLEntries[index].alpha_id.name;
			fdlHint[index] = (U8*)gpFDLBDLContext->FDLBDLEntries[index].tel.number;
		}
		else
		{
			pstfdlist[index] = (U8*)gpFDLBDLContext->FDLBDLEntries[index].tel.number;
			fdlHint[index] = NULL;
		}
		fdlimagelist[index]= IMG_STORAGE_SIM;
	}

	RegisterHighlightHandler(GetActiveIndex);

	if( guiBuffer != NULL)
	{
		memset( (void *) guiBuffer, 0, 2);
	}

	if (( gpFDLBDLContext->HighlightedFDN >= gpFDLBDLContext->FDNBDNCount) && (gpFDLBDLContext->FDNBDNCount > 0)) 
		gpFDLBDLContext->HighlightedFDN = gpFDLBDLContext->FDNBDNCount-1;

	
	if(gpFDLBDLContext->FDNBDNCount == 0)
	{
		pstfdlist[0] = (U8*)GetString(STR_GLOBAL_EMPTY_LIST);
		fdlimagelist[0]= 0;
		fdlHint[0] = NULL;
		ShowCategory6Screen(STR_SCR8054_CALL_FDL_CAPTION, MAIN_MENU_TITLE_SETTINGS_ICON, 
							STR_GLOBAL_ADD, IMG_GLOBAL_OPTIONS, 
							STR_GLOBAL_BACK, IMG_GLOBAL_BACK, 1, 
							pstfdlist, NULL,0, guiBuffer);
		gpFDLBDLContext->FDNBDNEdit = FALSE ;
		memset(gpFDLBDLContext->FDLBDLName,0,(MAX_NAME_LEN_FSB_LIST+1)*ENCODING_LENGTH);
		memset(gpFDLBDLContext->FDLBDLNumber,0,(MAX_NUMBER_LEN_FSB_LIST+1+1)*ENCODING_LENGTH);
		SetLeftSoftkeyFunction(EntrySECSETFDNDetails,KEY_EVENT_UP);
//micha0529
		SetKeyHandler(EntrySECSETFDNDetails, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
		SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
		SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
		SetKeyHandler(0,KEY_SEND,KEY_EVENT_UP);
	}
	else
	{

		ShowCategory53Screen(STR_SCR8054_CALL_FDL_CAPTION, MAIN_MENU_TITLE_SETTINGS_ICON,
//micha0610
						  STR_GLOBAL_OPTIONS, IMG_GLOBAL_OPTIONS,
						  STR_GLOBAL_BACK, IMG_GLOBAL_BACK,
						  gpFDLBDLContext->FDNBDNCount, pstfdlist,fdlimagelist, 
						  fdlHint,0, gpFDLBDLContext->HighlightedFDN, guiBuffer);

		SetLeftSoftkeyFunction(EntrySECSETFDNOption,KEY_EVENT_UP);
//micha0529
		SetKeyHandler(EntrySECSETFDNOption, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
		SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
		SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
		#ifdef __MMI_MULTI_SIM__
		MTPNP_PFAL_CC_HandleSendKeys(FdlMakeCall, KEY_EVENT_DOWN);
#if defined(TGT_GALLITE_G800)||defined(TGT_TD_4SIM)
		ClearKeyHandler( KEY_ENTER,  KEY_EVENT_DOWN);
		SetKeyHandler(EntrySECSETFDNOption,KEY_ENTER,KEY_EVENT_UP );
#endif
		#else
		SetKeyHandler(FdlMakeCall, KEY_SEND, KEY_EVENT_DOWN);
		#endif
	}
}
Beispiel #30
0
/*****************************************************************************
 * FUNCTION
 *  mmi_netset_show_user_ctrl_plmn_list
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_netset_show_user_ctrl_plmn_list(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    PU8 guiBuffer;
    U8 *PlmnListHint[MAX_SUB_MENUS];
    PU8 nStrItemList[MAX_USER_CTRL_PLMN];
    U8 i;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_ID_NETSET_USER_CTRL_PLMN_LIST, NULL, mmi_netset_show_user_ctrl_plmn_list, NULL);

    guiBuffer = GetCurrGuiBuffer(SCR_ID_NETSET_USER_CTRL_PLMN_LIST);

    RegisterHighlightHandler(mmi_netset_highlight_user_ctrl_plmn_list_hdlr);
    if (!gUserCtrlPlmnList.PlmnListSize)
    {
        /* no record */
        nStrItemList[0] = (U8*) GetString(STR_GLOBAL_EMPTY_LIST);
        ShowCategory6Screen(
            STR_ID_NETSET_USER_CTRL_PLMN,
            MAIN_MENU_TITLE_SETTINGS_ICON,
            STR_GLOBAL_OPTIONS,
            IMG_GLOBAL_OPTIONS,
            STR_GLOBAL_BACK,
            IMG_GLOBAL_BACK,
            1,
            (U8 **) nStrItemList,
            NULL,
            0,
            guiBuffer);
    }
    else
    {
        for (i = 0; i < MAX_USER_CTRL_PLMN; i++)
        {
            nStrItemList[i] = NULL;
        }

        for (i = 0; i < gUserCtrlPlmnList.PlmnListSize; i++)
        {
            mmi_asc_to_ucs2(
                (S8*) gUserCtrlPlmnList.tmpPlmnListData[i],
                (S8*) gUserCtrlPlmnList.PrefPLMN[i] + sizeof(U32));
            nStrItemList[i] = gUserCtrlPlmnList.tmpPlmnListData[i];
        }

        mmi_netset_construct_user_ctrl_plmn_hint(PlmnListHint);
        ShowCategory6Screen(
            STR_ID_NETSET_USER_CTRL_PLMN,
            MAIN_MENU_TITLE_SETTINGS_ICON,
            STR_GLOBAL_OPTIONS,
            IMG_GLOBAL_OPTIONS,
            STR_GLOBAL_BACK,
            IMG_GLOBAL_BACK,
            gUserCtrlPlmnList.PlmnListSize,
            (U8 **) nStrItemList,
            PlmnListHint,
            0,
            guiBuffer);
    }

    SetLeftSoftkeyFunction(mmi_netset_entry_user_ctrl_plmn_options, KEY_EVENT_UP);
    SetKeyHandler(mmi_netset_entry_user_ctrl_plmn_options, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
    SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}