📄 outgoingcallmanagement.c
字号:
ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_SCR1003_LSK);
SetLeftSoftkeyFunction(DummyEntrySoundRecorderInCall, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
#endif /* __MMI_SOUND_RECORDER__ */
#ifdef __MMI_AUDIO_PLAYER__
/*****************************************************************************
* FUNCTION
* DummyEntryAudioPlayerInCall
* DESCRIPTION
* set CM screen flag before go to Audio Player application
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void DummyEntryAudioPlayerInCall(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
SetCMScrnFlag(FALSE);
mmi_audply_entry_main();
DeleteScreenIfPresent(SCR1003_CM_ACTIVECALLOPTIONS);
}
/*****************************************************************************
* FUNCTION
* HiliteM2025AudioPlayer
* DESCRIPTION
* hilite handler to invoke the AudioPlayer function
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void HiliteM2025AudioPlayer(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
PRINT_INFORMATION(("\n 2025 Audio Player \n"));
ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_SCR1003_LSK);
SetLeftSoftkeyFunction(DummyEntryAudioPlayerInCall, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
#endif /* __MMI_AUDIO_PLAYER__ */
#if defined(__MMI_BT_HP_SUPPORT__) || defined(__MMI_BT_SUPPORT__)
/*****************************************************************************
* FUNCTION
* HiliteBTCMSetPath
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void HiliteBTCMSetPath(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
PRINT_INFORMATION(("\n CM--BT Set Voice Path \n"));
ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_SCR1003_LSK);
SetLeftSoftkeyFunction(ProcessBTSetVoicePath, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
/*****************************************************************************
* FUNCTION
* ProcessBTSetVoicePath
* DESCRIPTION
*
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void ProcessBTSetVoicePath(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (mmi_bt_is_incall_aud_swap2bt() == MMI_TRUE)
{
/* Current voice path in BT, shall transfer to AG */
mmi_bt_switch_voice_path_incall(MMI_FALSE);
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif /* 0 */
}
else
{
/* Current voice path in AG, shall transfer to BT */
mmi_bt_switch_voice_path_incall(MMI_TRUE);
#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif /* 0 */
}
}
#endif /* defined(__MMI_BT_HP_SUPPORT__) || defined(__MMI_BT_SUPPORT__) */
/*****************************************************************************
* FUNCTION
* HiliteM2020Mute
* DESCRIPTION
* hilite handler to invoke the Mute function
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void HiliteM2020Mute(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
PRINT_INFORMATION(("\n 2020 Mute \n"));
if (IsPhoneInMute())
{
ChangeLeftSoftkey(STR_GLOBAL_OFF, IMG_SCR1002_OFF_LSK);
}
else
{
ChangeLeftSoftkey(STR_GLOBAL_ON, IMG_SCR1002_ON_LSK);
}
ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
SetLeftSoftkeyFunction(OptionMuteorUnMutetheCall, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
/*****************************************************************************
* FUNCTION
* HiliteM2024DTMF
* DESCRIPTION
* hilite handler to invoke the DTMF function
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void HiliteM2024DTMF(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
PRINT_INFORMATION(("\n 2024 DTMF \n"));
if (GetDTMFFlag() == TRUE)
{
ChangeLeftSoftkey(STR_GLOBAL_OFF, IMG_SCR1002_OFF_LSK);
}
else
{
ChangeLeftSoftkey(STR_GLOBAL_ON, IMG_SCR1002_ON_LSK);
}
ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
SetLeftSoftkeyFunction(DTMFFunction, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
#ifdef __CTM_SUPPORT__
/*****************************************************************************
* FUNCTION
* HiliteM2027CTM
* DESCRIPTION
* hilite handler to invoke the CTM connection
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void HiliteM2027CTM(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
PRINT_INFORMATION(("\n 2027 CTM \n"));
ChangeLeftSoftkey(STR_GLOBAL_OK, 0);
ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
SetLeftSoftkeyFunction(mmi_ctm_connect, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
#endif /* __CTM_SUPPORT__ */
/*****************************************************************************
* FUNCTION
* HiliteM2023LoudSp
* DESCRIPTION
* hilite handler to invoke the LoudSpeaker function
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void HiliteM2023LoudSp(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
PRINT_INFORMATION(("\n 2023 Loud Speaker \n"));
ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
SetLeftSoftkeyFunction(LoudSpeakerFunction /* fromOptions */ , KEY_EVENT_UP);
ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_SCR1003_LSK);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
/*****************************************************************************
* FUNCTION
* HiliteM2021NewCall
* DESCRIPTION
* hilite handler to invoke the NewCall function
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void HiliteM2021NewCall(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
PRINT_INFORMATION(("\n 2021 New Call \n"));
ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
ChangeLeftSoftkey(STR_GLOBAL_OK, IMG_SCR1003_LSK);
SetLeftSoftkeyFunction(EnterScreenAndHandleDigit, KEY_EVENT_UP);
SetRightSoftkeyFunction(GoBackHistory, KEY_EVENT_UP);
}
/*****************************************************************************
* FUNCTION
* Hint2020Mute
* DESCRIPTION
* hint handler to get mute status
* PARAMETERS
* index [IN]
* RETURNS
* void
*****************************************************************************/
void Hint2020Mute(U16 index)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (IsPhoneInMute() == TRUE)
{
pfnUnicodeStrcpy((S8*) hintData[index], (S8*) GetString(STR_GLOBAL_ON));
}
else
{
pfnUnicodeStrcpy((S8*) hintData[index], (S8*) GetString(STR_GLOBAL_OFF));
}
return;
}
/*****************************************************************************
* FUNCTION
* Hint2024DTMF
* DESCRIPTION
* hint handler to get dtmf status
* PARAMETERS
* index [IN]
* RETURNS
* void
*****************************************************************************/
void Hint2024DTMF(U16 index)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (GetDTMFFlag() == TRUE)
{
pfnUnicodeStrcpy((S8*) hintData[index], (S8*) GetString(STR_GLOBAL_ON));
}
else
{
pfnUnicodeStrcpy((S8*) hintData[index], (S8*) GetString(STR_GLOBAL_OFF));
}
return;
}
/*****************************************************************************
* FUNCTION
* MakeMOForAT
* DESCRIPTION
* Makes MO Call from AT Command
* PARAMETERS
* num [IN]
* length [IN]
* callType [IN]
* RETURNS
* void
*****************************************************************************/
void MakeMOForAT(PS8 num, U8 length, U8 callType)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
PHB_CM_INTERFACE phb_data;
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (GetCurrentState() == CM_OUTGOING_STATE)
{
if (cm_p->redial_info.RedialTimer == TRUE)
{
/* stop redialing */
ResetRedialAttempts();
SetCurrentState(CM_IDLE_STATE);
}
else
{
/* already MO, ignore it */
return;
}
}
memset(&gCurrOutcall, 0, sizeof(OUTGOING_CALL));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -