📄 mmi_callback.c
字号:
// indicate the network has accepted or rejected the request of SPLIT MPTY
case EV_MN_APP_SPLIT_MPTY_CNF_F:
MmiCreateSignal(SIG_APP_MN_SPLIT_MPTY_CNF,sizeof(MnSplitMPTYCnfS),&sendSignal);
sendSignal->sig.MnSplitMPTYCnf.call_id =((APP_MN_SPLIT_MPTY_CNF_T*)param_ptr)->call_id;
sendSignal->sig.MnSplitMPTYCnf.req_is_accepted =((APP_MN_SPLIT_MPTY_CNF_T*)param_ptr)->req_is_accepted;
MmiSendSignal(task_id,sendSignal);
break;
// indicate that the remote user has add the current call to the MPTY
case EV_MN_APP_BUILD_MPTY_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_BUILD_MPTY_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_BUILD_MPTY_IND,sizeof(APP_MN_BUILD_MPTY_IND_T),&sendSignal);
sendSignal->sig.MnCcBuildMPTYInd.call_id =((APP_MN_BUILD_MPTY_IND_T*)param_ptr)->call_id;
MmiSendSignal(task_id,sendSignal);
break;
// inform local user the outgoing call or incoming call was forwarded
case EV_MN_APP_FORWARD_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_CALL_FORWARD_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_CALL_FORWARD_IND,sizeof(MnCcCallForwardIndS),&sendSignal);
sendSignal->sig.MnCcCallForwardInd.call_id =((APP_MN_CALL_FORWARD_IND_T*)param_ptr)->call_id;
sendSignal->sig.MnCcCallForwardInd.forward_type =((APP_MN_CALL_FORWARD_IND_T*)param_ptr)->forward_type;
MmiSendSignal(task_id,sendSignal);
break;
// inform the local user the outgoing call or incoming call war barred
case EV_MN_APP_CALL_BARRY_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_CALL_BARRED_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_CALL_BARRED_IND,sizeof(MnCcCallbarredIndS),&sendSignal);
sendSignal->sig.MnCcCallbarredInd.call_id =((APP_MN_CALL_BARRED_IND_T*)param_ptr)->call_id;
sendSignal->sig.MnCcCallbarredInd.barred_operation =((APP_MN_CALL_BARRED_IND_T*)param_ptr)->barred_operation;
MmiSendSignal(task_id,sendSignal);
break;
// the remote user has held the current call entity
case EV_MN_APP_HELD_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_CALL_HELD_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_CALL_HELD_IND,sizeof(MnCcCallHeldIndS),&sendSignal);
sendSignal->sig.MnCcCallHeldInd.call_id =((APP_MN_CALL_HELD_IND_T*)param_ptr)->call_id;
MmiSendSignal(task_id,sendSignal);
break;
// indicate the remote user has retrieved the current call
case EV_MN_APP_RETRIEVED_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_CALL_RETRIEVED_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_CALL_RETRIEVED_IND,sizeof(MnCcCallRetrievedIndS),&sendSignal);
sendSignal->sig.MnCcCallRetrievedInd.call_id =((APP_MN_CALL_RETRIEVED_IND_T*)param_ptr)->call_id;
MmiSendSignal(task_id,sendSignal);
break;
// indicate the remote user has modified the current call service type
case EV_MN_APP_MODIFY_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_CALL_MODIFY_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_CALL_MODIFY_IND,sizeof(MnCcCallModifyIndS),&sendSignal);
sendSignal->sig.MnCcCallModifyInd.call_id =((APP_MN_CALL_MODIFY_IND_T*)param_ptr)->call_id;
sendSignal->sig.MnCcCallModifyInd.service_type =((APP_MN_CALL_MODIFY_IND_T*)param_ptr)->service_type;
sendSignal->sig.MnCcCallModifyInd.direction_is_reverse =((APP_MN_CALL_MODIFY_IND_T*)param_ptr)->direction_is_reverse;
MmiSendSignal(task_id,sendSignal);
break;
// Indicate the call forward status
case EV_MN_APP_FORWARD_STATUS_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_FORWARD_STATUS_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_FORWARD_STATUS_IND,sizeof(MnCcForwardStatusIndS),&sendSignal);
sendSignal->sig.MnCcForwardStatusInd.forward_operation =((APP_MN_FORWARD_STATUS_IND_T*)param_ptr)->forward_operation;
sendSignal->sig.MnCcForwardStatusInd.forward_status =((APP_MN_FORWARD_STATUS_IND_T*)param_ptr)->forward_status;
MmiSendSignal(task_id,sendSignal);
break;
// inform clients that the call entity is connecting
case EV_MN_APP_CONNECTING_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_CONNECTING_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_CONNECTING_IND,sizeof(MnCcConnectingIndS),&sendSignal);
sendSignal->sig.MnCcConnectingInd.call_id =((APP_MN_CONNECTING_IND_T*)param_ptr)->call_id;
MmiSendSignal(task_id,sendSignal);
break;
case EV_MN_APP_DISCONNECTING_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_DISCONNECTING_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_DISCONNECTING_IND,sizeof(MnCcConnectingIndS),&sendSignal);
sendSignal->sig.MnCcConnectingInd.call_id =((APP_MN_DISCONNECTING_IND_T*)param_ptr)->call_id;
MmiSendSignal(task_id,sendSignal);
break;
case EV_MN_APP_HOLDING_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_CALL_HOLDING_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_CALL_HOLDING_IND,sizeof(MnCcCallHoldingIndS),&sendSignal);
sendSignal->sig.MnCcCallHoldingInd.call_id =((APP_MN_CALL_HOLDING_IND_T*)param_ptr)->call_id;
MmiSendSignal(task_id,sendSignal);
break;
case EV_MN_APP_RETRIEVING_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_CALL_RETRIEVING_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_CALL_RETRIEVING_IND,sizeof(MnCcCallRetrievingIndS),&sendSignal);
sendSignal->sig.MnCcCallRetrievingInd.call_id =((APP_MN_CALL_RETRIEVING_IND_T*)param_ptr)->call_id;
MmiSendSignal(task_id,sendSignal);
break;
case EV_MN_APP_BUILDING_MPTY_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_BUILDING_MPTY_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_BUILDING_MPTY_IND,sizeof(MnCcBuildingMptyIndS),&sendSignal);
sendSignal->sig.MnCcBuildingMptyInd.call_id =((APP_MN_BUILDING_MPTY_IND_T*)param_ptr)->call_id;
MmiSendSignal(task_id,sendSignal);
break;
case EV_MN_APP_SPLITTING_MPTY_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_SPLITTING_MPTY_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_SPLITTING_MPTY_IND,sizeof(MnCcSplitingMptyIndS),&sendSignal);
sendSignal->sig.MnCcSplitingMptyInd.call_id =((APP_MN_SPLITTING_MPTY_IND_T*)param_ptr)->call_id;
MmiSendSignal(task_id,sendSignal);
break;
case EV_MN_APP_CALL_READY_IND_F:
SCI_TRACE_LOW("MN: Send APP_MN_CALL_READY_IND to MMI client\n");
MmiCreateSignal(SIG_APP_MN_CALL_READY_IND,sizeof(MnCallReadyIndS),&sendSignal);
sendSignal->sig.mnCallReadyInd.fdn_is_ready = ((APP_MN_CALL_READY_IND_T*)param_ptr)->fdn_is_ready;
MmiSendSignal(task_id,sendSignal);
break;
case EV_MN_APP_DISC_INFO_IND_F:
break;
default:
//SCI_ASSERT(FALSE);
//louis check assert 2003.6.25
SCI_TRACE_MID("MMI_CALLBACK:the event id(%d) is error ",event_id);
break;
}
}
void mmisms_CallBackFunc(uint32 taskid, uint32 msg_type, void *param_ptr)
{
MmiSignalS *sendSignal = PNULL;
uint16 task_id = (uint16)taskid;
//SCI_ASSERT(PNULL != param_ptr);
//louis check assert 2003.6.25
if( PNULL == param_ptr )
{
SCI_TRACE_HIGH("mmi_callback: the ponit of param is empty");
return;
}
switch ( msg_type )
{
case EV_MN_APP_SMS_READY_IND_F :
MmiCreateSignal(SIG_APP_MN_SMS_READY_IND,sizeof(MnSmsReadyIndS),&sendSignal);
MmiSendSignal(task_id,sendSignal);
break ;
case EV_MN_APP_SMS_MEM_FULL_IND_F :
MmiCreateSignal(SIG_APP_MN_SMS_MEM_FULL_IND_F,sizeof(MnSmsMemFullIndS),&sendSignal);
MmiSendSignal(task_id,sendSignal);
break ;
case EV_MN_APP_READ_SMS_CNF_F :
MmiCreateSignal(SIG_APP_MN_READ_SMS_CNF,sizeof(MnReadSmsCnfS),&sendSignal);
sendSignal->sig.MnReadSmsCnf.cause =((APP_MN_READ_SMS_CNF_T*)param_ptr)->cause;
sendSignal->sig.MnReadSmsCnf.record_id =((APP_MN_READ_SMS_CNF_T*)param_ptr)->record_id;
sendSignal->sig.MnReadSmsCnf.storage = ((APP_MN_READ_SMS_CNF_T*)param_ptr)->storage;
sendSignal->sig.MnReadSmsCnf.status =((APP_MN_READ_SMS_CNF_T*)param_ptr)->status;
sendSignal->sig.MnReadSmsCnf.sms_t_u =((APP_MN_READ_SMS_CNF_T*)param_ptr)->sms_t_u;
MmiSendSignal(task_id,sendSignal);
break ;
case EV_MN_APP_UPDATE_SMS_STATUS_CNF_F :
MmiCreateSignal(SIG_APP_MN_UPDATE_SMS_STATE_CNF,sizeof(MnUpdateSmsStateCnfS),&sendSignal);
sendSignal->sig.MnUpdateSmsStateCnf.cause =((APP_MN_UPDATE_SMS_STATUS_CNF_T*)param_ptr)->cause;
sendSignal->sig.MnUpdateSmsStateCnf.record_id =((APP_MN_UPDATE_SMS_STATUS_CNF_T*)param_ptr)->record_id;
sendSignal->sig.MnUpdateSmsStateCnf.storage =((APP_MN_UPDATE_SMS_STATUS_CNF_T*)param_ptr)->storage;
MmiSendSignal(task_id,sendSignal);
break ;
case EV_MN_APP_READ_STATUS_REPORT_CNF_F :
MmiCreateSignal(SIG_APP_MN_READ_SMS_STATUS_REPORT_CNF,sizeof(MnUpdateSmsStateCnfS),&sendSignal);
sendSignal->sig.MnReadSmsStatusReportCnf.cause =((APP_MN_READ_SMS_STATUS_REPORT_CNF_T*)param_ptr)->cause;
sendSignal->sig.MnReadSmsStatusReportCnf.record_id =((APP_MN_READ_SMS_STATUS_REPORT_CNF_T*)param_ptr)->record_id;
sendSignal->sig.MnReadSmsStatusReportCnf.storage =((APP_MN_READ_SMS_STATUS_REPORT_CNF_T*)param_ptr)->storage;
sendSignal->sig.MnReadSmsStatusReportCnf.status_report =((APP_MN_READ_SMS_STATUS_REPORT_CNF_T*)param_ptr)->status_report;
MmiSendSignal(task_id,sendSignal);
break ;
case EV_MN_APP_SEND_SMS_CNF_F :
MmiCreateSignal(SIG_APP_MN_SEND_SMS_CNF,sizeof(MnSendSmsCnfS),&sendSignal);
sendSignal->sig.MnSendSmsCnf.cause =((APP_MN_SEND_SMS_CNF_T*)param_ptr)->cause;
// sendSignal->sig.MnSendSmsCnf.record_id =((APP_MN_SEND_SMS_CNF_T*)param_ptr)->record_id;
MmiSendSignal(task_id,sendSignal);
break ;
case EV_MN_APP_WRITE_SMS_CNF_F :
MmiCreateSignal(SIG_APP_MN_WRITE_SMS_CNF,sizeof(MnWriteSmsCnfS),&sendSignal);
sendSignal->sig.MnWriteSmsCnf.cause =((APP_MN_WRITE_SMS_CNF_T*)param_ptr)->cause;
sendSignal->sig.MnWriteSmsCnf.record_id =((APP_MN_WRITE_SMS_CNF_T*)param_ptr)->record_id;
sendSignal->sig.MnWriteSmsCnf.storage =((APP_MN_WRITE_SMS_CNF_T*)param_ptr)->storage;
MmiSendSignal(task_id,sendSignal);
break ;
case EV_MN_APP_SMS_IND_F :
MmiCreateSignal(SIG_APP_MN_SMS_IND,sizeof(MnSmsMtIndS),&sendSignal);
sendSignal->sig.MnSmsMtInd.cause =((APP_MN_SMS_IND_T*)param_ptr)->cause;
sendSignal->sig.MnSmsMtInd.record_id =((APP_MN_SMS_IND_T*)param_ptr)->record_id;
sendSignal->sig.MnSmsMtInd.storage =((APP_MN_SMS_IND_T*)param_ptr)->storage;
sendSignal->sig.MnSmsMtInd.sms_t =((APP_MN_SMS_IND_T*)param_ptr)->sms_t;
MmiSendSignal(task_id,sendSignal);
break ;
case EV_MN_APP_SMS_STATUS_REPORT_IND_F:
MmiCreateSignal(SIG_APP_MN_SMS_STATUS_REPORT_IND,sizeof(MnSmsReportIndS),&sendSignal);
sendSignal->sig.MnSmsReportInd.storage =((APP_MN_SMS_STATUS_REPORT_IND_T*)param_ptr)->storage;
sendSignal->sig.MnSmsReportInd.record_id =((APP_MN_SMS_STATUS_REPORT_IND_T*)param_ptr)->record_id;
sendSignal->sig.MnSmsReportInd.status_report =((APP_MN_SMS_STATUS_REPORT_IND_T*)param_ptr)->status_report;
SCI_TRACE_LOW("MMI MnSmsReportIndS status_report size =%d",sizeof(sendSignal->sig.MnSmsReportInd.status_report));
SCI_TRACE_LOW("MMI Mn status_report size =%d",sizeof(((APP_MN_SMS_STATUS_REPORT_IND_T*)param_ptr)->status_report));
MmiSendSignal(task_id,sendSignal);
break;
case EV_MN_APP_READ_SMS_PARAM_CNF_F :
MmiCreateSignal(SIG_APP_MN_READ_SMS_PARAM_CNF,sizeof(MnReadSmsParamCnfS),&sendSignal);
sendSignal->sig.MnReadSmsParamCnf.cause =((APP_MN_READ_SMS_PARAM_CNF_T*)param_ptr)->cause;
sendSignal->sig.MnReadSmsParamCnf.record_id =((APP_MN_READ_SMS_PARAM_CNF_T*)param_ptr)->record_id;
sendSignal->sig.MnReadSmsParamCnf.param_t =((APP_MN_READ_SMS_PARAM_CNF_T*)param_ptr)->param_t;
MmiSendSignal(task_id,sendSignal);
break ;
case EV_MN_APP_WRITE_SMS_PARAM_CNF_F :
MmiCreateSignal(SIG_APP_MN_WRITE_SMS_PARAM_CNF,sizeof(MnWriteSmsParamCnfS),&sendSignal);
sendSignal->sig.MnWriteSmsParamCnf.cause =((APP_MN_WRITE_SMS_PARAM_CNF_T*)param_ptr)->cause;
sendSignal->sig.MnWriteSmsParamCnf.record_id =((APP_MN_WRITE_SMS_PARAM_CNF_T*)param_ptr)->record_id;
MmiSendSignal(task_id,sendSignal);
break ;
/* case EV_MN_APP_DELETE_ALL_SMS_CNF_F:
MmiCreateSignal(SIG_APP_MN_DELETE_ALL_SMS_CNF,sizeof(MnDeleteAllSmsCnfS),&sendSignal);
sendSignal->sig.MnDeleteAllSmsCnf.cause =((APP_MN_DELETE_ALL_SMS_CNF_T*)param_ptr)->cause;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -