Exemple #1
0
/*****************************************************************************
 * FUNCTION
 *  DeleteAllRecdCalls
 * DESCRIPTION
 *  To delete all the recd call entries
 * NA
 *  
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void DeleteAllRecdCalls(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    MYQUEUE Message;
    DEL_LAST_NUMBER_REQ *dataPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    /* clear key handler; not to process any other key */
    ClearInputEventHandler(MMI_DEVICE_ALL);

    /* format the message for delete all received calls */
    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = MOD_L4C;
    Message.oslMsgId = PRT_MMI_PHB_DEL_LAST_NUMBER_REQ;

    dataPtr = (DEL_LAST_NUMBER_REQ*) OslConstructDataPtr(sizeof(DEL_LAST_NUMBER_REQ));

    dataPtr->type = PHB_LNR;
    dataPtr->index = 0xff;
    dataPtr->no_data = 0;

    Message.oslDataPtr = (oslParaType*) dataPtr;
    Message.oslPeerBuffPtr = NULL;

    /* Set the response handler for the delete all received calls request */
    SetProtocolEventHandler(RspDeleteAllRecvdNum, PRT_MMI_PHB_DEL_LAST_NUMBER_RSP);

    /* Send request to l4 for delete all received calls */
    OslMsgSendExtQueue(&Message);
    return;
}
/**************************************************************

	FUNCTION NAME		: SECSETDelFdlReq(void)
 
	INPUT PARAMETERS	: nil
	OUTPUT PARAMETERS	: nil
	RETURNS				: void
  	Author				: Vanita Jain
 

**************************************************************/
void SECSETDelFdlReq()
{
	MSG_PHB_DELETE_ENTRY_REQ_STRUCT *pMsgDelEntry = NULL ;
	MYQUEUE Message;
	module_type dest_mod_id = MOD_L4C + gSecSetupMenuSimID;

	EntrySECSETFDNBDNDeleting();
	pMsgDelEntry = (MSG_PHB_DELETE_ENTRY_REQ_STRUCT*) OslConstructDataPtr(sizeof(MSG_PHB_DELETE_ENTRY_REQ_STRUCT));
	pMsgDelEntry->no_data = 1;
	pMsgDelEntry->del_all = MMI_FALSE; //No 
	pMsgDelEntry->index = gpFDLBDLContext->FDLBDLEntries[gpFDLBDLContext->HighlightedFDN].index;

	pMsgDelEntry->type = MMI_PHB_FDN ; //PHB_PHONEBOOK
	Message.oslSrcId=MOD_MMI;
	Message.oslDestId=dest_mod_id;
	Message.oslMsgId = PRT_PHB_DEL_ENTRY_REQ;
	Message.oslDataPtr = (oslParaType *)pMsgDelEntry;
	Message.oslPeerBuffPtr= NULL;

	DeleteUptoScrID(SCR_ID_SECSET_FDN_LIST);
	DeleteScreenIfPresent(SCR_ID_SECSET_FDN_LIST);
	ExitSECSETFDNListReload();	
	SetProtocolEventHandlerExt(SECSETDelFdlRsp,PRT_PHB_DEL_ENTRY_RSP,gSecSetupMenuSimID);
	
	OslMsgSendExtQueue(&Message);

}
Exemple #3
0
/*****************************************************************************
 * FUNCTION
 *
 * DESCRIPTION
 *
 * PARAMETERS
 *
 * RETURNS
 *
 *****************************************************************************/
void mmi_drm_send_get_imsi_cnf(U8* imsi, S32 result)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    S32 i;
    MYQUEUE Message;
    drmt_get_imsi_cnf_struct *msg;
    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    msg = (drmt_get_imsi_cnf_struct*) OslConstructDataPtr(sizeof(drmt_get_imsi_cnf_struct));

    msg->result = result;
    memset(msg->imsi, 0, sizeof(msg->imsi));

    if( result == MMI_TRUE )
    {
        for( i = 0 ;i < 17; i++)
        {
            msg->imsi[i] = imsi[i];
        }
    }

    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = MOD_DRMT;
    Message.oslSapId = DRMT_MMI_SAP;
    Message.oslMsgId = MSG_ID_DRMT_GET_IMSI_CNF;
    Message.oslDataPtr = (local_para_struct*) msg;
    Message.oslPeerBuffPtr = NULL;
    OslMsgSendExtQueue(&Message);
}
void SECSETGetFdlEntriesReq()
{
	MSG_PHB_GET_ENTRY_BY_INDEX_REQ_STRUCT *pMsgIndexReq = NULL ;
	MYQUEUE	Message;
	module_type dest_mod_id = MOD_L4C + gSecSetupMenuSimID;

	gpFDLBDLContext = &gFDLBDLContext[gSecSetupMenuSimID];
	
	mmi_trace(1, TSTXT("SECSETGetFdlEntriesReq = %d"),gpFDLBDLContext->FDNBDNCount);
	pMsgIndexReq = (MSG_PHB_GET_ENTRY_BY_INDEX_REQ_STRUCT*) OslConstructDataPtr(sizeof(MSG_PHB_GET_ENTRY_BY_INDEX_REQ_STRUCT));
	pMsgIndexReq->index=gpFDLBDLContext->FDNBDNCount + 1;
	pMsgIndexReq->record_index=0xFFFF;
	pMsgIndexReq->storage=MMI_SIM ;
	pMsgIndexReq->type=MMI_PHB_FDN ;
	pMsgIndexReq->no_data=MAX_ENTRIES_IN_LIST;
	
	Message.oslSrcId=MOD_MMI;
	Message.oslDestId=dest_mod_id;

	Message.oslMsgId = PRT_PHB_GET_ENTRY_BY_INDEX_REQ;
	Message.oslDataPtr = (oslParaType *)pMsgIndexReq;
	Message.oslPeerBuffPtr= NULL;

	SetProtocolEventHandlerExt(SECSETGetFdlEntriesRsp, PRT_PHB_GET_ENTRY_BY_INDEX_RSP,gSecSetupMenuSimID);

	OslMsgSendExtQueue(&Message);

}
Exemple #5
0
void DeleteAllRejectedCalls( void )
{
	MYQUEUE Message;
	DEL_LAST_NUMBER_REQ   *dataPtr;

	/* clear key handler; not to process any other key */
	ClearAllKeyHandler();

	/* format the message for delete all received calls */
	Message.oslSrcId = MOD_MMI;
	Message.oslDestId = MMI_CHIS_DEST_MOD;
	Message.oslMsgId = PRT_MMI_PHB_DEL_LAST_NUMBER_REQ;

	dataPtr = (DEL_LAST_NUMBER_REQ *)
	               OslConstructDataPtr(sizeof(DEL_LAST_NUMBER_REQ));

	dataPtr->type = PHB_LNRJ;
	dataPtr->index = 0xff;
	dataPtr->no_data = 0;

	Message.oslDataPtr = (oslParaType *)dataPtr;
	Message.oslPeerBuffPtr = NULL;

	/* Set the response handler for the delete all received calls request */
#ifdef __MMI_MULTI_SIM__
	MTPNP_CHISSetProtocolEventHandler( RspDeleteAllRejectedNum, PRT_MMI_PHB_DEL_LAST_NUMBER_RSP );
#else
	SetProtocolEventHandler( RspDeleteAllRejectedNum, PRT_MMI_PHB_DEL_LAST_NUMBER_RSP );
#endif

	 
	OslMsgSendExtQueue(&Message);
	return;
}
Exemple #6
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_recent_pages_get_recent_pages_list_start_req
 * DESCRIPTION
 *  Showing title with appropiate normal title icon.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_recent_pages_get_recent_pages_list_start_req(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    wap_bam_get_recent_pages_list_start_req_struct *myMsgPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
	/*showing the busy screen*/
	mmi_brw_busy_screen_set_title_string_id(STR_ID_BRW_RECENT_PAGES);
	mmi_brw_entry_browser_busy_screen();

	/*deleting the internediate screens if any*/
	DeleteNScrId(SCR_ID_BRW_RECENT_PAGES_HOST);
	DeleteNScrId(SCR_ID_BRW_RECENT_PAGES);

    myMsgPtr = (wap_bam_get_recent_pages_list_start_req_struct*) OslConstructDataPtr(sizeof(wap_bam_get_recent_pages_list_start_req_struct));

    myMsgPtr->source_id = BRW_APPLICATION_ID;
    myMsgPtr->instance_id = g_brw_cntx.brw_instance_id;
    myMsgPtr->sort_option = g_brw_cntx.sorting_method;

	mmi_brw_dynamic_list_free_memory();
	mmi_brw_recent_pages_free_memory();

    mmi_brw_event_hdlr_send_ilm(MSG_ID_WAP_BAM_GET_RECENT_PAGES_LIST_START_REQ, myMsgPtr, NULL);
}
Exemple #7
0
void mmi_mexe_send_sim_certificate_record_ind(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    MYQUEUE Message;
    mmi_send_sim_certificate_record_ind_struct *sim_certificate_record_ind;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = g_MExE_context.sender_module;
    Message.oslMsgId = MSG_ID_MMI_SEND_SIM_CERTIFICATE_RECORD_IND;
    sim_certificate_record_ind = (mmi_send_sim_certificate_record_ind_struct*) OslConstructDataPtr(sizeof(mmi_send_sim_certificate_record_ind_struct));

    sim_certificate_record_ind->idx = g_MExE_context.file_index; //g_MExE_context.idx_certificate++;
    sim_certificate_record_ind->authority_certificate = g_MExE_context.authority_certificate;
    sim_certificate_record_ind->certificate_type = g_MExE_context.certificate_type;
    sim_certificate_record_ind->key_identifier_length = g_MExE_context.key_identifier_length;
    memcpy(sim_certificate_record_ind->key_identifier, g_MExE_context.key_identifier, sim_certificate_record_ind->key_identifier_length);
    sim_certificate_record_ind->certificate_identifier_length = g_MExE_context.certificate_identifier_length;
    if (g_MExE_context.certificate_identifier_length != 0)
    {
        memcpy(sim_certificate_record_ind->certificate_identifier, g_MExE_context.certificate_identifier, sim_certificate_record_ind->certificate_identifier_length);
    }
    sim_certificate_record_ind->data_length = g_MExE_context.certificate_file_length;
    memcpy(sim_certificate_record_ind->data, g_MExE_context.certificate_data, g_MExE_context.certificate_file_length);

    Message.oslDataPtr = (oslParaType*) sim_certificate_record_ind;
    Message.oslPeerBuffPtr = NULL;
    OslMsgSendExtQueue(&Message);
}
Exemple #8
0
/*****************************************************************************
 * FUNCTION
 *  mmi_java_send_reset_rms_res
 * DESCRIPTION
 *  This routines send MMI_JAVA_SEND_RESET_RMS_RES to MOD_J2ME for user decision
 * PARAMETERS
 *  confirm     [IN]        KAL_TRUE if really want to install this MIDS
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_java_send_reset_rms_res(S8 confirm)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    MYQUEUE Message;
    mmi_java_install_reset_rms_res_struct *msg;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    MMI_TRACE(MMI_TRACE_FUNC, MMI_JAVA_SEND_RESET_RMS_RES);
    ClearInputEventHandler(MMI_DEVICE_ALL);

    msg = (mmi_java_install_reset_rms_res_struct*) OslConstructDataPtr(sizeof(mmi_java_install_reset_rms_res_struct));

    msg->session_id = reset_rms_ind_msg.session_id;
    msg->confirm = confirm;

    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = MOD_J2ME;
    Message.oslMsgId = MSG_ID_MMI_JAVA_INSTALL_RESET_RMS_RES;
    Message.oslDataPtr = (local_para_struct*) msg;
    Message.oslPeerBuffPtr = NULL;
    OslMsgSendExtQueue(&Message);
}
Exemple #9
0
/*****************************************************************************
 * FUNCTION
 *
 * DESCRIPTION
 *
 * PARAMETERS
 *
 * RETURNS
 *
 *****************************************************************************/
void mmi_java_send_get_imsi_res(U8* imsi, S32 error)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    S32 i;
    mmi_java_get_imsi_res_struct *msg;
    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    msg = (mmi_java_get_imsi_res_struct*) OslConstructDataPtr(sizeof(mmi_java_get_imsi_res_struct));
    msg->error = error;

    memset(msg->imsi, 0, sizeof(msg->imsi));

    if( imsi)
    {
        for( i = 0 ;i < 17; i++)
        {
            msg->imsi[i] = imsi[i];
        }
    }

    mmi_java_send_message(MOD_MMI, MOD_JASYN, MMI_J2ME_SAP, MSG_ID_MMI_JAVA_GET_IMSI_RES, msg, NULL);
}
Exemple #10
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_stored_page_rename_saved_page_req
 * DESCRIPTION
 *  Showing title with appropiate normal title icon.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_stored_page_rename_saved_page_req(U8* page_name)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    wap_bam_rename_saved_page_req_struct *myMsgPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
	/*showing the busy screen*/
	mmi_brw_busy_screen_set_title_string_id(STR_ID_BRW_OPTION);
    mmi_brw_entry_browser_busy_screen();

    myMsgPtr = (wap_bam_rename_saved_page_req_struct*) OslConstructDataPtr(sizeof(wap_bam_rename_saved_page_req_struct));

	myMsgPtr->source_id = BRW_APPLICATION_ID;
	myMsgPtr->instance_id = g_brw_cntx.brw_instance_id;
	myMsgPtr->index = g_brw_cntx.index_highlighted_item;
	mmi_chset_ucs2_to_utf8_string((U8*)myMsgPtr->new_label,BRW_MAX_TITLE_LENGTH+1,(U8*)page_name);

	g_brw_cntx.sap_msg_id = MSG_ID_WAP_BAM_RENAME_SAVED_PAGE_REQ;

	mmi_brw_event_hdlr_send_ilm(MSG_ID_WAP_BAM_RENAME_SAVED_PAGE_REQ, myMsgPtr, NULL);
}
Exemple #11
0
void mmi_mexe_read_rpk_instance_req(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    MYQUEUE Message;
    mmi_smu_read_sim_req_struct *dataPtr;

    U8 path[6] = {0x7F, 0x20, 0x5F, 0x3C, 0, 0};

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    path[4] = g_MExE_context.certificate_file_id[0];
    path[5] = g_MExE_context.certificate_file_id[1];

    SetProtocolEventHandler(mmi_mexe_read_rpk_instance_rsp, PRT_MMI_SMU_READ_SIM_RSP);

    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 = g_MExE_context.certificate_file_read_cycle * 256; /* data offset might be larger than 256 */
    dataPtr->length = (g_MExE_context.certificate_file_total_cycle == g_MExE_context.certificate_file_read_cycle) ? g_MExE_context.certificate_file_length - dataPtr->para : 256;
    memcpy(dataPtr->path, path, 6); /* read from EF path, total 6 bytes for path */
    Message.oslDataPtr = (oslParaType*) dataPtr;
    Message.oslPeerBuffPtr = NULL;
    OslMsgSendExtQueue(&Message);
}
Exemple #12
0
static void mdi_motion_driver_data_state_hdlr(void *parameter, Motion_Sensor_BuffState_enum state)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    MYQUEUE message;
    mdi_motion_msg_struct *msg_data_ptr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (g_mdi_motion_cntx.state != MOTION_STATE_LISTENING)
    {
        return;
    }

    if (g_mdi_motion_cntx.is_msg_send == TRUE)
    {
        return;
    }

    if (state == BUFF_EMPTY)
    {
        return;
    }

    msg_data_ptr = OslConstructDataPtr(sizeof(mdi_motion_msg_struct));

    switch (state)
    {
    case BUFF_DATA_EXIST:
        msg_data_ptr->data_state = MOTION_DATA_EXIST;
        break;

    case BUFF_FULL:
        msg_data_ptr->data_state = MOTION_DATA_FULL;
        break;
    }

    message.oslMsgId = MSG_ID_MDI_MOTION_DATA_STATE_RSP;
    message.oslDataPtr = (oslParaType*) msg_data_ptr;
    message.oslPeerBuffPtr = NULL;
    message.oslSrcId = MOD_MMI;
    message.oslDestId = MOD_MMI;

    OslMsgSendExtQueue(&message);

    g_mdi_motion_cntx.is_msg_send = TRUE;

}
Exemple #13
0
void AudioPlayIMelodyString(U8 *string, U16 len, U8 style)
{
	MYQUEUE Message;
	mmi_eq_play_ext_imelody_req_struct *iMelodyPlayReq;
	if(len>MAX_RING_COMPOSE_LEN) return;
	iMelodyPlayReq = OslConstructDataPtr(sizeof (mmi_eq_play_ext_imelody_req_struct));
	memcpy(iMelodyPlayReq->imelody, string, len);
	iMelodyPlayReq->len=len;
	iMelodyPlayReq->play_style=style;
	Message.oslMsgId = PRT_EQ_PLAY_EXT_IMELODY_REQ;	
    Message.oslDataPtr = (oslParaType *)iMelodyPlayReq;
    Message.oslPeerBuffPtr= NULL;
	Message.oslSrcId=MOD_MMI;
	Message.oslDestId=MOD_L4C;
	OslMsgSendExtQueue(&Message);
}
Exemple #14
0
/*****************************************************************************
 * FUNCTION
 *  mmi_vrsi_redial_read_call_log_num_req
 * DESCRIPTION
 *  This function send request to get call log from L4
 * PARAMETERS
 *  type        [IN]        Call log type
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_vrsi_redial_read_call_log_num_req(U8 type)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    MYQUEUE Message;
    GET_LAST_NUMBER_REQ *dataPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
#if !defined(__MMI_CH_MIXED_CALL_LOG__)
    if (type == PHB_LND)
    {
        chis_p->dialedCalls = (LOG_CALL*) chis_p->callsLog;
    }
    else if (type == PHB_LNM)
    {
        chis_p->missedCalls = (LOG_CALL*) chis_p->callsLog;
    }
    else if (type == PHB_LNR)
    {
        chis_p->recvdCalls = (LOG_CALL*) chis_p->callsLog;
    }
#endif /* !defined(__MMI_CH_MIXED_CALL_LOG__) */ 

    dataPtr = (GET_LAST_NUMBER_REQ*) OslConstructDataPtr(sizeof(GET_LAST_NUMBER_REQ));
    dataPtr->type = type;
    dataPtr->seq_id = 1; /* Only need 1 record, so just get once */

    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = MOD_L4C;
    Message.oslMsgId = PRT_MMI_PHB_GET_LAST_NUMBER_REQ;
    Message.oslDataPtr = (oslParaType*) dataPtr;
    Message.oslPeerBuffPtr = NULL;

    if (chis_p->isFirstTime == FALSE)
    {
        AlmDisableExpiryHandler();
        ClearInputEventHandler(MMI_DEVICE_ALL);
    }

    SetProtocolEventHandler(mmi_vrsi_redial_read_call_log_num_rsp, PRT_MMI_PHB_GET_LAST_NUMBER_RSP);
    OslMsgSendExtQueue(&Message);

    chis_p->isReqSent = TRUE;
}
Exemple #15
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_recent_pages_get_recent_pages_list_end_req
 * DESCRIPTION
 *  Showing title with appropiate normal title icon.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_recent_pages_get_recent_pages_list_end_req(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    wap_bam_get_recent_pages_list_end_req_struct *myMsgPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    myMsgPtr = (wap_bam_get_recent_pages_list_end_req_struct*) OslConstructDataPtr(sizeof(wap_bam_get_recent_pages_list_end_req_struct));

	myMsgPtr->source_id = BRW_APPLICATION_ID;
	myMsgPtr->instance_id = g_brw_cntx.brw_instance_id;

	mmi_brw_event_hdlr_send_ilm(MSG_ID_WAP_BAM_GET_RECENT_PAGES_LIST_END_REQ, myMsgPtr, NULL);
}
Exemple #16
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_stored_pages_get_saved_pages_list_continue_req
 * DESCRIPTION
 *  Showing title with appropiate normal title icon.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_stored_pages_get_saved_pages_list_continue_req(U32 start_index)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    wap_bam_get_saved_pages_list_continue_req_struct *myMsgPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    myMsgPtr = (wap_bam_get_saved_pages_list_continue_req_struct*) OslConstructDataPtr(sizeof(wap_bam_get_saved_pages_list_continue_req_struct));

	myMsgPtr->source_id = BRW_APPLICATION_ID;
	myMsgPtr->instance_id = g_brw_cntx.brw_instance_id;
	myMsgPtr->start_index = start_index;

	mmi_brw_event_hdlr_send_ilm(MSG_ID_WAP_BAM_GET_SAVED_PAGES_LIST_CONTINUE_REQ, myMsgPtr, NULL);
}
Exemple #17
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_stored_page_load_saved_page_req
 * DESCRIPTION
 *  Showing title with appropiate normal title icon.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_stored_page_load_saved_page_req(U32 index)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    wap_bam_load_saved_page_req_struct *myMsgPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    myMsgPtr = (wap_bam_load_saved_page_req_struct*) OslConstructDataPtr(sizeof(wap_bam_load_saved_page_req_struct));

	myMsgPtr->source_id = BRW_APPLICATION_ID;
	myMsgPtr->instance_id = g_brw_cntx.brw_instance_id;
	myMsgPtr->index = index;

	g_brw_cntx.sap_msg_id = MSG_ID_WAP_BAM_LOAD_SAVED_PAGE_REQ;

	mmi_brw_event_hdlr_send_ilm(MSG_ID_WAP_BAM_LOAD_SAVED_PAGE_REQ, myMsgPtr, NULL);
}
Exemple #18
0
void AudioPlayIMelodyFileWithId(U8 *file, U8 style, U16 nId)
{
	if(file)//!=NULL
	{
	MYQUEUE Message;
	mmi_eq_play_audio_by_name_req_struct *audioByNamePlayReq;
	if(pfnUnicodeStrlen((PS8)file)>MAX_MELODY_FILE_NAME) return;
	audioByNamePlayReq = OslConstructDataPtr(sizeof (mmi_eq_play_audio_by_name_req_struct));
	audioByNamePlayReq->style=style,
	audioByNamePlayReq->identifier=nId,
	
	pfnUnicodeStrcpy((PS8)audioByNamePlayReq->file_name,(PS8)file),
	Message.oslMsgId = PRT_EQ_PLAY_AUDIO_BY_NAME_REQ;	
    Message.oslDataPtr = (oslParaType *)audioByNamePlayReq;
    Message.oslPeerBuffPtr= NULL;
	Message.oslSrcId=MOD_MMI;
	Message.oslDestId=MOD_L4C;
	OslMsgSendExtQueue(&Message);
}

}
/*****************************************************************************
 * FUNCTION
 *  VoiceMemoPlayReq
 * DESCRIPTION
 *
 * PARAMETERS
 *  filename        [IN]
 * RETURNS
 *  void
 *****************************************************************************/
void VoiceMemoPlayReq(UI_string_type filename)
{
#ifdef MMI_ON_HARDWARE_P
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (!cmdProcessing)
    {
        mmi_vm_play_req_struct *msg_p;

        msg_p = OslConstructDataPtr(sizeof(mmi_vm_play_req_struct));
        memcpy(msg_p->file_name, filename, MAX_VM_FILE_NAME * ENCODE_BYTE);
        VoiceMemoSendMsg(MSG_ID_VM_PLAY_REQ, msg_p, NULL);
        cmdProcessing = TRUE;
    }
#endif /* MMI_ON_HARDWARE_P */
}
Exemple #20
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_recent_pages_load_recent_page_req
 * DESCRIPTION
 *  Showing title with appropiate normal title icon.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_recent_pages_load_recent_page_req(U32 index)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    wap_bam_load_recent_page_req_struct *myMsgPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    myMsgPtr = (wap_bam_load_recent_page_req_struct*) OslConstructDataPtr(sizeof(wap_bam_load_recent_page_req_struct));

	myMsgPtr->source_id = BRW_APPLICATION_ID;
	myMsgPtr->instance_id = g_brw_cntx.brw_instance_id;
	myMsgPtr->index = index;
  	myMsgPtr->charset = g_brw_cntx.charset_list_p[g_brw_cntx.encoding_method_index].id;

	g_brw_cntx.sap_msg_id = MSG_ID_WAP_BAM_LOAD_RECENT_PAGE_REQ;

	mmi_brw_event_hdlr_send_ilm(MSG_ID_WAP_BAM_LOAD_RECENT_PAGE_REQ, myMsgPtr, NULL);
}
Exemple #21
0
void mmi_mexe_read_rpk_file_info_req(U8 file_id)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    MYQUEUE Message;
    mmi_smu_read_file_info_req_struct *dataPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    SetProtocolEventHandler(mmi_mexe_read_rpk_file_info_rsp, PRT_MMI_SMU_READ_FILE_INFO_RSP);

    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = MOD_L4C;
    Message.oslMsgId = PRT_MMI_SMU_READ_FILE_INFO_REQ;
    dataPtr = (mmi_smu_read_file_info_req_struct*) OslConstructDataPtr(sizeof(mmi_smu_read_file_info_req_struct));
    dataPtr->file_idx = file_id;
    Message.oslDataPtr = (oslParaType*) dataPtr;
    Message.oslPeerBuffPtr = NULL;
    OslMsgSendExtQueue(&Message);
}
/*****************************************************************************
 * FUNCTION
 *  VoiceMemoDeleteAllReq
 * DESCRIPTION
 *
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void VoiceMemoDeleteAllReq(void)
{
#ifdef MMI_ON_HARDWARE_P
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (!cmdProcessing)
    {
        mmi_vm_del_req_struct *msg_p;

        msg_p = OslConstructDataPtr(sizeof(mmi_vm_del_req_struct));
        strcpy((char*)msg_p->file_name, "*.vm");
        msg_p->delete_all = TRUE;
        VoiceMemoSendMsg(MSG_ID_VM_DEL_REQ, msg_p, NULL);
        cmdProcessing = TRUE;
    }
#endif /* MMI_ON_HARDWARE_P */
}
/*****************************************************************************
 * FUNCTION
 *  VoiceMemoRecordReq
 * DESCRIPTION
 *
 * PARAMETERS
 *  dir     [IN]
 * RETURNS
 *  void
 *****************************************************************************/
