SAT.c
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:425k
- {
- SATGetIconCompleteCallBack = GoToLaunchBrowserConformationScreen;
- SATGetIconDataToList();
- return;
- }
- }
- iconData = SATGetIconFromList(gSATLaunchBrowser.iconInfo.iconId);
- gSATContext.exitCondition = &gSATLaunchBrowser.passedConf;
- EntryNewScreen(SCR_ID_SAT_LAUNCH_BROWSER_CONF, SATGenericExitHandler, NULL, NULL);
- SetIsInSATScreen();
- gSATContext.historyFuncPtr = GoToLaunchBrowserConformationScreen;
- gSATCallSetup.passedConfirmScreen = 0;
- ShowCategory151Screen(
- 0,
- 0,
- STR_GLOBAL_YES,
- 0,
- STR_GLOBAL_NO,
- 0,
- gSATLaunchBrowser.alphaId,
- iconData,
- gSATContext.guiBufferPointer);
- SetKeyHandler(SATSendLaunchBrowserTerminalResponseExpire, KEY_END, KEY_EVENT_DOWN);
- SetLeftSoftkeyFunction(LaunchBrowserConformationOK, KEY_EVENT_UP);
- SetRightSoftkeyFunction(SATSendLaunchBrowserTerminalResponseUnable, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * LaunchBrowserConformationOK
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void LaunchBrowserConformationOK(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYQUEUE *Message;
- WAPLAUNCHBROWSERREQ *dataPtr;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gSATLaunchBrowser.passedConf = 1;
- ClearIsInSATScreen();
- Message = ALLOCATE_ITM(MOD_MMI);
- Message->oslSrcId = MOD_MMI;
- Message->oslDestId = MOD_WAP;
- Message->oslMsgId = PRT_WAP_MMI_LAUNCH_BROWSER_REQ;
- dataPtr = (WAPLAUNCHBROWSERREQ*) OslConstructDataPtr(sizeof(WAPLAUNCHBROWSERREQ)
- + (gSATLaunchBrowser.noUrl) * ENCODING_LENGTH * sizeof(U8)
- + (gSATLaunchBrowser.noBearer) * ENCODING_LENGTH * sizeof(U8)
- +
- (gSATLaunchBrowser.noGateway) * ENCODING_LENGTH * sizeof(U8));
- dataPtr->url = (PU8) dataPtr + sizeof(WAPLAUNCHBROWSERREQ);
- memcpy(dataPtr->url, gSATLaunchBrowser.url, (gSATLaunchBrowser.noUrl) * ENCODING_LENGTH * sizeof(U8));
- dataPtr->bearer = (PU8) dataPtr->url + (gSATLaunchBrowser.noUrl) * ENCODING_LENGTH * sizeof(U8);
- memcpy(dataPtr->bearer, gSATLaunchBrowser.bearer, (gSATLaunchBrowser.noBearer) * ENCODING_LENGTH * sizeof(U8));
- dataPtr->gateway = (PU8) dataPtr->bearer + (gSATLaunchBrowser.noBearer) * ENCODING_LENGTH * sizeof(U8);
- memcpy(dataPtr->gateway, gSATLaunchBrowser.gateway, (gSATLaunchBrowser.noGateway) * ENCODING_LENGTH * sizeof(U8));
- dataPtr->browserMode = gSATLaunchBrowser.browserMode;
- dataPtr->noUrl = gSATLaunchBrowser.noUrl;
- dataPtr->noBearer = gSATLaunchBrowser.noBearer;
- dataPtr->noGateway = gSATLaunchBrowser.noGateway;
- Message->oslDataPtr = (oslParaType*) dataPtr;
- Message->oslPeerBuffPtr = NULL;
- SEND_MSG(Message);
- #ifdef WAP_SUPPORT
- #ifdef MMI_ON_HARDWARE_P
- if ((gSATLaunchBrowser.browserMode == SAT_USE_EXISTING_BROWSER || gSATLaunchBrowser.browserMode == SAT_CLOSE_EXISTING_BROWSER_AND_LAUNCH_NEW) &&
- wap_browser_is_open())
- {
- GoBackHistory();
- }
- #endif /* MMI_ON_HARDWARE_P */
- #endif /* WAP_SUPPORT */
- }
- /*****************************************************************************
- * FUNCTION
- * WAPLaunchBrowserRsp
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- void WAPLaunchBrowserRsp(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- WAPLAUNCHBROWSERRES *wapLaunchBrowserRes;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- wapLaunchBrowserRes = (WAPLAUNCHBROWSERRES*) msgPtr;
- if (wapLaunchBrowserRes->res != SAT_CMD_PERFORMED_SUCCESSFULLY)
- {
- SetIsInSATScreen();
- }
- else
- {
- gSATContext.historyFuncPtr = GoToSATMainMenu;
- GenericExitScreen(SCR_ID_SAT_HISTORY, SATHistoryHandler); /* there should be a WAP broswer on top */
- }
- TerminalResponseLaunchBrowser(
- wapLaunchBrowserRes->res,
- wapLaunchBrowserRes->additionalInfo,
- gSATLaunchBrowser.cmdDetail);
- SATPleaseWaitScreen(SAT_WAIT_STRING_ID, SAT_WAIT_IMAGE_ID);
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendLaunchBrowserTerminalResponseExpire
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendLaunchBrowserTerminalResponseExpire(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- TerminalResponseLaunchBrowser(SAT_ME_CURRENTLY_UNABLE_TO_PROCESS_CMD, 0, gSATLaunchBrowser.cmdDetail);
- ExitSATToIdle();
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendLaunchBrowserTerminalResponseUnable
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendLaunchBrowserTerminalResponseUnable(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- TerminalResponseLaunchBrowser(SAT_USER_DID_NOT_ACCEPT_THE_PROACTIVE_CMD, 0, gSATLaunchBrowser.cmdDetail);
- SATPleaseWaitScreen(SAT_WAIT_STRING_ID, SAT_WAIT_IMAGE_ID);
- }
- /*****************************************************************************
- * FUNCTION
- * TerminalResponseLaunchBrowser
- * DESCRIPTION
- *
- * PARAMETERS
- * res [IN]
- * add_info [IN]
- * cmdDetail [?]
- * RETURNS
- * void
- *****************************************************************************/
- void TerminalResponseLaunchBrowser(U8 res, U8 add_info, U8 *cmdDetail)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYQUEUE *Message;
- mmi_sat_launch_browser_res_req_struct *dataPtr;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gSATLaunchBrowser.passedConf = 1;
- Message = ALLOCATE_ITM(MOD_MMI);
- Message->oslSrcId = MOD_MMI;
- Message->oslDestId = MOD_L4C;
- Message->oslMsgId = PRT_MMI_SAT_LAUNCH_BROWSER_RES_REQ;
- dataPtr =
- (mmi_sat_launch_browser_res_req_struct*) OslConstructDataPtr(sizeof(mmi_sat_launch_browser_res_req_struct));
- /* diamond, 2005/05/24 icon */
- if (res == SAT_CMD_PERFORMED_SUCCESSFULLY && gSATLaunchBrowser.isIconAvailable == 1 &&
- gSATContext.isCMDIconSupported == MMI_FALSE)
- {
- dataPtr->res = SAT_CMD_PERFORMED_BUT_ICON_COULD_NOT_DSPL;
- }
- else
- {
- /* end, diamond */
- dataPtr->res = res;
- }
- dataPtr->size_of_additional_info = add_info;
- memcpy(dataPtr->cmd_detail, (void*)cmdDetail, 5 * sizeof(U8));
- Message->oslDataPtr = (oslParaType*) dataPtr;
- Message->oslPeerBuffPtr = NULL;
- SEND_MSG(Message);
- gSATContext.lastSATCmd = SAT_NONE_CMD;
- }
- /*****************************************************************************
- * FUNCTION
- * SATLaunchBrowserRsp
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- void SATLaunchBrowserRsp(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- FreeLaunchBrowser();
- }
- /*****************************************************************************
- * FUNCTION
- * FreeLaunchBrowser
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void FreeLaunchBrowser(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SATClearAllIcons();
- /* micha1008 */
- if (gSATLaunchBrowser.alphaId)
- {
- OslMfree(gSATLaunchBrowser.alphaId);
- }
- gSATLaunchBrowser.noAlphaId = 0;
- gSATLaunchBrowser.alphaId = NULL;
- if (gSATLaunchBrowser.url)
- {
- OslMfree(gSATLaunchBrowser.url);
- }
- gSATLaunchBrowser.noUrl = 0;
- gSATLaunchBrowser.url = NULL;
- if (gSATLaunchBrowser.bearer)
- {
- OslMfree(gSATLaunchBrowser.bearer);
- }
- gSATLaunchBrowser.noBearer = 0;
- gSATLaunchBrowser.bearer = NULL;
- if (gSATLaunchBrowser.gateway)
- {
- OslMfree(gSATLaunchBrowser.gateway);
- }
- gSATLaunchBrowser.noGateway = 0;
- gSATLaunchBrowser.gateway = NULL;
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendDTMFInd
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDTMFInd(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- mmi_sat_send_dtmf_ind_struct *sendDTMFInd;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gSATContext.guiBufferPointer = NULL;
- sendDTMFInd = (mmi_sat_send_dtmf_ind_struct*) msgPtr;
- FreeSendDTMF();
- gSATContext.lastSATCmd = SAT_SEND_DTMF_CMD;
- if (GetCurrentState() != CM_ACTIVE_STATE)
- {
- TerminalResponseSendDTMF(
- SAT_ME_CURRENTLY_UNABLE_TO_PROCESS_CMD,
- SAT_NOT_IN_SPEECH_MODE,
- sendDTMFInd->cmd_detail);
- return;
- }
- gSATSendDTMF.dcsOfAlphaId = sendDTMFInd->dcs_of_alpha_id;
- gSATSendDTMF.noAlphaId = sendDTMFInd->no_alpha_id;
- gSATSendDTMF.stage1Res = 0;
- if (sendDTMFInd->is_alpha_id_present)
- {
- if (gSATSendDTMF.noAlphaId)
- {
- gSATSendDTMF.alphaId = CovertStringForPlatform(
- sendDTMFInd->alpha_id,
- gSATSendDTMF.noAlphaId,
- gSATSendDTMF.dcsOfAlphaId,
- &gSATSendDTMF.noAlphaId);
- gSATSendDTMF.informUser = 1;
- }
- else
- {
- gSATSendDTMF.informUser = 0;
- }
- }
- else
- {
- gSATSendDTMF.noAlphaId = pfnUnicodeStrlen((PS8) (PU8) GetString(SAT_SEND_DTMF_STRING_ID)) * ENCODING_LENGTH;
- gSATSendDTMF.alphaId = (PU8) OslMalloc(gSATSendDTMF.noAlphaId + ENCODING_LENGTH);
- memcpy(
- gSATSendDTMF.alphaId,
- (PU8) GetString(SAT_SEND_DTMF_STRING_ID),
- gSATSendDTMF.noAlphaId + ENCODING_LENGTH);
- gSATSendDTMF.informUser = 1;
- }
- gSATSendDTMF.noDtmf = sendDTMFInd->no_dtmf;
- gSATSendDTMF.dtmf = (PU8) OslMalloc(gSATSendDTMF.noDtmf * sizeof(U8) + 1);
- memcpy(gSATSendDTMF.dtmf, sendDTMFInd->dtmf, gSATSendDTMF.noDtmf * sizeof(U8) + 1);
- memcpy(gSATSendDTMF.cmdDetail, sendDTMFInd->cmd_detail, 5 * sizeof(U8));
- #ifdef __SAT_MMI_UNIT_TEST__
- gSATSendDTMF.isIconAvailable = 1;
- if (gSATSendDTMF.isIconAvailable)
- {
- gSATSendDTMF.iconInfo.iconId = 1;
- gSATSendDTMF.iconInfo.iconAttr = SAT_ICON_NOT_SELF_EX;
- }
- #else /* __SAT_MMI_UNIT_TEST__ */
- gSATSendDTMF.isIconAvailable = sendDTMFInd->is_icon_available;
- if (gSATSendDTMF.isIconAvailable)
- {
- gSATSendDTMF.iconInfo.iconId = sendDTMFInd->icon_info.icon_id;
- gSATSendDTMF.iconInfo.iconAttr = sendDTMFInd->icon_info.icon_attr;
- }
- #endif /* __SAT_MMI_UNIT_TEST__ */
- if (gSATSendDTMF.isIconAvailable && gSATSendDTMF.iconInfo.iconAttr == SAT_ICON_SELF_EX)
- {
- if (gSATSendDTMF.alphaId)
- {
- OslMfree(gSATSendDTMF.alphaId);
- }
- gSATSendDTMF.alphaId = NULL;
- gSATSendDTMF.noAlphaId = 0;
- }
- if (gSATSendDTMF.informUser)
- {
- SATStopWaitTimer();
- DeleteScreenIfPresent(SCR_ID_SAT_HISTORY);
- if (GetExitScrnID() == SCR_ID_SAT_HISTORY)
- {
- ClearExitHandler();
- }
- gSATSendDTMF.passedConf = 0;
- StartTimer(SAT_SEND_DTMF_TIMER, 1000, DisplayDTMFWindow); // GoToDTMFConformationScreen();
- }
- else
- {
- SATSendDTMFStage1Req();
- }
- }
- #if 0
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- #endif
- /*****************************************************************************
- * FUNCTION
- * SATSendDTMFTerminalResponseExpire
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDTMFTerminalResponseExpire(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- TerminalResponseSendDTMF(SAT_ME_CURRENTLY_UNABLE_TO_PROCESS_CMD, 0, gSATSendDTMF.cmdDetail);
- ExitSATToIdle();
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendDTMFTerminalResponseUnable
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDTMFTerminalResponseUnable(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- TerminalResponseSendDTMF(SAT_ME_CURRENTLY_UNABLE_TO_PROCESS_CMD, 0, gSATSendDTMF.cmdDetail);
- SATPleaseWaitScreen(SAT_WAIT_STRING_ID, SAT_WAIT_IMAGE_ID);
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendDTMFStage1Req
- * DESCRIPTION
- * Send SEND DTMF STAGE1 REQ
- * PARAMETERS
- * void
- * sendDTMFInd(?) [IN] Pointer to recieved SATSENDDTMFIND struct from L4
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDTMFStage1Req(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYQUEUE *Message;
- mmi_sat_send_dtmf_stage1_req_struct *dataPtr;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gSATSendDTMF.passedConf = 1;
- gSATContext.gotStage1Rsp = 0;
- #if 0
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- #endif /* 0 */
- Message = ALLOCATE_ITM(MOD_MMI);
- Message->oslSrcId = MOD_MMI;
- Message->oslDestId = MOD_L4C;
- Message->oslMsgId = PRT_MMI_SAT_SEND_DTMF_STAGE1_REQ;
- dataPtr = (mmi_sat_send_dtmf_stage1_req_struct*) OslConstructDataPtr(sizeof(mmi_sat_send_dtmf_stage1_req_struct));
- dataPtr->no_digit = gSATSendDTMF.noDtmf;
- if (dataPtr->no_digit <= MAX_CC_ADDR_BCD_LEN)
- {
- memcpy(dataPtr->dtmf_digit, gSATSendDTMF.dtmf, dataPtr->no_digit);
- }
- else
- {
- memcpy(dataPtr->dtmf_digit, gSATSendDTMF.dtmf, MAX_CC_ADDR_BCD_LEN);
- }
- Message->oslDataPtr = (oslParaType*) dataPtr;
- Message->oslPeerBuffPtr = NULL;
- SEND_MSG(Message);
- }
- /*****************************************************************************
- * FUNCTION
- * DisplayDTMFWindow
- * DESCRIPTION
- * Displays Sending DTMF Screen
- * PARAMETERS
- * void
- * alphaId(?) [IN] Pointer to string to be displayed in Send DTMF Screen
- * RETURNS
- * void
- *****************************************************************************/
- void DisplayDTMFWindow(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *iconData = NULL;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gSATSendDTMF.isIconAvailable)
- {
- SATAddIconIDToList(gSATSendDTMF.iconInfo.iconId);
- }
- if (gSATSendDTMF.isIconAvailable)
- {
- if (!SATCheckAllIconGot())
- {
- SATGetIconCompleteCallBack = DisplayDTMFWindow;
- SATGetIconDataToList();
- return;
- }
- }
- /* Get icon data first then play DTMF */
- if (gSATSendDTMF.passedConf == 0)
- {
- /* press OK to send DTMF but not send the request yet */
- SATSendDTMFStage1Req();
- }
- iconData = SATGetIconFromList(gSATSendDTMF.iconInfo.iconId);
- gSATContext.exitCondition = &gSATSendDTMF.stage1Res;
- EntryNewScreen(SCR_ID_SAT_SENDDTMF, SATGenericExitHandler, NULL, NULL);
- SetIsInSATScreen();
- gSATContext.historyFuncPtr = DisplayDTMFWindow;
- ClearHighlightHandler();
- ShowCategory151Screen(
- 0,
- 0,
- 0,
- 0,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- gSATSendDTMF.alphaId,
- iconData,
- gSATContext.guiBufferPointer);
- SetRightSoftkeyFunction(SATSendDTMFAbortReq, KEY_EVENT_UP);
- SetKeyHandler(SATSendDTMFAbortReq, KEY_END, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendDTMFAbortReq
- * DESCRIPTION
- * Send SEND DTMF Abort REQ
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDTMFAbortReq(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYQUEUE *Message;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- Message = ALLOCATE_ITM(MOD_MMI);
- Message->oslSrcId = MOD_MMI;
- Message->oslDestId = MOD_L4C;
- Message->oslMsgId = PRT_MMI_SAT_ABORT_DTMF_REQ;
- Message->oslDataPtr = NULL;
- Message->oslPeerBuffPtr = NULL;
- SEND_MSG(Message);
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendDTMFStage1Rsp
- * DESCRIPTION
- * Protocol Handler for SEND DTMF STAGE 1 RES
- * PARAMETERS
- * msgPtr [IN] Pointer to data from L4
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDTMFStage1Rsp(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- mmi_sat_send_dtmf_stage1_rsp_struct *sendDTMFStage1Res;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- sendDTMFStage1Res = (mmi_sat_send_dtmf_stage1_rsp_struct*) msgPtr;
- gSATSendDTMF.stage1Res = 1;
- gSATContext.gotStage1Rsp = 1;
- /* micha0714 */
- if (gSATContext.lastSATCmd == SAT_NONE_CMD)
- {
- return;
- }
- TerminalResponseSendDTMF(sendDTMFStage1Res->terminal_res, (U8) sendDTMFStage1Res->cause, gSATSendDTMF.cmdDetail);
- if (gSATSendDTMF.informUser)
- {
- if (sendDTMFStage1Res->terminal_res == SAT_CMD_PERFORMED_SUCCESSFULLY ||
- sendDTMFStage1Res->terminal_res == SAT_CMD_PERFORMED_WITH_PARTIAL_COMPREHENSION ||
- sendDTMFStage1Res->terminal_res == SAT_CMD_PERFORMED_WITH_MISSING_INFO)
- {
- SATPleaseWaitScreen(SAT_DTMF_SUCCESS_STRING_ID, 0);
- }
- else
- {
- SATPleaseWaitScreen(SAT_DTMF_ERROR_STRING_ID, 0);
- }
- }
- /* diamond, 2005/05/16 Stage 1 response does't need to re-entry main menu */
- #if 0
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- /* under construction !*/
- #endif /* 0 */
- }
- /*****************************************************************************
- * FUNCTION
- * TerminalResponseSendDTMF
- * DESCRIPTION
- * Send SEND DTMF STAGE2 REQ to L4
- * PARAMETERS
- * res [IN]
- * addInfo [IN]
- * cmdDetail [IN] Cmd detail to be sent
- * Res(?) [IN] Response type
- * cause(?) [IN] Returned in SEND DTMF STAGE 1 RES
- * RETURNS
- * void
- *****************************************************************************/
- void TerminalResponseSendDTMF(U8 res, U8 addInfo, U8 *cmdDetail)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYQUEUE *Message;
- mmi_sat_send_dtmf_stage2_req_struct *dataPtr;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gSATSendDTMF.passedConf = 1;
- Message = ALLOCATE_ITM(MOD_MMI);
- Message->oslSrcId = MOD_MMI;
- Message->oslDestId = MOD_L4C;
- Message->oslMsgId = PRT_MMI_SAT_SEND_DTMF_STAGE2_REQ;
- dataPtr = (mmi_sat_send_dtmf_stage2_req_struct*) OslConstructDataPtr(sizeof(mmi_sat_send_dtmf_stage2_req_struct));
- /* diamond, 2005/05/24 icon */
- if (res == SAT_CMD_PERFORMED_SUCCESSFULLY && gSATSendDTMF.isIconAvailable == 1 &&
- gSATContext.isCMDIconSupported == MMI_FALSE)
- {
- dataPtr->res = SAT_CMD_PERFORMED_BUT_ICON_COULD_NOT_DSPL;
- }
- else
- {
- /* end, diamond */
- dataPtr->res = res;
- }
- dataPtr->additional_info = addInfo;
- memcpy(dataPtr->cmd_detail, cmdDetail, 5 * sizeof(U8));
- Message->oslDataPtr = (oslParaType*) dataPtr;
- Message->oslPeerBuffPtr = NULL;
- SEND_MSG(Message);
- gSATContext.lastSATCmd = SAT_NONE_CMD;
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendDTMFStage2Rsp
- * DESCRIPTION
- * Protocol Handler for SEND DTMF STAGE 2 RES
- * PARAMETERS
- * msgPtr [IN] Pointer to data from L4
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDTMFStage2Rsp(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- FreeSendDTMF();
- }
- /*****************************************************************************
- * FUNCTION
- * FreeSendDTMF
- * DESCRIPTION
- * Frees various elements of Send DTMF Structure
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void FreeSendDTMF(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SATClearAllIcons();
- /* micha1008 */
- if (gSATSendDTMF.alphaId)
- {
- OslMfree(gSATSendDTMF.alphaId);
- }
- gSATSendDTMF.noAlphaId = 0;
- gSATSendDTMF.alphaId = NULL;
- if (gSATSendDTMF.dtmf)
- {
- OslMfree(gSATSendDTMF.dtmf);
- }
- gSATSendDTMF.noDtmf = 0;
- gSATSendDTMF.dtmf = NULL;
- }
- /*****************************************************************************
- * FUNCTION
- * SATSetupIdleDisplayInd
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- /* micha1016 */
- void SATSetupIdleDisplayInd(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- mmi_sat_setup_idle_display_ind_struct *setupIdleDisplayInd;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- setupIdleDisplayInd = (mmi_sat_setup_idle_display_ind_struct*) msgPtr;
- if (setupIdleDisplayInd->is_icon_available && !setupIdleDisplayInd->no_text_string)
- {
- TerminalResponseSetupIdleDisplay(SAT_CMD_DATA_NOT_UNDERSTAND_BY_ME, setupIdleDisplayInd->cmd_detail);
- return;
- }
- if (gSATContext.idleTextPtr != NULL)
- {
- OslMfree(gSATContext.idleTextPtr);
- gSATContext.idleTextPtr = NULL;
- }
- if (gSATContext.idleIconPtr != NULL)
- {
- OslMfree(gSATContext.idleIconPtr);
- gSATContext.idleIconPtr = NULL;
- }
- memcpy(gSATDisplayIdleText.cmdDetail, (void*)setupIdleDisplayInd->cmd_detail, 5 * sizeof(U8));
- gSATDisplayIdleText.noTextString = setupIdleDisplayInd->no_text_string;
- gSATDisplayIdleText.dcsOfTextString = setupIdleDisplayInd->dcs_of_text_string;
- /* micha0418, spec 12.15, always gsm default encoding */
- if (gSATDisplayIdleText.dcsOfTextString == MMI_8BIT_DCS)
- {
- gSATDisplayIdleText.dcsOfTextString = MMI_DEFAULT_DCS;
- }
- if (gSATDisplayIdleText.noTextString)
- {
- gSATDisplayIdleText.textString = CovertStringForPlatform(
- setupIdleDisplayInd->text_string,
- setupIdleDisplayInd->no_text_string,
- gSATDisplayIdleText.dcsOfTextString,
- &setupIdleDisplayInd->no_text_string);
- }
- else
- {
- if (g_idle_context.IsOnIdleScreen)
- {
- EntryIdleScreen();
- }
- TerminalResponseSetupIdleDisplay(SAT_CMD_PERFORMED_SUCCESSFULLY, gSATDisplayIdleText.cmdDetail);
- SATClearAllIcons();
- return;
- }
- gSATDisplayIdleText.isIconAvailable = setupIdleDisplayInd->is_icon_available;
- if (gSATDisplayIdleText.isIconAvailable)
- {
- gSATDisplayIdleText.iconInfo.iconId = setupIdleDisplayInd->icon_info.icon_id;
- gSATDisplayIdleText.iconInfo.iconAttr = setupIdleDisplayInd->icon_info.icon_attr;
- }
- GoToSATSetupIdleDisplay();
- }
- #ifdef __SAT_MMI_UNIT_TEST__
- /*****************************************************************************
- * FUNCTION
- * SATSetupIdleDisplayTest
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATSetupIdleDisplayTest(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 test_string[] = "micha test";
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gSATContext.idleTextPtr != NULL)
- {
- OslMfree(gSATContext.idleTextPtr);
- gSATContext.idleTextPtr = NULL;
- }
- if (gSATContext.idleIconPtr != NULL)
- {
- OslMfree(gSATContext.idleIconPtr);
- gSATContext.idleIconPtr = NULL;
- }
- gSATDisplayIdleText.noTextString = 10;
- gSATDisplayIdleText.dcsOfTextString = 0;
- if (gSATDisplayIdleText.noTextString)
- {
- gSATDisplayIdleText.textString = CovertStringForPlatform(
- test_string,
- gSATDisplayIdleText.noTextString,
- gSATDisplayIdleText.dcsOfTextString,
- &gSATDisplayIdleText.noTextString);
- }
- else
- {
- if (g_idle_context.IsOnIdleScreen)
- {
- EntryIdleScreen();
- }
- /* TerminalResponseSetupIdleDisplay(SAT_CMD_PERFORMED_SUCCESSFULLY, gSATDisplayIdleText.cmdDetail); */
- SATClearAllIcons();
- return;
- }
- gSATDisplayIdleText.isIconAvailable = 1;
- if (gSATDisplayIdleText.isIconAvailable)
- {
- gSATDisplayIdleText.iconInfo.iconId = 2;
- gSATDisplayIdleText.iconInfo.iconAttr = 1;
- }
- GoToSATSetupIdleDisplay();
- }
- #endif /* __SAT_MMI_UNIT_TEST__ */
- /*****************************************************************************
- * FUNCTION
- * GoToSATSetupIdleDisplay
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void GoToSATSetupIdleDisplay(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *iconData = NULL;
- U32 iconSize;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gSATDisplayIdleText.isIconAvailable)
- {
- SATAddIconIDToList(gSATDisplayIdleText.iconInfo.iconId);
- }
- if (gSATDisplayIdleText.isIconAvailable)
- {
- if (!SATCheckAllIconGot())
- {
- SATGetIconCompleteCallBack = GoToSATSetupIdleDisplay;
- SATGetIconDataToList();
- return;
- }
- }
- if (gSATDisplayIdleText.noTextString < 300)
- {
- gSATContext.idleTextPtr = OslMalloc(sizeof(U8) * gSATDisplayIdleText.noTextString * ENCODING_LENGTH + 4);
- memset(gSATContext.idleTextPtr, 0, gSATDisplayIdleText.noTextString * ENCODING_LENGTH + 4);
- pfnUnicodeStrcpy((PS8) gSATContext.idleTextPtr, (PS8) gSATDisplayIdleText.textString);
- }
- else
- {
- TerminalResponseSetupIdleDisplay(SAT_ME_CURRENTLY_UNABLE_TO_PROCESS_CMD, gSATDisplayIdleText.cmdDetail);
- return;
- }
- if (gSATDisplayIdleText.isIconAvailable)
- {
- iconData = SATGetIconFromList(gSATDisplayIdleText.iconInfo.iconId);
- if (iconData != NULL)
- {
- iconSize =
- (U32) iconData[2] + (((U32) iconData[3]) << 8) + (((U32) iconData[4]) << 16) + (((U32) iconData[5]) << 24) +
- 20;
- gSATContext.idleIconPtr = OslMalloc(sizeof(U8) * iconSize);
- memcpy(gSATContext.idleIconPtr, iconData, iconSize);
- }
- }
- if (gSATDisplayIdleText.isIconAvailable && gSATDisplayIdleText.iconInfo.iconAttr == SAT_ICON_SELF_EX && iconData != NULL)
- {
- if (gSATContext.idleTextPtr)
- {
- OslMfree(gSATContext.idleTextPtr);
- }
- gSATContext.idleTextPtr = NULL;
- }
- if (g_idle_context.IsOnIdleScreen)
- {
- EntryIdleScreen();
- }
- #ifndef __SAT_MMI_UNIT_TEST__
- TerminalResponseSetupIdleDisplay(SAT_CMD_PERFORMED_SUCCESSFULLY, gSATDisplayIdleText.cmdDetail);
- #endif
- if (gSATDisplayIdleText.textString)
- {
- OslMfree(gSATDisplayIdleText.textString);
- gSATDisplayIdleText.textString = NULL;
- }
- SATClearAllIcons();
- }
- /*****************************************************************************
- * FUNCTION
- * TerminalResponseSetupIdleDisplay
- * DESCRIPTION
- *
- * PARAMETERS
- * res [IN]
- * cmdDetail [?]
- * RETURNS
- * void
- *****************************************************************************/
- void TerminalResponseSetupIdleDisplay(U8 res, U8 *cmdDetail)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYQUEUE *Message;
- mmi_sat_setup_idle_display_res_req_struct *dataPtr;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- Message = ALLOCATE_ITM(MOD_MMI);
- Message->oslSrcId = MOD_MMI;
- Message->oslDestId = MOD_L4C;
- Message->oslMsgId = PRT_MMI_SAT_SETUP_IDLE_DISPLAY_RES_REQ;
- dataPtr =
- (mmi_sat_setup_idle_display_res_req_struct*)
- OslConstructDataPtr(sizeof(mmi_sat_setup_idle_display_res_req_struct));
- /* diamond, 2005/05/24 icon */
- if (res == SAT_CMD_PERFORMED_SUCCESSFULLY && gSATDisplayIdleText.isIconAvailable == 1 && gSATContext.isCMDIconSupported == MMI_FALSE)
- {
- dataPtr->res = SAT_CMD_PERFORMED_BUT_ICON_COULD_NOT_DSPL;
- }
- else
- {
- /* end, diamond */
- dataPtr->res = res;
- }
- memcpy(dataPtr->cmd_detail, cmdDetail, 5 * sizeof(U8));
- Message->oslDataPtr = (oslParaType*) dataPtr;
- Message->oslPeerBuffPtr = NULL;
- SEND_MSG(Message);
- }
- /*****************************************************************************
- * FUNCTION
- * SATRunATCommandInd
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- void SATRunATCommandInd(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- mmi_sat_run_at_command_ind_struct *displayATCommand;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- displayATCommand = (mmi_sat_run_at_command_ind_struct*) msgPtr;
- if ((GetCurrentState() == CM_OUTGOING_STATE) || (GetCurrentState() == CM_INCOMING_STATE))
- {
- return;
- }
- SATClearAllIcons();
- if (gSATRunATCommand.alphaID)
- {
- OslMfree(gSATRunATCommand.alphaID);
- gSATRunATCommand.alphaID = NULL;
- }
- memcpy(gSATRunATCommand.cmdDetail, (void*)displayATCommand->cmd_detail, 5 * sizeof(U8));
- gSATRunATCommand.isIconAvailable = displayATCommand->is_icon_available;
- if (gSATRunATCommand.isIconAvailable)
- {
- gSATRunATCommand.iconInfo.iconId = displayATCommand->icon_info.icon_id;
- gSATRunATCommand.iconInfo.iconAttr = displayATCommand->icon_info.icon_attr;
- }
- gSATRunATCommand.noAlphaId = displayATCommand->no_alpha_id;
- gSATRunATCommand.isAlphaIdPresent = displayATCommand->is_alpha_id_present;
- gSATRunATCommand.dcsOfAlphaId = displayATCommand->dcs_of_alpha_id;
- if (gSATRunATCommand.isAlphaIdPresent)
- {
- if (gSATRunATCommand.noAlphaId)
- {
- gSATRunATCommand.alphaID = CovertStringForPlatform(
- displayATCommand->alpha_id,
- gSATRunATCommand.noAlphaId,
- gSATRunATCommand.dcsOfAlphaId,
- &gSATRunATCommand.noAlphaId);
- gSATRunATCommand.informUser = 1;
- }
- else
- {
- gSATRunATCommand.informUser = 0;
- }
- }
- else
- {
- gSATRunATCommand.informUser = 0;
- }
- if (gSATRunATCommand.isIconAvailable && gSATRunATCommand.iconInfo.iconAttr == SAT_ICON_SELF_EX)
- {
- if (gSATRunATCommand.alphaID)
- {
- OslMfree(gSATRunATCommand.alphaID);
- }
- gSATRunATCommand.alphaID = NULL;
- gSATRunATCommand.noAlphaId = 0;
- }
- if (gSATRunATCommand.informUser)
- {
- SATStopWaitTimer();
- DeleteScreenIfPresent(SCR_ID_SAT_HISTORY);
- if (GetExitScrnID() == SCR_ID_SAT_HISTORY)
- {
- ClearExitHandler();
- }
- DisplayATCommandScreen();
- }
- else
- {
- if (gSATRunATCommand.alphaID)
- {
- OslMfree(gSATRunATCommand.alphaID);
- gSATRunATCommand.alphaID = NULL;
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * DisplayATCommandScreen
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void DisplayATCommandScreen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *iconData = NULL;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gSATRunATCommand.isIconAvailable)
- {
- SATAddIconIDToList(gSATRunATCommand.iconInfo.iconId);
- }
- if (gSATRunATCommand.isIconAvailable)
- {
- if (!SATCheckAllIconGot())
- {
- SATGetIconCompleteCallBack = DisplayATCommandScreen;
- SATGetIconDataToList();
- return;
- }
- }
- iconData = SATGetIconFromList(gSATRunATCommand.iconInfo.iconId);
- EntryNewScreen(SCR_ID_SAT_SEND_AT_CMD, ExitDisplayATCommandScreen, NULL, NULL);
- ShowCategory151Screen(0, 0, 0, 0, 0, 0, gSATRunATCommand.alphaID, iconData, NULL);
- StartTimer(POPUP_TIMER, 1000, DisplayATCommandTimerOver);
- }
- /*****************************************************************************
- * FUNCTION
- * ExitDisplayATCommandScreen
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void ExitDisplayATCommandScreen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gSATRunATCommand.alphaID)
- {
- OslMfree(gSATRunATCommand.alphaID);
- gSATRunATCommand.alphaID = NULL;
- }
- SATClearAllIcons();
- StopTimer(POPUP_TIMER);
- }
- /*****************************************************************************
- * FUNCTION
- * DisplayATCommandTimerOver
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void DisplayATCommandTimerOver(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- StopTimer(POPUP_TIMER);
- if (gSATRunATCommand.alphaID)
- {
- OslMfree(gSATRunATCommand.alphaID);
- gSATRunATCommand.alphaID = NULL;
- }
- SATClearAllIcons();
- GoBackHistory();
- }
- /*****************************************************************************
- * FUNCTION
- * SATGenericExitHandler
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATGenericExitHandler(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* diamond, 2005/07/22 GET INPUT numeric input without 'p' and 'w' */
- MMI_current_input_ext_type &= ~INPUT_TYPE_EXT_SIM_NUMERIC;
- #ifdef __MMI_SAT_DISPLAY_TEXT_WITH_KEYPAD_LOCK__
- if (gSATContext.idleSATCmd)
- {
- PRINT_INFORMATION(("[SAT] NOT save SAT screen to the history"));
- }
- else
- #endif
- if (!(*gSATContext.exitCondition))
- {
- PRINT_INFORMATION(("[SAT] save SAT screen to the history"));
- SATSaveHistory();
- }
- else
- {
- PRINT_INFORMATION(("[SAT] NOT save SAT screen to the history"));
- }
- }
- /* micha0125 begin */
- /*****************************************************************************
- * FUNCTION
- * SATScrKeyHandler
- * DESCRIPTION
- *
- * PARAMETERS
- * eventKey [?]
- * RETURNS
- * void
- *****************************************************************************/
- U8 SATScrKeyHandler(KEYBRD_MESSAGE *eventKey)
- {
- #ifdef __USAT__
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if ((gSATContext.lastSATCmd == SAT_DISPLAY_TEXT_CMD && gSATDisplayText.clearTextType == SAT_CLEAR_AFTER_DELAY)
- || (gSATContext.lastSATCmd == SAT_DISPLAY_TEXT_CMD && gSATDisplayText.duration != 0)
- || (gSATContext.lastSATCmd == SAT_DISPLAY_TEXT_CMD && gSATDisplayText.duration != 0))
- {
- return MMI_TRUE; /* not need to restart timer in these cases */
- }
- #endif /* __USAT__ */
- if (eventKey->nMsgType == KEY_EVENT_DOWN)
- {
- TemporaryStopSATTimerNoResponsefromUser();
- TemporaryStopSATTimerHelp();
- }
- if (eventKey->nMsgType == KEY_EVENT_UP)
- {
- RestartSATTimerNoResponsefromUser();
- RestartSATTimerHelp();
- }
- return (MMI_TRUE);
- }
- /*****************************************************************************
- * FUNCTION
- * SetIsInSATScreen
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SetIsInSATScreen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("[SAT] set in SAT screen"));
- gSATContext.isInSATScreen = 1;
- mmi_frm_kbd_reg_pre_key_hdlr(SATScrKeyHandler);
- }
- /*****************************************************************************
- * FUNCTION
- * ClearIsInSATScreen
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void ClearIsInSATScreen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("[SAT] clear in SAT screen"));
- gSATContext.isInSATScreen = 0;
- mmi_frm_kbd_reg_pre_key_hdlr(NULL);
- }
- /* micha0125 end */
- #ifdef __SATCE__
- /*****************************************************************************
- * FUNCTION
- * SATOpenChannelInd
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- void SATOpenChannelInd(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- mmi_sat_open_channel_ind_struct *openChannelInd;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- guiBufferPointer = NULL;
- openChannelInd = (mmi_sat_open_channel_ind_struct*) msgPtr;
- FreeOpenChannel();
- satOpenChannel.Stage1Res = 0;
- satOpenChannel.dcsOfAlphaId = openChannelInd->dcs_of_alpha_id;
- satOpenChannel.noAlphaId = openChannelInd->no_alpha_id;
- if (openChannelInd->is_alpha_id_present)
- {
- if (satOpenChannel.noAlphaId)
- {
- satOpenChannel.alphaID = CovertStringForPlatform(
- openChannelInd->alpha_id,
- satOpenChannel.noAlphaId,
- satOpenChannel.dcsOfAlphaId,
- &satOpenChannel.noAlphaId);
- satOpenChannel.informUser = 1;
- }
- else
- {
- satOpenChannel.informUser = 0;
- }
- }
- else
- {
- satOpenChannel.noAlphaId = pfnUnicodeStrlen((PS8) (PU8) GetString(SAT_OPEN_CHANNEL_CONF_STRING_ID)) * ENCODING_LENGTH;
- satOpenChannel.alphaID = (PU8) OslMalloc(satOpenChannel.noAlphaId + ENCODING_LENGTH);
- memcpy(
- satOpenChannel.alphaID,
- (PU8) GetString(SAT_OPEN_CHANNEL_CONF_STRING_ID),
- satOpenChannel.noAlphaId + ENCODING_LENGTH);
- satOpenChannel.informUser = 1;
- }
- memcpy(satOpenChannel.cmdDetail, openChannelInd->cmd_detail, 5 * sizeof(U8));
- satOpenChannel.isIconAvailable = openChannelInd->is_icon_available;
- if (satOpenChannel.isIconAvailable)
- {
- satOpenChannel.iconInfo.iconId = openChannelInd->icon_info.icon_id;
- satOpenChannel.iconInfo.iconAttr = openChannelInd->icon_info.icon_attr;
- }
- if (satOpenChannel.isIconAvailable && satOpenChannel.iconInfo.iconAttr == SAT_ICON_SELF_EX)
- {
- if (satOpenChannel.alphaID)
- {
- OslMfree(satOpenChannel.alphaID);
- }
- satOpenChannel.alphaID = NULL;
- satOpenChannel.noAlphaId = 0;
- }
- if (satOpenChannel.informUser)
- {
- SATStopWaitTimer();
- DeleteScreenIfPresent(SCR_ID_SAT_HISTORY);
- if (GetExitScrnID() == SCR_ID_SAT_HISTORY)
- {
- ClearExitHandler();
- }
- GoToOpenChannelConformationScreen();
- }
- else
- {
- SATOpenChannelReq();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * GoToOpenChannelConformationScreen
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void GoToOpenChannelConformationScreen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *iconData = NULL;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (satOpenChannel.isIconAvailable)
- {
- SATAddIconIDToList(satOpenChannel.iconInfo.iconId);
- }
- if (satOpenChannel.isIconAvailable)
- {
- if (!SATCheckAllIconGot())
- {
- SATGetIconCompleteCallBack = GoToOpenChannelConformationScreen;
- SATGetIconDataToList();
- return;
- }
- }
- iconData = SATGetIconFromList(satOpenChannel.iconInfo.iconId);
- gSATContext.exitCondition = &satOpenChannel.Stage1Res;
- EntryNewScreen(SAT_OPEN_CHANNEL_CONF_SCREENID, SATGenericExitHandler, NULL, NULL);
- SetIsInSATScreen();
- gSATContext.historyFuncPtr = GoToOpenChannelConformationScreen;
- ClearHighlightHandler();
- ShowCategory151Screen(
- 0,
- 0,
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- satOpenChannel.alphaID,
- iconData,
- gSATContext.guiBufferPointer);
- SetKeyHandler(SATOpenChannelTerminalResponseExpire, KEY_END, KEY_EVENT_DOWN);
- SetLeftSoftkeyFunction(SATOpenChannelReq, KEY_EVENT_UP);
- SetRightSoftkeyFunction(SATOpenChannelTerminalResponseUnable, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * SATOpenChannelTerminalResponseExpire
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATOpenChannelTerminalResponseExpire(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- TerminalResponseOpenChannel(SAT_PROACTIVE_CMD_TERMINATED_BY_USER, satOpenChannel.cmdDetail);
- ExitSATToIdle();
- }
- /*****************************************************************************
- * FUNCTION
- * SATOpenChannelTerminalResponseUnable
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATOpenChannelTerminalResponseUnable(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- TerminalResponseOpenChannel(SAT_USER_DID_NOT_ACCEPT_THE_PROACTIVE_CMD, satOpenChannel.cmdDetail);
- SATPleaseWaitScreen(SAT_WAIT_STRING_ID, SAT_WAIT_IMAGE_ID);
- }
- /*****************************************************************************
- * FUNCTION
- * TerminalResponseOpenChannel
- * DESCRIPTION
- *
- * PARAMETERS
- * res [IN]
- * cmdDetail [?]
- * RETURNS
- * void
- *****************************************************************************/
- void TerminalResponseOpenChannel(U8 res, U8 *cmdDetail)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYQUEUE *Message;
- mmi_sat_open_channel_req_struct *dataPtr;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- satOpenChannel.Stage1Res = 1;
- Message = ALLOCATE_ITM(MOD_MMI);
- Message->oslSrcId = MOD_MMI;
- Message->oslDestId = MOD_L4C;
- Message->oslMsgId = MSG_ID_MMI_SAT_OPEN_CHANNEL_REQ;
- dataPtr = (mmi_sat_open_channel_req_struct*) OslConstructDataPtr(sizeof(mmi_sat_open_channel_req_struct));
- dataPtr->res = res;
- memcpy(dataPtr->cmd_detail, cmdDetail, 5 * sizeof(U8));
- Message->oslDataPtr = (oslParaType*) dataPtr;
- Message->oslPeerBuffPtr = NULL;
- SEND_MSG(Message);
- }
- /*****************************************************************************
- * FUNCTION
- * SATOpenChannelReq
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATOpenChannelReq(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- satOpenChannel.Stage2Res = 0;
- TerminalResponseOpenChannel(SAT_CMD_PERFORMED_SUCCESSFULLY, satOpenChannel.cmdDetail);
- if (satOpenChannel.informUser)
- {
- DisplayOpenChannelWindow();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * DisplayOpenChannelWindow
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void DisplayOpenChannelWindow(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gSATContext.exitCondition = &satOpenChannel.Stage2Res;
- EntryNewScreen(SAT_OPEN_CHANNEL_SCREENID, SATGenericExitHandler, NULL, NULL);
- SetIsInSATScreen();
- gSATContext.historyFuncPtr = DisplayOpenChannelWindow;
- ClearHighlightHandler();
- ShowCategory151Screen(
- 0,
- 0,
- 0,
- 0,
- 0,
- 0,
- (PU8) GetString(SAT_OPEN_CHANNEL_STRING_ID),
- 0,
- gSATContext.guiBufferPointer);
- SetKeyHandler(0, KEY_END, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * SATOpenChannelRes
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- void SATOpenChannelRes(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- mmi_sat_open_channel_rsp_struct *openChannelRes;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- openChannelRes = (mmi_sat_open_channel_rsp_struct*) msgPtr;
- satOpenChannel.Stage2Res = 1;
- if (satOpenChannel.informUser)
- {
- if (openChannelRes->terminal_res == SAT_CMD_PERFORMED_SUCCESSFULLY ||
- openChannelRes->terminal_res == SAT_CMD_PERFORMED_WITH_PARTIAL_COMPREHENSION ||
- openChannelRes->terminal_res == SAT_CMD_PERFORMED_WITH_MISSING_INFO)
- {
- SATPleaseWaitScreen(SAT_OPEN_CHANNEL_SUCCESS_STRING_ID, 0);
- }
- else
- {
- SATPleaseWaitScreen(SAT_OPEN_CHANNEL_FAIL_STRING_ID, 0);
- }
- }
- FreeOpenChannel();
- }
- /*****************************************************************************
- * FUNCTION
- * FreeOpenChannel
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void FreeOpenChannel(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SATClearAllIcons();
- /* micha1008 */
- if (satOpenChannel.alphaID)
- {
- OslMfree(satOpenChannel.alphaID);
- }
- satOpenChannel.noAlphaId = 0;
- satOpenChannel.alphaID = NULL;
- }
- /*****************************************************************************
- * FUNCTION
- * SATCloseChannelInd
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- void SATCloseChannelInd(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- mmi_sat_close_channel_ind_struct *closeChannelInd;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- closeChannelInd = (mmi_sat_close_channel_ind_struct*) msgPtr;
- memcpy(satCloseChannel.cmdDetail, (void*)closeChannelInd->cmd_detail, 5 * sizeof(U8));
- satCloseChannel.isIconAvailable = closeChannelInd->is_icon_available;
- if (satCloseChannel.isIconAvailable)
- {
- satCloseChannel.iconInfo.iconId = closeChannelInd->icon_info.icon_id;
- satCloseChannel.iconInfo.iconAttr = closeChannelInd->icon_info.icon_attr;
- }
- satCloseChannel.noAlphaId = closeChannelInd->no_alpha_id;
- satCloseChannel.isAlphaIdPresent = closeChannelInd->is_alpha_id_present;
- satCloseChannel.dcsOfAlphaId = closeChannelInd->dcs_of_alpha_id;
- if (satCloseChannel.isAlphaIdPresent)
- {
- if (satCloseChannel.noAlphaId)
- {
- satCloseChannel.alphaID = CovertStringForPlatform(
- closeChannelInd->alpha_id,
- satCloseChannel.noAlphaId,
- satCloseChannel.dcsOfAlphaId,
- &satCloseChannel.noAlphaId);
- satCloseChannel.informUser = 1;
- }
- else
- {
- satCloseChannel.informUser = 0;
- }
- }
- else
- {
- satCloseChannel.informUser = 0;
- }
- if (satCloseChannel.isIconAvailable && satCloseChannel.iconInfo.iconAttr == SAT_ICON_SELF_EX)
- {
- if (satCloseChannel.alphaID)
- {
- OslMfree(satCloseChannel.alphaID);
- }
- satCloseChannel.alphaID = NULL;
- satCloseChannel.noAlphaId = 0;
- }
- if (satCloseChannel.informUser)
- {
- DisplayCloseChannelScreen();
- }
- else
- {
- if (satCloseChannel.alphaID)
- {
- OslMfree(satCloseChannel.alphaID);
- satCloseChannel.alphaID = NULL;
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * DisplayCloseChannelScreen
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void DisplayCloseChannelScreen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *iconData = NULL;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (satCloseChannel.isIconAvailable)
- {
- SATAddIconIDToList(satCloseChannel.iconInfo.iconId);
- }
- if (satCloseChannel.isIconAvailable)
- {
- if (!SATCheckAllIconGot())
- {
- SATGetIconCompleteCallBack = DisplayCloseChannelScreen;
- SATGetIconDataToList();
- return;
- }
- }
- iconData = SATGetIconFromList(satCloseChannel.iconInfo.iconId);
- EntryNewScreen(SAT_CLOSE_CHANNEL_SCREENID, ExitCloseChannelScreen, NULL, NULL);
- ShowCategory151Screen(0, 0, 0, 0, 0, 0, satCloseChannel.alphaID, iconData, NULL);
- StartTimer(POPUP_TIMER, 1000, CloseChannelCommandTimerOver);
- }
- /*****************************************************************************
- * FUNCTION
- * ExitCloseChannelScreen
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void ExitCloseChannelScreen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SATClearAllIcons();
- if (satCloseChannel.alphaID)
- {
- OslMfree(satCloseChannel.alphaID);
- satCloseChannel.alphaID = NULL;
- }
- StopTimer(POPUP_TIMER);
- }
- /*****************************************************************************
- * FUNCTION
- * CloseChannelCommandTimerOver
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void CloseChannelCommandTimerOver(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SATClearAllIcons();
- if (satCloseChannel.alphaID)
- {
- OslMfree(satCloseChannel.alphaID);
- satCloseChannel.alphaID = NULL;
- }
- StopTimer(POPUP_TIMER);
- GoBackHistory();
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendDataInd
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDataInd(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- mmi_sat_send_data_ind_struct *sendDataInd;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- guiBufferPointer = NULL;
- sendDataInd = (mmi_sat_send_data_ind_struct*) msgPtr;
- satSendData.Stage1Res = 0;
- satSendData.dcsOfAlphaId = sendDataInd->dcs_of_alpha_id;
- satSendData.noAlphaId = sendDataInd->no_alpha_id;
- FreeSendData();
- if (sendDataInd->is_alpha_id_present)
- {
- if (satSendData.noAlphaId)
- {
- satSendData.alphaID = CovertStringForPlatform(
- sendDataInd->alpha_id,
- satSendData.noAlphaId,
- satSendData.dcsOfAlphaId,
- &satSendData.noAlphaId);
- satSendData.informUser = 1;
- }
- else
- {
- satSendData.informUser = 0;
- }
- }
- else
- {
- satSendData.noAlphaId = pfnUnicodeStrlen((PS8) (PU8) GetString(SAT_SEND_DATA_CONF_STRING_ID)) * ENCODING_LENGTH;
- satSendData.alphaID = (PU8) OslMalloc(satSendData.noAlphaId + ENCODING_LENGTH);
- memcpy(
- satSendData.alphaID,
- (PU8) GetString(SAT_SEND_DATA_CONF_STRING_ID),
- satSendData.noAlphaId + ENCODING_LENGTH);
- satSendData.informUser = 1;
- }
- memcpy(satSendData.cmdDetail, sendDataInd->cmd_detail, 5 * sizeof(U8));
- satSendData.isIconAvailable = sendDataInd->is_icon_available;
- if (satSendData.isIconAvailable)
- {
- satSendData.iconInfo.iconId = sendDataInd->icon_info.icon_id;
- satSendData.iconInfo.iconAttr = sendDataInd->icon_info.icon_attr;
- }
- if (satSendData.isIconAvailable && satSendData.iconInfo.iconAttr == SAT_ICON_SELF_EX)
- {
- if (satSendData.alphaID)
- {
- OslMfree(satSendData.alphaID);
- }
- satSendData.alphaID = NULL;
- satSendData.noAlphaId = 0;
- }
- if (satSendData.informUser)
- {
- SATStopWaitTimer();
- DeleteScreenIfPresent(SCR_ID_SAT_HISTORY);
- if (GetExitScrnID() == SCR_ID_SAT_HISTORY)
- {
- ClearExitHandler();
- }
- GoToSendDataConformationScreen();
- }
- else
- {
- SATSendDataReq();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * GoToSendDataConformationScreen
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void GoToSendDataConformationScreen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *iconData = NULL;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (satSendData.isIconAvailable)
- {
- SATAddIconIDToList(satSendData.iconInfo.iconId);
- }
- if (satSendData.isIconAvailable)
- {
- if (!SATCheckAllIconGot())
- {
- SATGetIconCompleteCallBack = GoToSendDataConformationScreen;
- SATGetIconDataToList();
- return;
- }
- }
- iconData = SATGetIconFromList(satSendData.iconInfo.iconId);
- gSATContext.exitCondition = &satSendData.Stage1Res;
- EntryNewScreen(SAT_SEND_DATA_CONF_SCREENID, SATGenericExitHandler, NULL, NULL);
- SetIsInSATScreen();
- gSATContext.historyFuncPtr = GoToSendDataConformationScreen;
- ClearHighlightHandler();
- ShowCategory151Screen(
- 0,
- 0,
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- satSendData.alphaID,
- iconData,
- gSATContext.guiBufferPointer);
- SetKeyHandler(SATSendDataTerminalResponseExpire, KEY_END, KEY_EVENT_DOWN);
- SetLeftSoftkeyFunction(SATSendDataReq, KEY_EVENT_UP);
- SetRightSoftkeyFunction(SATSendDataTerminalResponseUnable, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendDataTerminalResponseExpire
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDataTerminalResponseExpire(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- TerminalResponseSendData(SAT_PROACTIVE_CMD_TERMINATED_BY_USER, satSendData.cmdDetail);
- ExitSATToIdle();
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendDataTerminalResponseUnable
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDataTerminalResponseUnable(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- TerminalResponseSendData(SAT_USER_DID_NOT_ACCEPT_THE_PROACTIVE_CMD, satSendData.cmdDetail);
- SATPleaseWaitScreen(SAT_WAIT_STRING_ID, SAT_WAIT_IMAGE_ID);
- }
- /*****************************************************************************
- * FUNCTION
- * TerminalResponseSendData
- * DESCRIPTION
- *
- * PARAMETERS
- * res [IN]
- * cmdDetail [?]
- * RETURNS
- * void
- *****************************************************************************/
- void TerminalResponseSendData(U8 res, U8 *cmdDetail)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYQUEUE *Message;
- mmi_sat_send_data_req_struct *dataPtr;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- satSendData.Stage1Res = 1;
- Message = ALLOCATE_ITM(MOD_MMI);
- Message->oslSrcId = MOD_MMI;
- Message->oslDestId = MOD_L4C;
- Message->oslMsgId = MSG_ID_MMI_SAT_OPEN_CHANNEL_REQ;
- dataPtr = (mmi_sat_send_data_req_struct*) OslConstructDataPtr(sizeof(mmi_sat_send_data_req_struct));
- dataPtr->res = res;
- memcpy(dataPtr->cmd_detail, cmdDetail, 5 * sizeof(U8));
- Message->oslDataPtr = (oslParaType*) dataPtr;
- Message->oslPeerBuffPtr = NULL;
- SEND_MSG(Message);
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendDataReq
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDataReq(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- satSendData.Stage2Res = 0;
- if (satSendData.informUser)
- {
- DisplaySendDataWindow();
- }
- TerminalResponseSendData(SAT_CMD_PERFORMED_SUCCESSFULLY, satOpenChannel.cmdDetail);
- }
- /*****************************************************************************
- * FUNCTION
- * DisplaySendDataWindow
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void DisplaySendDataWindow(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gSATContext.exitCondition = &satSendData.Stage2Res;
- EntryNewScreen(SAT_SEND_DATA_SCREENID, SATGenericExitHandler, NULL, NULL);
- SetIsInSATScreen();
- gSATContext.historyFuncPtr = DisplaySendDataWindow;
- ClearHighlightHandler();
- ShowCategory151Screen(0, 0, 0, 0, 0, 0, (PU8) GetString(SAT_SEND_DATA_STRING_ID), 0, gSATContext.guiBufferPointer);
- SetKeyHandler(0, KEY_END, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * SATSendDataRes
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- void SATSendDataRes(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- mmi_sat_send_data_rsp_struct *sendDataRes;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- sendDataRes = (mmi_sat_send_data_rsp_struct*) msgPtr;
- satSendData.Stage2Res = 1;
- if (satSendData.informUser)
- {
- if (sendDataRes->terminal_res == SAT_CMD_PERFORMED_SUCCESSFULLY ||
- sendDataRes->terminal_res == SAT_CMD_PERFORMED_WITH_PARTIAL_COMPREHENSION ||
- sendDataRes->terminal_res == SAT_CMD_PERFORMED_WITH_MISSING_INFO)
- {
- SATPleaseWaitScreen(SAT_SEND_DATA_SUCCESS_STRING_ID, 0);
- }
- else
- {
- SATPleaseWaitScreen(SAT_SEND_DATA_FAIL_STRING_ID, 0);
- }
- }
- FreeSendData();
- }
- /*****************************************************************************
- * FUNCTION
- * FreeSendData
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void FreeSendData(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SATClearAllIcons();
- /* micha1008 */
- if (satSendData.alphaID)
- {
- OslMfree(satSendData.alphaID);
- }
- satSendData.noAlphaId = 0;
- satSendData.alphaID = NULL;
- }
- /*****************************************************************************
- * FUNCTION
- * SATRecvDataInd
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- void SATRecvDataInd(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- mmi_sat_recv_data_ind_struct *recvDataInd;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- guiBufferPointer = NULL;
- recvDataInd = (mmi_sat_recv_data_ind_struct*) msgPtr;
- satRecvData.Stage1Res = 0;
- satRecvData.dcsOfAlphaId = recvDataInd->dcs_of_alpha_id;
- satRecvData.noAlphaId = recvDataInd->no_alpha_id;
- FreeRecvData();
- if (recvDataInd->is_alpha_id_present)
- {
- if (satRecvData.noAlphaId)
- {
- satRecvData.alphaID = CovertStringForPlatform(
- recvDataInd->alpha_id,
- satRecvData.noAlphaId,
- satRecvData.dcsOfAlphaId,
- &satRecvData.noAlphaId);
- satRecvData.informUser = 1;
- }
- else
- {
- satRecvData.informUser = 0;
- }
- }
- else
- {
- satRecvData.noAlphaId = pfnUnicodeStrlen((PS8) (PU8) GetString(SAT_RECV_DATA_CONF_STRING_ID)) * ENCODING_LENGTH;
- satRecvData.alphaID = (PU8) OslMalloc(satRecvData.noAlphaId + ENCODING_LENGTH);
- memcpy(
- satRecvData.alphaID,
- (PU8) GetString(SAT_RECV_DATA_CONF_STRING_ID),
- satRecvData.noAlphaId + ENCODING_LENGTH);
- satRecvData.informUser = 1;
- }
- memcpy(satRecvData.cmdDetail, recvDataInd->cmd_detail, 5 * sizeof(U8));
- satRecvData.isIconAvailable = recvDataInd->is_icon_available;
- if (satRecvData.isIconAvailable)
- {
- satRecvData.iconInfo.iconId = recvDataInd->icon_info.icon_id;
- satRecvData.iconInfo.iconAttr = recvDataInd->icon_info.icon_attr;
- }
- if (satRecvData.isIconAvailable && satRecvData.iconInfo.iconAttr == SAT_ICON_SELF_EX)
- {
- if (satRecvData.alphaID)
- {
- OslMfree(satRecvData.alphaID);
- }
- satRecvData.alphaID = NULL;
- satRecvData.noAlphaId = 0;
- }
- if (satRecvData.informUser)
- {
- SATStopWaitTimer();
- DeleteScreenIfPresent(SCR_ID_SAT_HISTORY);
- if (GetExitScrnID() == SCR_ID_SAT_HISTORY)
- {
- ClearExitHandler();
- }
- GoToRecvDataConformationScreen();
- }
- else
- {
- SATRecvDataReq();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * GoToRecvDataConformationScreen
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void GoToRecvDataConformationScreen(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *iconData = NULL;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (satRecvData.isIconAvailable)
- {
- SATAddIconIDToList(satRecvData.iconInfo.iconId);
- }
- if (satRecvData.isIconAvailable)
- {
- if (!SATCheckAllIconGot())
- {
- SATGetIconCompleteCallBack = GoToRecvDataConformationScreen;
- SATGetIconDataToList();
- return;
- }
- }
- iconData = SATGetIconFromList(satRecvData.iconInfo.iconId);
- gSATContext.exitCondition = &satRecvData.Stage1Res;
- EntryNewScreen(SAT_RECV_DATA_CONF_SCREENID, SATGenericExitHandler, NULL, NULL);
- SetIsInSATScreen();
- gSATContext.historyFuncPtr = GoToRecvDataConformationScreen;
- ClearHighlightHandler();
- ShowCategory151Screen(
- 0,
- 0,
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- satRecvData.alphaID,
- iconData,
- gSATContext.guiBufferPointer);
- SetKeyHandler(SATRecvDataTerminalResponseExpire, KEY_END, KEY_EVENT_DOWN);
- SetLeftSoftkeyFunction(SATRecvDataReq, KEY_EVENT_UP);
- SetRightSoftkeyFunction(SATRecvDataTerminalResponseUnable, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * SATRecvDataTerminalResponseExpire
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATRecvDataTerminalResponseExpire(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- TerminalResponseRecvData(SAT_PROACTIVE_CMD_TERMINATED_BY_USER, satRecvData.cmdDetail);
- ExitSATToIdle();
- }
- /*****************************************************************************
- * FUNCTION
- * SATRecvDataTerminalResponseUnable
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATRecvDataTerminalResponseUnable(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- TerminalResponseRecvData(SAT_USER_DID_NOT_ACCEPT_THE_PROACTIVE_CMD, satRecvData.cmdDetail);
- SATPleaseWaitScreen(SAT_WAIT_STRING_ID, SAT_WAIT_IMAGE_ID);
- }
- /*****************************************************************************
- * FUNCTION
- * TerminalResponseRecvData
- * DESCRIPTION
- *
- * PARAMETERS
- * res [IN]
- * cmdDetail [?]
- * RETURNS
- * void
- *****************************************************************************/
- void TerminalResponseRecvData(U8 res, U8 *cmdDetail)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYQUEUE *Message;
- mmi_sat_recv_data_req_struct *dataPtr;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- satRecvData.Stage1Res = 1;
- Message = ALLOCATE_ITM(MOD_MMI);
- Message->oslSrcId = MOD_MMI;
- Message->oslDestId = MOD_L4C;
- Message->oslMsgId = MSG_ID_MMI_SAT_OPEN_CHANNEL_REQ;
- dataPtr = (mmi_sat_recv_data_req_struct*) OslConstructDataPtr(sizeof(mmi_sat_recv_data_req_struct));
- dataPtr->res = res;
- memcpy(dataPtr->cmd_detail, cmdDetail, 5 * sizeof(U8));
- Message->oslDataPtr = (oslParaType*) dataPtr;
- Message->oslPeerBuffPtr = NULL;
- SEND_MSG(Message);
- }
- /*****************************************************************************
- * FUNCTION
- * SATRecvDataReq
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SATRecvDataReq(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- satRecvData.Stage2Res = 0;
- TerminalResponseRecvData(SAT_CMD_PERFORMED_SUCCESSFULLY, satOpenChannel.cmdDetail);
- if (satRecvData.informUser)
- {
- DisplayRecvDataWindow();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * DisplayRecvDataWindow
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void DisplayRecvDataWindow(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- gSATContext.exitCondition = &satRecvData.Stage2Res;
- EntryNewScreen(SAT_RECV_DATA_SCREENID, SATGenericExitHandler, NULL, NULL);
- SetIsInSATScreen();
- gSATContext.historyFuncPtr = DisplayRecvDataWindow;
- ClearHighlightHandler();
- ShowCategory151Screen(0, 0, 0, 0, 0, 0, (PU8) GetString(SAT_RECV_DATA_STRING_ID), 0, gSATContext.guiBufferPointer);
- SetKeyHandler(0, KEY_END, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * SATRecvDataRes
- * DESCRIPTION
- *
- * PARAMETERS
- * msgPtr [?]
- * RETURNS
- * void
- *****************************************************************************/
- void SATRecvDataRes(void *msgPtr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- mmi_sat_recv_data_rsp_struct *recvDataRes;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- recvDataRes = (mmi_sat_recv_data_rsp_struct*) msgPtr;
- satRecvData.Stage2Res = 1;
- if (satRecvData.informUser)
- {
- if (recvDataRes->terminal_res == SAT_CMD_PERFORMED_SUCCESSFULLY ||
- recvDataRes->terminal_res == SAT_CMD_PERFORMED_WITH_PARTIAL_COMPREHENSION ||
- recvDataRes->terminal_res == SAT_CMD_PERFORMED_WITH_MISSING_INFO)
- {
- SATPleaseWaitScreen(SAT_RECV_DATA_SUCCESS_STRING_ID, 0);
- }
- else
- {
- SATPleaseWaitScreen(SAT_RECV_DATA_FAIL_STRING_ID, 0);
- }
- }
- FreeRecvData();
- }
- /*****************************************************************************
- * FUNCTION
- * FreeRecvData
- * DESCRIPTION
- *
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void FreeRecvData(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SATClearAllIcons();
- /* micha1008 */
- if (satRecvData.alphaID)
- {
- OslMfree(satRecvData.alphaID);
- }
- satRecvData.noAlphaId = 0;
- satRecvData.alphaID = NULL;
- }
- #endif /* __SATCE__ */
- /* diamond, 2006/01/14 restart please wait timer */
- /*****************************************************************************
- * FUNCTION
- * mmi_sat_restart_please_wait_timer
- * DESCRIPTION
- * Restart please wait timer
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_sat_restart_please_wait_timer(U32 please_wait_time)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (gSATContext.waitTimeExpired == 0)
- {
- StopTimer(SAT_MESSAGE_WAIT_TIMER);
- StartTimer(SAT_MESSAGE_WAIT_TIMER, please_wait_time, SATMessageWaitTimer);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_sat_read_sim_file_with_path
- * DESCRIPTION
- * Read SIM file with EF path
- * PARAMETERS
- * offset [IN]
- * length [IN]
- * path [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_sat_read_sim_file_with_path(U16 offset, U16 length, U8 *path)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYQUEUE *Message;
- mmi_smu_read_sim_req_struct *dataPtr;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetProtocolEventHandler(SATSendReadSimFileRsp, PRT_MMI_SMU_READ_SIM_RSP);
- Message = ALLOCATE_ITM(MOD_MMI);
- Message->oslSrcId = MOD_MMI;
- Message->oslDestId = MOD_L4C;
- Message->oslMsgId = PRT_MMI_SMU_READ_SIM_REQ;
- dataPtr = (mmi_smu_read_sim_req_struct*) OslConstructDataPtr(sizeof(mmi_smu_read_sim_req_struct));
- dataPtr->file_idx = FILE_NONE;
- dataPtr->para = offset; /* icon image offset might be larger than 256 */
- dataPtr->length = length;
- memcpy(dataPtr->path, path, 6); /* read from EF path, total 6 bytes for path */
- Message->oslDataPtr = (oslParaType*) dataPtr;
- Message->oslPeerBuffPtr = NULL;
- SEND_MSG(Message);
- }
- #ifdef __USAT__
- /*****************************************************************************
- * FUNCTION
- * mmi_sat_count_get_inkey_user_rsp
- * DESCRIPTION
- * Count user response time for GET INKEY proactive command
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- U32 mmi_sat_count_get_inkey_user_rsp(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYTIME diff;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- DTGetRTCTime(&gSATGetInkey.stopTime);
- GetTimeDifference(&gSATGetInkey.stopTime, &gSATGetInkey.startTime, &diff);
- /* user response should in several minutes */
- return (diff.nMin * 60 + diff.nSec);
- }
- #endif /* __USAT__ */
- /*****************************************************************************
- * FUNCTION
- * mmi_sat_clear_idle_display_text
- * DESCRIPTION
- * Clear display text if SIM refresh indication is received
- * PARAMETERS
- * refresh_type [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_sat_clear_idle_display_text(U16 refresh_type)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (refresh_type != TYPE_FILE_CHANGE)
- {
- if (gSATContext.idleTextPtr != NULL)
- {
- OslMfree(gSATContext.idleTextPtr);
- gSATContext.idleTextPtr = NULL;
- }
- if (gSATContext.idleIconPtr != NULL)
- {
- OslMfree(gSATContext.idleIconPtr);
- gSATContext.idleIconPtr = NULL;
- }
- if (g_idle_context.IsOnIdleScreen)
- {
- EntryIdleScreen();
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_sat_refresh_to_update_imsi
- * DESCRIPTION
- * Update IMSI if SIM refresh indication is received
- * PARAMETERS
- * refresh_type [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_sat_refresh_to_update_imsi(U16 refresh_type)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (refresh_type != TYPE_FILE_CHANGE)
- {
- RequestToTestRoamingEnabled();
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_sat_nw_detach_before_reboot_hdlr
- * DESCRIPTION
- * Detach network handler before SAT reboot
- * PARAMETERS
- * info [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_sat_nw_detach_before_reboot_hdlr(void *info)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- StopTimer(SAT_REFRESH_REBOOT_TIMER);
- SATRefreshRebootTimeOut();
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_sat_nw_detach_before_reboot
- * DESCRIPTION
- * Detach network before SAT reboot
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_sat_nw_detach_before_reboot(void)
- {
- #ifdef MMI_ON_HARDWARE_P
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- MYQUEUE Message;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetProtocolEventHandler(mmi_sat_nw_detach_before_reboot_hdlr, MSG_ID_MMI_NW_PWROFF_DETACH_RSP);
- Message.oslSrcId = MOD_MMI;
- Message.oslDestId = MOD_L4C;
- Message.oslMsgId = MSG_ID_MMI_NW_PWROFF_DETACH_REQ;
- Message.oslDataPtr = (oslParaType*) NULL;
- Message.oslPeerBuffPtr = NULL;
- OslMsgSendExtQueue(&Message);
- #endif /* MMI_ON_HARDWARE_P */
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_sat_remove_text_pending_characters
- * DESCRIPTION
- * Remove pending characters for DISPLAY TEXT and GET INPUT
- * PARAMETERS
- * text_string [IN]
- * text_length [OUT]
- * text_dcs [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_sat_remove_text_pending_characters(U8 *text_string, U16 *text_length, U8 text_dcs)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U16 i;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (text_dcs == MMI_UCS2_DCS)
- {
- for (i = 0; i < *text_length; i += 2)
- {
- if (*(U16*) (text_string + i) == 0xFFFF)
- {
- *text_length = i;
- break;
- }
- }
- }
- else if (text_dcs == MMI_DEFAULT_DCS)
- {
- for (i = 0; i < *text_length; i++)
- {
- if (*(text_string + i) == 0xFF)
- {
- *text_length = i;
- break;
- }
- }
- }
- else
- {
- /* no action */
- }
- }
- #ifdef __MMI_SAT_DISPLAY_TEXT_WITH_KEYPAD_LOCK__
- /*****************************************************************************
- * FUNCTION
- * mmi_sat_is_pending_idle_sat_cmd
- * DESCRIPTION
- * SAT pending command for idle screen callback
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- U8 mmi_sat_is_pending_idle_sat_cmd(void)
- {
- return gSATContext.idleSATCmd;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_sat_execute_idle_sat_cmd
- * DESCRIPTION
- * SAT pending command for idle screen callback
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_sat_execute_idle_sat_cmd(void)
- {
- (*gSATContext.historyFuncPtr) ();
- }
- #endif /* __MMI_SAT_DISPLAY_TEXT_WITH_KEYPAD_LOCK__ */