MTK 09B短信发送流程

来源:互联网 发布:基于社交网络的推荐 编辑:程序博客网 时间:2024/05/16 07:13

      cui_sms_recipient_opt_send_by_sim1(SIM1)

              cui_sms_set_send_sim_type(SRV_SMS_SIM_1);//设置SIM

          cui_sms_pre_send_msg();

                     cui_sms_send_msg_interal();

                            cui_sms_init_send_info_data(sms_send_gid);

                        cui_sms_send_curr_msg(sms_send_gid);

                                   cui_sms_entry_sending();//正在发送SCREEN

                                   cui_sms_send_msg_fsm();//send msg

                                          cui_sms_send_msg_fsm_handle();//handle

                                                 cui_sms_send_msg_req();

                                                        srv_sms_send_msg();

                                               srv_sms_pre_send_sms(sms_handle);

                                                                      {

                                                                          if (srv_sms_is_sms_valid() == MMI_FALSE)

                                                                         {

        srv_sms_send_msg_callback(sms_handle, MMI_FALSE, SRV_SMS_CAUSE_NOT_READY);

    }

                                                                         else if (hd_data->send_type == SRV_SMS_FG_SEND)

                                                                         {

                                                                            srv_sms_fg_send(sms_handle);

                                                                         }

                                                                         else if (hd_data->send_type == SRV_SMS_BG_SEND)

                                                                         {

                                                                            srv_sms_bg_send(sms_handle);

                                                                         }

                                                                         else

                                                                         {

                                                                            MMI_ASSERT(0);

                                                                         }

}

最后srv_sms_fg_sendsrv_sms_bg_send都会调用srv_sms_send_sms_seg();