void VoiceMemoRecordReq(U8 dir)
{
#ifdef MMI_ON_HARDWARE_P
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    if (!cmdProcessing)
    {
        mmi_vm_record_req_struct *msg_p;

        msg_p = OslConstructDataPtr(sizeof(mmi_vm_record_req_struct));
        msg_p->dir = dir;
        VoiceMemoSendMsg(MSG_ID_VM_RECORD_REQ, msg_p, NULL);
        cmdProcessing = TRUE;

    }
#endif /* MMI_ON_HARDWARE_P */
}
Exemple #24
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_recent_pages_delete_all_recent_page_req
 * DESCRIPTION
 *  Showing title with appropiate normal title icon.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_recent_pages_delete_all_recent_page_req(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    wap_bam_delete_all_recent_pages_req_struct *myMsgPtr;
    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
	/*showing the busy screen*/
	mmi_brw_busy_screen_set_title_string_id(STR_ID_BRW_OPTION);
    mmi_brw_entry_browser_busy_screen();

    myMsgPtr = (wap_bam_delete_all_recent_pages_req_struct*) OslConstructDataPtr(sizeof(wap_bam_delete_all_recent_pages_req_struct));

	myMsgPtr->source_id = BRW_APPLICATION_ID;
	myMsgPtr->instance_id = g_brw_cntx.brw_instance_id;

	g_brw_cntx.sap_msg_id = MSG_ID_WAP_BAM_DELETE_ALL_RECENT_PAGES_REQ;

	mmi_brw_event_hdlr_send_ilm(MSG_ID_WAP_BAM_DELETE_ALL_RECENT_PAGES_REQ, myMsgPtr, NULL);
}
/*****************************************************************************
 * FUNCTION
 *  srv_bootup_sec_send_verify_req
 * DESCRIPTION
 *  Send VERIFY_PIN_REQ
 * PARAMETERS
 *  sim     [IN] From which protocol layer
 *  pwd     [IN] Password
 *  new_pwd [IN] New password if required. If it is to verify UBCHV1, this
 *               field should be the new CHV1. If not required, this parameter
 *               can be NULL.
 * RETURNS
 *  void
 *****************************************************************************/
