📄 commonstubs.c
字号:
*****************************************************************************/
void SetRingAfterVibFlag(pBOOL truth)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
cm_p->alert_info.IsRingAfterVib = truth;
}
/*****************************************************************************
* FUNCTION
* GetSpeechFlag
* DESCRIPTION
* This function returns state of alerts
*
* This is a part of other hardware application.
* PARAMETERS
* void
* TRUE(?) [OUT] Or FALSE
* RETURNS
* pBOOL
*****************************************************************************/
pBOOL GetSpeechFlag(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return cm_p->alert_info.IsSpeechOn;
}
/*****************************************************************************
* FUNCTION
* SetSpeechFlag
* DESCRIPTION
* This function checks to see if remote is alerting
* PARAMETERS
* truth [IN]
* TRUE(?) [OUT] Or FALSE
* RETURNS
* pBOOL(?)
*****************************************************************************/
void SetSpeechFlag(pBOOL truth)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
cm_p->alert_info.IsSpeechOn = truth;
}
/*****************************************************************************
* FUNCTION
* SetRingingFlag
* DESCRIPTION
* This function checks to see if remote is alerting
* PARAMETERS
* truth [IN]
* TRUE(?) [OUT] Or FALSE
* RETURNS
* pBOOL(?)
*****************************************************************************/
void SetRingingFlag(pBOOL truth)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
PRINT_INFORMATION(("SetRingingFlag: %d\n", truth));
cm_p->alert_info.IsRinging = truth;
}
/*****************************************************************************
* FUNCTION
* GetRingingFlag
* DESCRIPTION
* This function returns state of internal alerts indication
*
* This is a part of other hardware application.
* PARAMETERS
* void
* TRUE(?) [OUT] Or FALSE
* RETURNS
* pBOOL
*****************************************************************************/
pBOOL GetRingingFlag(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return cm_p->alert_info.IsRinging;
}
/*****************************************************************************
* FUNCTION
* GetInternalAlert
* DESCRIPTION
* This function returns state of internal alerts indication
*
* This is a part of other hardware application.
* PARAMETERS
* void
* TRUE(?) [OUT] Or FALSE
* RETURNS
* pBOOL
*****************************************************************************/
pBOOL GetInternalAlert(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return cm_p->alert_info.IsInternalAlert;
}
/*****************************************************************************
* FUNCTION
* SetInternalAlert
* DESCRIPTION
* This function checks to see if USSD is supported in the phone/network
*
* This is a part of other hardware application.
* PARAMETERS
* truth [IN]
* TRUE(?) [OUT] Or FALSE
* RETURNS
* pBOOL(?)
*****************************************************************************/
void SetInternalAlert(pBOOL truth)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
cm_p->alert_info.IsInternalAlert = truth;
}
/*****************************************************************************
* FUNCTION
* PlayInternalOutgoingTone
* DESCRIPTION
* Stops playing waiting call tone
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void PlayInternalOutgoingTone(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
SetInternalAlert(TRUE);
StartRingTone(TONE_RINGING_CALL_GSM);
}
/*****************************************************************************
* FUNCTION
* StopInternalOutgoingTone
* DESCRIPTION
* Stops playing waiting call tone
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void StopInternalOutgoingTone(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
SetInternalAlert(FALSE);
AudioStopReq(TONE_RINGING_CALL_GSM);
}
/*****************************************************************************
* FUNCTION
* PsCBackPlayInternalTone
* DESCRIPTION
* This function plays GSMtone
* PARAMETERS
* info [?]
* RETURNS
* void
*****************************************************************************/
void PsCBackPlayInternalTone(void *info)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
U8 flag = DeriveInternalAlrtIndVal(info);
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (flag)
{
MMI_TRACE((MMI_TRACE_G5_CM, MMI_CM_INFO_PlayInternalTone));
PlayInternalOutgoingTone();
}
}
/*****************************************************************************
* FUNCTION
* SetDTMFFlag
* DESCRIPTION
* Sets the DTMF Flag
* PARAMETERS
* dtmfFlag [IN]
* TRUE(?) [IN] For set, FALSE for not set
* RETURNS
* void
*****************************************************************************/
void SetDTMFFlag(pBOOL dtmfFlag)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
cm_p->alert_info.DTMF = dtmfFlag;
}
/*****************************************************************************
* FUNCTION
* GetDTMFFlag
* DESCRIPTION
* Gets the DTMF Flag Status
* PARAMETERS
* void
* TRUE(?) [OUT] For set, FALSE for not set
* RETURNS
* void
*****************************************************************************/
pBOOL GetDTMFFlag(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
return cm_p->alert_info.DTMF;
}
/*****************************************************************************
* FUNCTION
* DTMFFunction
* DESCRIPTION
* This function enables or Disables the DTMF
* PARAMETERS
* void
* RETURNS
* void
*****************************************************************************/
void DTMFFunction(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
if (GetDTMFFlag() == TRUE)
{
SetDTMFFlag(FALSE);
ChangeLeftSoftkey(STR_GLOBAL_OFF, IMG_SCR1002_OFF_LSK);
}
else
{
SetDTMFFlag(TRUE);
ChangeLeftSoftkey(STR_GLOBAL_ON, IMG_SCR1002_ON_LSK);
}
Hint2024DTMF(GetCurrHiliteID());
RedrawCategoryFunction();
HiliteM2024DTMF();
}
/*****************************************************************************
* FUNCTION
* SetHFreeHeld
* DESCRIPTION
* Sets the HFreeHeld Flag
* PARAMETERS
* HFreeHeldFlag [IN]
* Flag(?) [IN] Value to set
* RETURNS
* void
*****************************************************************************/
void SetHFreeHeld(BOOL HFreeHeldFlag)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
/* TRUE: current LSpk, show HHeld as RSK,
FALSE: current no LSpk, show HFree as RSK */
cm_p->alert_info.IsHFree = HFreeHeldFlag;
}
/*****************************************************************************
* FUNCTION
* GetHFreeHeld
* DESCRIPTION
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -