Example #1
0
/*****************************************************************************
 * FUNCTION
 *  HighlightGPRSCount
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void HighlightGPRSCount(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
#ifdef __MMI_GPRS_UNIT_TEST__

    gprsTotalSent = 0;
    gprsTotalReceived = 1025;
    gprsLastSent = 1048533;
    gprsLastReceived = 11048576;
    SetKeyHandler(EntryScrGPRSCounter, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
    SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
    SetLeftSoftkeyFunction(EntryScrGPRSCounter, KEY_EVENT_UP);
    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);

#else /* __MMI_GPRS_UNIT_TEST__ */ 

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

#endif /* __MMI_GPRS_UNIT_TEST__ */ 

    return;
}
Example #2
0
void game_simu_highlight(void)
{
	SetLeftSoftkeyFunction(EntryRomList, KEY_EVENT_UP);
	SetKeyHandler(EntryRomList, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
	SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
	SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
Example #3
0
/*****************************************************************************
 * FUNCTION
 *  HighlightCHISTDeleteAllRecvd
 * DESCRIPTION
 *  Recd call list option Delete All handler
 * NA
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void HighlightCHISTDeleteAllRecvd(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    chis_p->isDeleteAll = FALSE;

    /* Check if the number of received calls is zero or not */
    if (chis_p->nRecvdCalls != 0)
    {
        /* received calls count is non zero */
        /* Change left soft key icon and label */
        ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
        /* Register function for left soft key */
        SetLeftSoftkeyFunction(EntryCHISTDeleteAllRecvdConfirm, KEY_EVENT_UP);
    }
    else
    {
        /* received calls count is zero then disable left soft key */
        ChangeLeftSoftkey(0, 0);
    }

    /* Change right soft key icon and label */
    ChangeRightSoftkey(STR_GLOBAL_BACK, IMG_GLOBAL_BACK);
    /* Register function for right soft key */
    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
    return;
}
Example #4
0
/*****************************************************************************
 * FUNCTION
 *  mmi_java_entry_force_terminate_dialog
 * DESCRIPTION
 *  The entry function to ask if user real want to terminate java? (can not pause)
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_java_entry_force_terminate_dialog(void)    /* called by JAVA adaptor, also in mmi task */
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_JAVA_FORCE_TERMINATE_DIALOG, NULL, mmi_java_entry_force_terminate_dialog, NULL);

    ShowCategory74Screen(
        STR_JAVA_TERMINATE,
        mmi_java_get_title_icon(),
        STR_GLOBAL_YES,
        IMG_GLOBAL_YES,
        STR_GLOBAL_NO,
        IMG_GLOBAL_NO,
        (PU8) GetString(STR_JAVA_FORCE_TERMINATE),
        mmi_ucs2strlen(GetString(STR_JAVA_FORCE_TERMINATE)),
        NULL);

    SetLeftSoftkeyFunction(mmi_java_force_terminate_dialog_yes_hdlr, KEY_EVENT_UP);
    SetRightSoftkeyFunction(mmi_java_force_terminate_dialog_no_hdlr, KEY_EVENT_UP);
}
Example #5
0
/*****************************************************************************
 * FUNCTION
 * DESCRIPTION
 * PARAMETERS
 * RETURNS
 *****************************************************************************/
void mmi_java_entry_cb_terminate_dialog_internal(void)
{

    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *guiBuffer;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_JAVA_TERMINATE_DIALOG2, NULL, mmi_java_entry_cb_terminate_dialog_internal, NULL);

    guiBuffer = GetCurrGuiBuffer(SCR_JAVA_TERMINATE_DIALOG2);

    ShowCategory74Screen(
        STR_SCR_JAVA_CAPTION,
        mmi_java_get_title_icon(),
        STR_GLOBAL_YES,
        IMG_GLOBAL_YES,
        STR_GLOBAL_NO,
        IMG_GLOBAL_NO,
        (PU8) cb_terminate_string,
        mmi_ucs2strlen((PS8) cb_terminate_string),
        NULL);

    SetLeftSoftkeyFunction(mmi_java_cb_terminate_dialog_yes_hdlr, KEY_EVENT_UP);
    SetRightSoftkeyFunction(mmi_java_cb_terminate_dialog_no_hdlr, KEY_EVENT_UP);
}
Example #6
0
void EntryBMIResultScreen(void) 
{
	U8 *guiBuffer;
	DOUBLE bmiValue;
	U8 * bmiBuf;
	U8 percentageValue;
	U16 FolwerIndex;
	U8 LB,UB;

	memset(g_bmi_cntx->ResultBuf,0,sizeof(g_bmi_cntx->ResultBuf));

	guiBuffer = GetCurrGuiBuffer(SCR_BMI_RESULT);

	EntryNewScreen(SCR_BMI_RESULT, NULL, EntryBMIResultScreen, NULL);

	bmiValue = g_bmi_cntx->Weight/(g_bmi_cntx->Height*g_bmi_cntx->Height)*10000;

	coolsand_UI_float_string(bmiValue, 2, g_bmi_cntx->ResultBuf);

	if(g_bmi_cntx->Gender == 0)
	{
		LB = BMI_MALE_LB;
		UB = BMI_MALE_UB;
		FolwerIndex = IMG_BMI_BLUE_FLOWER;
	}
	else
	{
		LB = BMI_FEMALE_LB;
		UB = BMI_FEMALE_UB;
		FolwerIndex = IMG_BMI_RED_FLOWER;
	}

	coolsand_UI_itoa(LB, (U16*)g_bmi_cntx->LBBuf, 10);
	coolsand_UI_itoa(UB, (U16*)g_bmi_cntx->UBBuf, 10);
	
	if(bmiValue > UB)		
	{
		bmiBuf = (U8*) GetString(STR_BMI_FAT);
		percentageValue = 2;
	}
	else if(bmiValue < LB)
	{
		bmiBuf = (U8*) GetString(STR_BMI_THIN);
		percentageValue = 0;
	}
	else
	{
		bmiBuf = (U8*) GetString(STR_BMI_NORMAL);
		percentageValue = 1;
	}

	ShowCategory122Screen(STR_BMI_RESULT_CAPTION, GetRootTitleIcon(ORGANIZER_HEALTH_MENU), 
					0, 0, 
					STR_GLOBAL_BACK, IMG_GLOBAL_BACK, 
					STR_BMI_BMI_TEXT,percentageValue,
					guiBuffer, g_bmi_cntx->ResultBuf,bmiBuf,
					FolwerIndex,(U8*)g_bmi_cntx->LBBuf,(U8*)g_bmi_cntx->UBBuf);
	
	SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
}
Example #7
0
/*****************************************************************************
* FUNCTION
*	EntryBMIWelcomeScreen
* DESCRIPTION
*   Display welcome screen of BMI application
* PARAMETERS
*	None
* RETURNS
*	None
* GLOBALS AFFECTED
*	None
*****************************************************************************/
void EntryBMIWelcomeScreen(void) 
{
	U8 *guiBuffer;

	EntryNewScreen(SCR_BMI_WELCOME, NULL, EntryBMIWelcomeScreen, NULL);
	guiBuffer = GetCurrGuiBuffer(SCR_BMI_WELCOME);

	if(g_bmi_cntx == NULL)
		g_bmi_cntx = OslMalloc(sizeof(bmi_context_struct));
	
	memset(g_bmi_cntx, 0, sizeof(bmi_context_struct));

	ShowCategory129Screen((U8*)get_string(STR_BMI_WELCOME_CAPTION), GetRootTitleIcon(ORGANIZER_HEALTH_MENU), 
					STR_GLOBAL_OK, IMG_GLOBAL_OK, STR_GLOBAL_BACK, IMG_GLOBAL_BACK, 
					IMG_BMI_WELCOME_SCREEN, guiBuffer);
	
	SetLeftSoftkeyFunction(EntryBMIInputScreen ,KEY_EVENT_UP);
	SetRightSoftkeyFunction(BmiFreeMemAndGoBack,KEY_EVENT_UP);
	
	#ifdef __MMI_NOKIA_STYLE_N800__
        ClearKeyHandler( KEY_LSK,  KEY_EVENT_DOWN);
        ClearKeyHandler( KEY_RSK,  KEY_EVENT_DOWN);
        SetKeyHandler(EntryBMIInputScreen , KEY_LSK,  KEY_EVENT_UP);
        SetKeyHandler(BmiFreeMemAndGoBack , KEY_RSK,  KEY_EVENT_UP);
	#endif
}
Example #8
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;
}
Example #9
0
/*****************************************************************************
 * FUNCTION
 *  mmi_idle_entry_change_dial_mode
 * DESCRIPTION
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_idle_entry_change_dial_mode(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    g_idle_context.DigitScreenDialMode = (g_idle_context.DigitScreenDialMode) ? 0 : 1;  /* 0: GSM, 1: WLAN */

    sprintf(g_idle_context.DialPadCallBuffer, "");
    g_idle_context.IdleScreenDigitKeyCode = -1;

    IdleScreenDigitHandler();

    DeleteScreenIfPresent(IDLE_SCREEN_DIGIT_OPTIONS_ID);
    DeleteScreenIfPresent(IDLE_SCREEN_DIGIT_HANDLER_ID);
    DeleteScreenIfPresent(SCR_ID_VOIP_CALL_EDITOR);

    if (mmi_netset_get_active_preferred_mode() == P_WLAN_PREFERRED || mmi_idle_get_dial_mode() == 0)
    {
        /* enter VoIP dialer screen first then change dialer mode to digit dialer */
        /* restore RSK/LSK handers because they are changed to disable long press */
        SetLeftSoftkeyFunction(mmi_idle_entry_dial_pad_option, KEY_EVENT_UP);
        SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
    }
}
Example #10
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);

}
Example #11
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);

}
Example #12
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);

}
Example #13
0
/*****************************************************************************

	FUNCTION NAME		: SP_Entry_Make_Call

  PURPOSE	:when the sp service is IVR, question call or don't call.
	INPUT PARAMETERS	: void
	OUTPUT PARAMETERS	: void

	RETURNS				:

******************************************************************************/
void SP_Entry_Make_Call (void)
{
    S8			textbuf[SP_CODE_LENGTH*ENCODING_LENGTH];
    SP_SMS_Service_Code_Struct sp_level2_service_code;
    mmi_trace(g_sw_SP,"niej SP_Entry_Make_Call");
    SP_Get_Level2_Service_Code(sp_level1_scr.sp_menu_id,
                               sp_level1_scr.sp_menu_id+sp_level_2_index+1,
                               &sp_level2_service_code);
    EntryNewScreen(SCR_ID_MSG_CONFIRMATION, Sp_Exit_Make_Call, NULL, NULL);


    memset(textbuf, 0, SP_CODE_LENGTH*ENCODING_LENGTH);
    memset(g_msg_cntx.smsPhoneNumber, 0, (MAX_DIGITS+1)*ENCODING_LENGTH);
    AnsiiToUnicodeString(textbuf, (S8*)sp_level2_service_code.Code_Subscribe);
    mmi_trace(g_sw_SP, "niej Code_Subscribe[%s]", sp_level2_service_code.Code_Subscribe);
    pfnUnicodeStrcpy(g_msg_cntx.smsPhoneNumber, textbuf);
    mmi_trace(1, "g_msg_cntx.smsPhoneNumber[%s]", g_msg_cntx.smsPhoneNumber);

    ShowCategory154Screen(0, 0,
                          STR_GLOBAL_YES, IMG_SMS_COMMON_NOIMAGE,
                          STR_GLOBAL_NO, IMG_SMS_COMMON_NOIMAGE,
                          (PU8)get_string_lang (STR_GLOBAL_DIAL, SSC_SCHINESE),
                          (PU8)g_msg_cntx.smsPhoneNumber,
                          IMG_GLOBAL_QUESTION, NULL);

    SetLeftSoftkeyFunction (Sp_Make_Call, KEY_EVENT_UP);
    SetRightSoftkeyFunction (GoBackHistory, KEY_EVENT_UP);
    playRequestedTone(WARNING_TONE);
}
Example #14
0
void I51_mmi_menu_highlight (void)
{
    SetLeftSoftkeyFunction (I51_menu_entry,KEY_EVENT_UP); 
    SetKeyHandler (I51_menu_entry,KEY_RIGHT_ARROW,KEY_EVENT_DOWN); 
    SetRightSoftkeyFunction (GoBackHistory, KEY_EVENT_UP);
    SetKeyHandler (GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
}
Example #15
0
/*****************************************************************************
 * FUNCTION
 *  mmi_java_entry_reset_rms_res
 * DESCRIPTION
 *  Reset RMS Confirm screen Entry Function
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_java_entry_reset_rms_res(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *guiBuffer;
    U8 *str;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    EntryNewScreen(SCR_JAVA_RESET_RMS_CONFIRM, NULL, mmi_java_entry_reset_rms_res, NULL);

    /* playRequestedTone(WARNING_TONE); */

    guiBuffer = GetCurrGuiBuffer(SCR_JAVA_RESET_RMS_CONFIRM);

    //mmi_asc_to_ucs2 ((PS8)gJavaPrintableStr,
    //"Do you want the new version application to be able to use the information stored by the old version application?");
    str = (U8*) get_string(STR_JAVA_RESET_RMS_ASK);

    ShowCategory74Screen(
        STR_JAVA_KEEP_RMS,
        mmi_java_get_title_icon(),
        STR_GLOBAL_YES,
        IMG_GLOBAL_YES,
        STR_GLOBAL_NO,
        IMG_GLOBAL_NO,
        (PU8) str,
        mmi_ucs2strlen((PS8) str),
        NULL);

    SetLeftSoftkeyFunction(mmi_java_send_reset_rms_res_yes, KEY_EVENT_UP);
    SetRightSoftkeyFunction(mmi_java_send_reset_rms_res_no, KEY_EVENT_UP);
}
Example #16
0
void HightlightShowMTPNPHelpInfo(void)
{
    change_left_softkey(STR_GLOBAL_OK, 0);
    redraw_left_softkey();
    SetLeftSoftkeyFunction(EntryShowMTPNPHelpInfo, KEY_EVENT_UP);
    SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
Example #17
0
void EmPingStart(S8 *AscAddr )
{
	U32 i;

	EntryNewScreen(EM_GPRS_PING_MENUID, ExitEmPingRspPage, NULL, NULL);

	EmPingCnt=0;
     memset( subMenuData, 0, sizeof(subMenuData));
     for(i=0; i<MAX_SUB_MENUS; i++)
      subMenuDataPtrs[i] = subMenuData[i];

     ShowCategory6Screen (EM_GPRS_PING_TEXT, (U16)0,
						  (U16)NULL, (U16)0,
						  STR_GLOBAL_BACK, (U16)0,
						  0, (PU8*)subMenuDataPtrs,NULL, 0,
						  NULL); 

	SetLeftSoftkeyFunction (NULL, KEY_EVENT_UP);
	SetRightSoftkeyFunction (EmPingStop, KEY_EVENT_UP);

     EmPingStartAct(AscAddr);

#ifdef MMI_ON_HARDWARE_P
    SetProtocolEventHandler( EmPingSocNotify, MSG_ID_APP_SOC_NOTIFY_IND );
#endif

}
Example #18
0
void mmi_snowfish_profile_highlight_app(void)
{
	SetLeftSoftkeyFunction(mmi_snowfish_profile_entry_app_screen,KEY_EVENT_UP);
	SetKeyHandler(mmi_snowfish_profile_entry_app_screen, KEY_RIGHT_ARROW,KEY_EVENT_DOWN);
	SetKeyHandler(GoBackHistory,KEY_LEFT_ARROW,KEY_EVENT_DOWN);
	SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);

}
Example #19
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);
}
Example #20
0
/**************************************************************

	FUNCTION NAME		: HighlightCHISTResetCallLog

  	PURPOSE				: Function called when reset is highlited

	INPUT PARAMETERS	: nil

	OUTPUT PARAMETERS	: nil

	RETURNS				: void

 

**************************************************************/
void HighlightCHISTResetCallLog( void )
{
	/* Set the left/right arrow key functions */
	SetKeyHandler( EntryCHISTResetCallLog,KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
	/* Set the left and right soft key functions */
	SetLeftSoftkeyFunction( EntryCHISTResetCallLog, KEY_EVENT_UP );
	SetRightSoftkeyFunction( GoBackHistory, KEY_EVENT_UP );
	return;
}
Example #21
0
void Highlight_SP_MenuItem(void (*func)(void))
{
    ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_GLOBAL_OK);
    ChangeRightSoftkey(STR_GLOBAL_BACK,IMG_GLOBAL_BACK);
    SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
    SetLeftSoftkeyFunction(func,KEY_EVENT_UP);
    SetKeyHandler(func, KEY_RIGHT_ARROW,KEY_EVENT_DOWN);
    SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
}
/*****************************************************************************
 * FUNCTION
 *  mmi_rmgr_list_ro_entry_detail
 * DESCRIPTION
 *  Entry function of the list ro detail screen
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
static void mmi_rmgr_list_ro_entry_detail(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *guiBuffer, *info;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    //EntryNewScreen(SCR_ID_RMGR_LIST_RO_DETAIL, NULL, mmi_rmgr_list_ro_entry_detail, NULL);
if(mmi_frm_scrn_enter(
       GRP_ID_RMGR_MAIN, 
       SCR_ID_RMGR_LIST_RO_DETAIL, 
       NULL, 
       mmi_rmgr_list_ro_entry_detail, 
       MMI_FRM_FULL_SCRN))
{
    guiBuffer = mmi_frm_scrn_get_gui_buf (GRP_ID_RMGR_MAIN, SCR_ID_RMGR_LIST_RO_DETAIL);

    info = (PU8) subMenuData;

    memset(info, 0x00, sizeof(kal_wchar));

#ifdef __DRM_V02__    
    /* Shared */
    mmi_ucs2cat((PS8) info, (PS8) GetString(STR_ID_RMGR_SHARED_RO));
    mmi_ucs2cat((PS8) info, (PS8) L"\n");

    if (DRM_get_ro_shareability(mmi_rmgr_p->ro_idx))
    {
        mmi_ucs2cat((PS8) info, (PS8) GetString(STR_GLOBAL_YES));
    }
    else
    {
        mmi_ucs2cat((PS8) info, (PS8) GetString(STR_GLOBAL_NO));
    }
    mmi_ucs2cat((PS8) info, (PS8) L"\n");