static void srv_bootup_sec_send_verify_req(
                mmi_sim_enum sim,
                const CHAR *pwd,
                const CHAR *new_pwd)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    mmi_smu_verify_pin_req_struct *verify_pin_req;
    
    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    verify_pin_req = OslConstructDataPtr(sizeof(mmi_smu_verify_pin_req_struct));

    MMI_ASSERT(pwd != NULL);
    app_strlcpy((CHAR*)verify_pin_req->pin, pwd, sizeof(verify_pin_req->pin));

    if (new_pwd != NULL)
    {
        app_strlcpy((CHAR*)verify_pin_req->new_pin, new_pwd, sizeof(verify_pin_req->new_pin));
    }
    else
    {
        verify_pin_req->new_pin[0] = '\0';
    }

    /*
     * If pin_type is TYPE_UNSPECIFIED, the result will be reported
     * from SMU_PASSWORD_REQUIRED_IND or SMU_FAIL_IND.
     */
    verify_pin_req->pin_type = TYPE_UNSPECIFIED;
    mmi_frm_send_ilm(
        mmi_frm_sim_to_l4c_mod(sim),
        MSG_ID_MMI_SMU_VERIFY_PIN_REQ,
        (oslParaType*)verify_pin_req,
        NULL);
}
Exemple #26
0
void mmi_mexe_get_sim_certificate_rsp(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    MYQUEUE Message;
    mmi_get_sim_certificate_rsp_struct *sim_certificate_rsp;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    ClearProtocolEventHandler(MSG_ID_MMI_SEND_SIM_CERTIFICATE_RECORD_RES);

    if (g_MExE_context.key_identifier != NULL)
    {
        OslMfree(g_MExE_context.key_identifier);
        g_MExE_context.key_identifier = NULL;
    }
    if (g_MExE_context.certificate_identifier != NULL)
    {
        OslMfree(g_MExE_context.certificate_identifier);
        g_MExE_context.certificate_identifier = NULL;
    }
    if (g_MExE_context.certificate_data != NULL)
    {
        OslMfree(g_MExE_context.certificate_data);
        g_MExE_context.certificate_data = NULL;
    }

    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = g_MExE_context.sender_module;
    Message.oslMsgId = MSG_ID_MMI_GET_SIM_CERTIFICATE_RSP;
    sim_certificate_rsp = (mmi_get_sim_certificate_rsp_struct*) OslConstructDataPtr(sizeof(mmi_get_sim_certificate_rsp_struct));
    sim_certificate_rsp->total = g_MExE_context.idx_certificate;
    Message.oslDataPtr = (oslParaType*) sim_certificate_rsp;
    Message.oslPeerBuffPtr = NULL;
    OslMsgSendExtQueue(&Message);
}
Exemple #27
0
/*****************************************************************************
 * FUNCTION
 *  mmi_syncml_clean_luid_list_res_req
 * DESCRIPTION
 *  Protocol event sender
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_syncml_clean_luid_list_res_req(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    MYQUEUE Message;
    mmi_syncml_clean_luid_list_res_req_struct *dataPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = MOD_SYNCML;
    Message.oslMsgId = MSG_ID_MMI_SYNCML_CLEAN_LUID_LIST_RES_REQ;

    dataPtr =
        (mmi_syncml_clean_luid_list_res_req_struct*) OslConstructDataPtr(sizeof(mmi_syncml_clean_luid_list_res_req_struct));
    dataPtr->result = SYNCML_OK;

    Message.oslDataPtr = (oslParaType*) dataPtr;
    Message.oslPeerBuffPtr = NULL;
    OslMsgSendExtQueue(&Message);
}
Exemple #28
0
/*****************************************************************************
 * FUNCTION
 *  mmi_brw_stored_page_get_saved_page_req
 * DESCRIPTION
 *  Showing title with appropiate normal title icon.
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void mmi_brw_stored_page_get_saved_page_req(U32 index)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    wap_bam_get_saved_page_req_struct *myMsgPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
	/*showing the busy screen*/
	mmi_brw_busy_screen_set_title_string_id(STR_ID_BRW_OPTION);
    mmi_brw_entry_browser_busy_screen();

    myMsgPtr = (wap_bam_get_saved_page_req_struct*) OslConstructDataPtr(sizeof(wap_bam_get_saved_page_req_struct));

	myMsgPtr->source_id = BRW_APPLICATION_ID;
	myMsgPtr->instance_id = g_brw_cntx.brw_instance_id;
	myMsgPtr->index = g_brw_cntx.index_highlighted_item;

	g_brw_cntx.sap_msg_id = MSG_ID_WAP_BAM_GET_SAVED_PAGE_REQ;

	mmi_brw_event_hdlr_send_ilm(MSG_ID_WAP_BAM_GET_SAVED_PAGE_REQ, myMsgPtr, NULL);
}
Exemple #29
0
void mmi_mexe_read_service_table_req(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/
    MYQUEUE Message;
    mmi_smu_read_sim_req_struct *dataPtr;

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    SetProtocolEventHandler(mmi_mexe_read_service_table_rsp, PRT_MMI_SMU_READ_SIM_RSP);

    Message.oslSrcId = MOD_MMI;
    Message.oslDestId = MOD_L4C; /* message back to the sender */
    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 = (U8) FILE_MEXE_ST_IDX;
    dataPtr->para = 0;
    dataPtr->length = 1;
    Message.oslDataPtr = (oslParaType*) dataPtr;
    Message.oslPeerBuffPtr = NULL;
    OslMsgSendExtQueue(&Message);
}
Exemple #30
0
/*********************************************************************
 Function			: AudioStopReq
 Purpose			: This function stops sound playing.
 Input Parameters	: U8 soundId
 Output Parameters  : none
 Returns			: void
 
**********************************************************************/
void AudioStopReq(U16 soundId)
{
	if(soundId>=FILESYSTEM_AUDIO_BASE && soundId<=FILESYSTEM_AUDIO_BASE_END)
	{
		StopAudioFileSystem(soundId);
	}
#ifdef __MMI_PROFILE_EXTMELODY_SUPPORT__
	else if(soundId>=PMG_EXT_MELODY_BEGIN && soundId<=PMG_EXT_MELODY_END)
	{
		mdi_audio_stop_file();
	}
#endif
#if defined( __MMI_HUMAN_VOICE_KEYPAD_TONE__ )
	else if( soundId >= MIN_HUMAN_VOICE_ID && soundId <= MAX_HUMAN_VOICE_ID )
		mdi_audio_stop_string();
#endif
	else
	{
#ifdef MMI_ON_HARDWARE_P
		mdi_audio_stop_id(soundId);
#else
		MYQUEUE Message;
		mmi_eq_stop_audio_req_struct* msg_p;
   
		msg_p = OslConstructDataPtr(sizeof(mmi_eq_stop_audio_req_struct));
		msg_p->sound_id = (U8)soundId;
		
		Message.oslMsgId = PRT_EQ_STOP_AUDIO_REQ;	
		Message.oslDataPtr = (oslParaType *)msg_p;
		Message.oslPeerBuffPtr= NULL;
		Message.oslSrcId=MOD_MMI;
		Message.oslDestId=MOD_L4C;
		OslMsgSendExtQueue(&Message);
#endif
	}
}