Example #1
0
/*****************************************************************************
 * FUNCTION
 *  mmi_rmgr_show_trans_LSK_and_hint
 * DESCRIPTION
 *  Update and show trans LSK and hint
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
static void mmi_rmgr_show_trans_LSK_and_hint(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U16 highlight_idx;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    highlight_idx = GetCurrHiliteID();

    if (mmi_rmgr_p->trans_state)
    {
        ChangeLeftSoftkey(STR_GLOBAL_OFF, IMG_GLOBAL_OK);
        mmi_ucs2cpy((S8*) hintData[highlight_idx], (S8*) GetString(STR_GLOBAL_ON));
    }
    else
    {
        ChangeLeftSoftkey(STR_GLOBAL_ON, IMG_GLOBAL_OK);
        mmi_ucs2cpy((S8*) hintData[highlight_idx], (S8*) GetString(STR_GLOBAL_OFF));
    }

    Category52ChangeItemDescription(highlight_idx, hintData[highlight_idx]);
    RedrawCategoryFunction();
}
/**************************************************************

	FUNCTION NAME		: SelectInputMethodHandler

  	PURPOSE				: Exit function for input method screen

	INPUT PARAMETERS	: nil

	OUTPUT PARAMETERS	: nil

	RETURNS				: void



**************************************************************/
void SelectInputMethodHandler(void)
{
    U16 data;
    S16 error;
    U16 index;
    index = GetCurrHiliteID();
    SetInputMethod(currInputMethodIndex);
    data = MMI_prefered_input_type;
    WriteValue( NVRAM_SETTING_PREFER_INPUT_METHOD, &data, DS_SHORT , &error);
    pfnUnicodeStrcpy((PS8)hintData[index],(PS8)inputMethodList[currInputMethodIndex]);
    Category52ChangeItemDescription(index,hintData[index]);
    RedrawCategoryFunction();
    DisplayPopup((PU8)GetString(STR_GLOBAL_DONE) ,IMG_GLOBAL_ACTIVATED, 1,ST_NOTIFYDURATION,SUCCESS_TONE);
    DeleteNHistory(1);
    return;
}