#endif /* __DRM_V02__ */

    /* Summary */
    mmi_rmgr_populate_drm_info_aux(NULL, DRM_PERMISSION_ALL, info, sizeof(subMenuData), mmi_rmgr_p->ro_idx);
        
    ShowCategory74Screen(
        STR_GLOBAL_DETAILS,
        mmi_rmgr_get_root_icon(),
        0,
        0,
        STR_GLOBAL_BACK,
        IMG_GLOBAL_BACK,
        (PU8) subMenuData,
        MAX_SUB_MENUS * MAX_SUB_MENU_SIZE,
        guiBuffer);

    SetRightSoftkeyFunction(mmi_frm_scrn_close_active_id, KEY_EVENT_UP);
}
}
Example #23
0
/**************************************************************

	FUNCTION NAME		: HighlightCALLSETCallBarringQuery(void)

  	PURPOSE				: hightlight handler for call barring query status

	INPUT PARAMETERS	: nil

	OUTPUT PARAMETERS	: nil

	RETURNS				: void

 

**************************************************************/
void HighlightCALLSETCallBarringQuery(void)
{
	/* set the left/right soft key functions handlers */	
	SetLeftSoftkeyFunction (SendBarrQuery,KEY_EVENT_UP);
//micha0529
	ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
	SetRightSoftkeyFunction (GoBackHistory,KEY_EVENT_UP);
	return;
}
Example #24
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);
}
Example #25
0
/*****************************************************************************
 * 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);
}
Example #26
0
/**************************************************************

	FUNCTION NAME		: EntrySECSETFDNDelConfirm(void)
  	PURPOSE				: Entry fn for Confirmation of Delete.
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void EntrySECSETFDNDelConfirm()
{
	DisplayConfirm( STR_GLOBAL_YES, IMG_GLOBAL_YES,
						    STR_GLOBAL_NO, IMG_GLOBAL_NO,
						    get_string(STR_DELETE_QUERY_MSG),IMG_GLOBAL_QUESTION, WARNING_TONE);

	g_SecuritySetupContext.VerifyPassSuccessCallBack = SECSETDelFdlReq;
	SetLeftSoftkeyFunction (SECSETGetPIN2StatusReq,KEY_EVENT_UP);
	SetRightSoftkeyFunction (GoToFDLList,KEY_EVENT_UP);
}
Example #27
0
/**************************************************************

	FUNCTION NAME		: HighLightDeleteFDL(void)
  	PURPOSE				: Highlight Delete Option.
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void HighLightDeleteFDL()
{
//micha0811
//	SetKeyHandler(EntrySECSETFDNDelConfirm, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
	ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
	SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW, KEY_EVENT_DOWN);

	SetLeftSoftkeyFunction(EntrySECSETFDNDelConfirm,KEY_EVENT_UP);
	SetRightSoftkeyFunction(GoBackHistory,KEY_EVENT_UP);
}
Example #28
0
void HighlightCALLSETCallBarringIncoming(void)
{
	/* Change right soft key icon and label */
	SetLeftSoftkeyFunction (EntryCALLSETBarringIn,KEY_EVENT_UP);
	SetRightSoftkeyFunction (GoBackHistory,KEY_EVENT_UP);
	/* set the left/right arrow key function handlers */
	SetKeyHandler(GoBackHistory, KEY_LEFT_ARROW,KEY_EVENT_DOWN);
	SetKeyHandler(EntryCALLSETBarringIn, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
	return;
}
Example #29
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;
        }
    }
}
Example #30
0
/*****************************************************************************
 * FUNCTION
 *  mmi_java_entry_mids_get_confirm
 * DESCRIPTION
 *  The entry function to get any confirm from user
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_java_entry_mids_get_confirm(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    U8 *guiBuffer;
    S8 *str;
    U16 title;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    str = mmi_java_mids_get_confirm_ind_msg.confirm_msg;
    title = mmi_java_mids_get_confirm_ind_msg.confirm_title;

    EntryNewScreen(SCR_JAVA_GET_CONFIRM, NULL, mmi_java_entry_mids_get_confirm, NULL);
    guiBuffer = GetCurrGuiBuffer(SCR_JAVA_GET_CONFIRM);

    if (mmi_java_mids_get_confirm_ind_msg.window_category == JAVA_CONFIRM_NOTIFICATION_CATEGORY)
    {
        U16 image = mmi_java_mids_get_confirm_ind_msg.confirm_image;

        ShowCategory165Screen(
            STR_GLOBAL_YES,
            IMG_GLOBAL_YES,
            STR_GLOBAL_NO,
            IMG_GLOBAL_NO,
            (UI_string_type) str,
            image,
            guiBuffer);
    }
    else if (mmi_java_mids_get_confirm_ind_msg.window_category == JAVA_CONFIRM_TEXT_VIEW_CATEGORY)
    {

        ShowCategory74Screen(
            (U16) title,
            mmi_java_get_title_icon(),
            STR_GLOBAL_YES,
            IMG_GLOBAL_YES,
            STR_GLOBAL_NO,
            IMG_GLOBAL_NO,
            (U8*) str,
            mmi_ucs2strlen((PS8) str),
            NULL);
    }
    else
    {
        ASSERT(0);
    }

    SetKeyHandler(mmi_java_mids_get_confirm_cancel_hdlr, KEY_END, KEY_EVENT_DOWN);
    SetLeftSoftkeyFunction(mmi_java_mids_get_confirm_yes_hdlr, KEY_EVENT_UP);
    SetRightSoftkeyFunction(mmi_java_mids_get_confirm_no_hdlr, KEY_EVENT_UP);

}