JMMSProtocols.h
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:13k
源码类别:
MTK
开发平台:
C/C++
- /*****************************************************************************
- * Copyright Statement:
- * --------------------
- * This software is protected by Copyright and the information contained
- * herein is confidential. The software may not be copied and the information
- * contained herein may not be used or disclosed except with the written
- * permission of MediaTek Inc. (C) 2002
- *
- *****************************************************************************/
- /*****************************************************************************
- *
- * Filename:
- * ---------
- * JMMSSent.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * This file contans the enums,constants,structures, function prototypes used in
- * jmms_sent.c
- *
- * Author:
- * -------
- * -------
- *
- *============================================================================
- * HISTORY
- * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *------------------------------------------------------------------------------
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *============================================================================
- ****************************************************************************/
- #ifndef __MMI_JMMSPROTCOLS_H
- #define __MMI_JMMSPROTCOLS_H
- #include "MMI_features.h"
- #include "PixtelDataTypes.h"
- // #include "MessagingDataTypes.h"
- #include "ddl.h"
- #include "jcal.h"
- #include "jcalnet.h"
- #include "jdi_wspdatatype.h"
- //#include "jdi_transport.h"
- //#include "transport.h"
- //#include <jdi_miscutils.h>
- //#include <jdi_communicator.h>
- /*
- * Define
- */
- // #define MMI_JMMS_JAVA_MMS_SUPPORT
- #define MAX_NUMBER_OF_EVENTS_IN_MMS_QUEUE 150
- #define E_MSG_TYPE_IDLE_SCREEN_POP_UP 100
- /*
- * Typedef
- */
- typedef enum
- {
- E_FROM_URL_CALLBACK = 0x01,
- E_FROM_ERROR_CALLBACK
- } mmi_jmms_retry_calling_function;
- /* PMT VIKAS START 20060401 */
- typedef enum
- {
- MMS_STATUS_OFF = 0,
- MMS_STATUS_NEW_MESSAGE,
- MMS_STATUS_BUSY,
- MMS_STATUS_FULL
- } mmi_jmms_status_icon_type;
- /* PMT VIKAS END 20060401 */
- /*
- * Extern Global Variable
- */
- /*
- * Extern Global Function
- */
- /* */
- extern void mmi_jmms_ui_events_hdlr(JC_EVENT_DATA *pEventData);
- /* /for test */
- extern void mmi_jmms_push_ind_callback(void *pCommArg, COMM_PUSH_IND *pPushContentInd);
- extern JC_RETCODE mmi_jmms_init_protocol(void);
- /* void mmi_jmms_url_ind_callback (jmms_context_struct *jmms_context, COMM_FETCH_URL_IND_RESP *pURLInd); */
- extern JC_RETCODE mmi_jmms_url_ind_callback(jmms_context_struct *jmms_context, COMM_FETCH_URL_IND_RESP *pURLInd);
- /* void mmi_jmms_header_ind_callback(jmms_context_struct *jmms_context,COMM_HEADER_INDICATION *pCommHeaderInd); */
- extern JC_RETCODE mmi_jmms_header_ind_callback(
- jmms_context_struct *jmms_context,
- COMM_HEADER_INDICATION *pCommHeaderInd);
- extern void mmi_jmms_progress_ind_callback(
- jmms_context_struct *jmms_context,
- JC_UINT32 uiReferenceID,
- COMM_PROGRESS_IND *pProgressInd);
- /* void mmi_jmms_create_new_mms_pdu(void); */
- extern void mmi_jmms_create_mms_queue(void);
- extern void mmi_jmms_error_ind_callback(
- jmms_context_struct *jmms_context,
- JC_UINT32 uiReferenceID,
- JC_RETCODE eRetCode);
- /* JC_RETCODE mmi_jmms_set_profile ( COMM_HANDLE hCommHandle); */
- extern JC_RETCODE mmi_jmms_set_profile(void);
- extern void mmi_jmms_get_ip_address(U8 *ip_address, U8 *proxy_ip);
- extern void mmi_jmms_free_mms_pdu_memory(jmms_context_struct *jmms_context);
- extern JC_RETCODE mmi_jmms_create_and_send_new_mms(
- U16 message_setting,
- jmms_context_struct *jmms_context,
- MMI_BOOL is_create_for_send);
- extern JC_RETCODE mmi_jmms_send_mms(
- MSG_HANDLE hMsgHandle,
- U16 comm_state,
- JC_BOOLEAN bIsStream,
- U8 retry_counter,
- JC_BOOLEAN bIsAsynch);
- extern JC_RETCODE mmi_jmms_send_synchronous_mms(
- MSG_HANDLE hMsgHandle,
- U16 comm_state,
- JC_BOOLEAN bIsStream,
- U8 retry_counter,
- JC_BOOLEAN bIsAsynch,U32* unique_id_p);
- extern S8 *mmi_jmms_get_to_addresses(void);
- extern S8 *mmi_jmms_get_cc_addresses(void);
- extern S8 *mmi_jmms_get_bcc_addresses(void);
- extern void mmi_jmms_deinit_mms_context(jmms_context_struct *jmms_context);
- extern void mmi_jmms_update_mmsc_url_version(S8 *mmsc_url_used, S8 *mmsc_version);
- extern void mmi_jmms_entry_communication_progress_screen(void);
- extern void mmi_jmms_cancel_mms_sending(void);
- extern void mmi_jmms_end_comm(void);
- extern void mmi_jmms_comm_stop_callback(
- jmms_context_struct *jmms_context,
- JC_UINT32 uiReferenceID,
- JC_RETCODE eRetCode);
- extern JC_RETCODE mmi_jmms_add_pending_mms_info_node(U16 msg_index, U8 msg_type, S8 *content_location);
- extern void mmi_jmms_show_new_mms_pop_up(void);
- extern JC_RETCODE mmi_jmms_add_pending_mms_delivery_report_node(U8 status, S8 *to_address, JC_UINT32 date);
- extern JC_RETCODE mmi_jmms_add_pending_mms_read_report_node(U8 status, S8 *from_address, JC_UINT32 date);
- /* JC_RETCODE mmi_jmms_retry_communication(jmms_context_struct *jmms_context,U16 calling_function,JC_RETCODE error_code); */
- extern JC_RETCODE mmi_jmms_retry_communication(
- jmms_context_struct *jmms_context,
- U16 calling_function,
- JC_UINT32 uiReferenceID,
- JC_RETCODE error_code);
- extern JC_RETCODE mmi_jmms_set_mmsc_version(void);
- extern JC_RETCODE mmi_jmms_read_callback(
- void *pStream,
- JC_INT32 uiOffset,
- JC_UINT32 uiSize,
- JC_UINT8 *pBuffer,
- JC_UINT32 *pSizeRead);
- extern JC_RETCODE mmi_jmms_write_callback(void *pStream, JC_UINT8 *pBuffer, JC_UINT32 uiSize);
- extern JC_RETCODE mmi_jmms_handle_notification_ack_response(
- jmms_context_struct *jmms_context,
- COMM_FETCH_URL_IND_RESP *pURLInd,
- CONTENT_DATA *Content);
- extern JC_RETCODE mmi_jmms_handle_read_report_pdu_response(
- jmms_context_struct *jmms_context,
- COMM_FETCH_URL_IND_RESP *pURLInd,
- CONTENT_DATA *Content);
- extern JC_RETCODE mmi_jmms_handle_read_report_mms_response(
- jmms_context_struct *jmms_context,
- COMM_FETCH_URL_IND_RESP *pURLInd,
- CONTENT_DATA *Content);
- extern JC_RETCODE mmi_jmms_handle_immediate_downlaod_response(
- jmms_context_struct *jmms_context,
- COMM_FETCH_URL_IND_RESP *pURLInd,
- CONTENT_DATA *Content);
- extern JC_RETCODE mmi_jmms_handle_deffered_downlaod_response(
- jmms_context_struct *jmms_context,
- COMM_FETCH_URL_IND_RESP *pURLInd,
- CONTENT_DATA *Content);
- extern JC_RETCODE mmi_jmms_handle_new_mms_send_response(
- jmms_context_struct *jmms_context,
- COMM_FETCH_URL_IND_RESP *pURLInd,
- CONTENT_DATA *Content);
- extern jmms_communication_state_node *mmi_jmms_get_comm_state(
- jmms_context_struct *jmms_context,
- JC_UINT32 uiReferenceID);
- //JC_RETCODE mmi_jmms_add_comm_node(jmms_context_struct *jmms_context,JC_UINT32 uiReferenceID,U16 comm_state);
- //JC_RETCODE mmi_jmms_add_comm_node(jmms_context_struct *jmms_context,JC_UINT32 uiReferenceID,U16 comm_state,JC_CHAR *file_name_for_send);
- extern JC_RETCODE mmi_jmms_add_comm_node(
- jmms_context_struct *jmms_context,
- JC_UINT32 uiReferenceID,
- U16 comm_state,
- JC_CHAR *file_name_for_send,
- JC_UINT32 msg_index,
- U8 retry_counter,
- S8 *content_location);
- extern JC_RETCODE mmi_jmms_update_comm_node(
- jmms_context_struct *jmms_context,
- JC_UINT32 new_uiReferenceID,
- JC_UINT32 old_uiReferenceID,
- U8 retry_counter);
- extern void mmi_jmms_free_comm_node(jmms_context_struct *jmms_context, JC_UINT32 uiReferenceID);
- extern void mmi_jmms_handle_error_in_communication(
- jmms_context_struct *jmms_context,
- U16 calling_function,
- jmms_communication_state_node *comm_node,
- JC_RETCODE error_code);
- extern JC_RETCODE mmi_jmms_handle_url_repsonse(
- jmms_context_struct *jmms_context,
- COMM_FETCH_URL_IND_RESP *pURLInd,
- CONTENT_DATA Content);
- extern void mmi_jmms_handle_read_report(MESSAGE_RETRIEVAL *pMsgRetrieval);
- extern void mmi_jmms_free_message_header(void);
- extern JC_RETCODE mmi_jmms_save_mms(
- S8 *folder_name,
- MSG_HANDLE hMsgHandle,
- MMI_BOOL is_store_update,
- JC_UINT32 msg_index,
- error_callback err_cb);
- extern void mmi_jmms_save_mms_async_callback(JC_RETCODE eRet);
- extern void mmi_jmms_handle_error_string(JC_RETCODE error_code, U16 communication_state);
- extern JC_RETCODE mmi_jmms_send_and_store_mms(
- S8 *folder_name,
- MSG_HANDLE hMsgHandle,
- jmms_communication_state_node *comm_node);
- extern JC_RETCODE mmi_jmms_resend_mms(jmms_communication_state_node *comm_node, U8 retry_counter);
- /* PMT VIKAS START 20060401 */
- extern void mmi_jmms_update_status_icon_indicator(void);
- extern void mmi_jmms_set_mms_downloading_busy(void);
- extern void mmi_jmms_reset_mms_downloading_busy(void);
- extern U8 mmi_jmms_is_download_busy(void);
- extern void mmi_jmms_show_mms_status_icon(mmi_jmms_status_icon_type status);
- extern void mmi_jmms_free_pending_node_if_present(U32 msg_index);
- //PMT HIMANSHU START 20060425
- //MMI_BOOL mmi_jmms_is_msg_open(S8 *fname,U32 msg_index);
- extern MMI_BOOL mmi_jmms_is_msg_open(S8 *fname, U32 msgId, U32 msg_index);
- /* PMT HIMANSHU END 20060425 */
- extern void mmi_jmms_check_for_idle_screen(void);
- extern void mmi_jmms_handle_pop_up_for_interupt(U16 strid);
- extern void mmi_jmms_entry_general_pop_screen_in_case_interupt(void);
- extern void mmi_jmms_end_key_downlaod_sucess_pop_screen(void);
- extern void mmi_jmms_back_msg_download_sucess(void);
- extern void mmi_jmms_remove_memory_full_node_if_present(void);
- extern void mmi_jmms_add_memory_full_node_if_not_already(void);
- extern void mmi_jmms_comm_time_hdlr(void);
- extern void mmi_jmms_retry_for_error_in_comm(mmi_jmms_temp_event_struct *pEventData);
- extern S8 *mmi_jmms_get_em_mms_version(void);
- extern void mmi_jmms_send_mms_async_callback(JC_RETCODE eRet);
- extern void mmi_jmms_free_comm_node_list(void);
- extern void mmi_jmms_cancel_comm_in_usb_mode(void);
- S32 mmi_jmms_is_immediate_retrival_underway(void);
- /******************************************************************************
- Written By : Raj Kumar Gupta
- Date : 09 June 2006
- *****************************************************************************/
- extern void mmi_jmms_send_drafts_sent_callback(JC_RETCODE eRet);
- extern void mmi_jmms_create_and_send_new_mms_async_callback(JC_RETCODE eRet);
- extern void mmi_jmms_handle_new_mms_send_response_asynch_callback(JC_RETCODE eRet);
- extern JC_RETCODE mmi_jmms_update_pending_downloads(JC_UINT32 msg_index);
- void mmi_jmms_stop_download_busy(void);
- /* PMT VIKAS END 20060401 */
- #ifdef MMI_JMMS_JAVA_MMS_SUPPORT
- /* void mmi_jmms_jsr_mms_send_response(jmms_context_struct *jmms_context,COMM_FETCH_URL_IND_RESP *pURLInd); */
- extern JC_RETCODE mmi_jmms_jsr_mms_send_response(
- jmms_context_struct *jmms_context,
- COMM_FETCH_URL_IND_RESP *pURLInd,
- CONTENT_DATA Content);
- #endif /* MMI_JMMS_JAVA_MMS_SUPPORT */
- #endif /* __MMI_JMMSPROTCOLS_H */