JMMSPushHandling.h
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:6k
源码类别:

MTK

开发平台:

C/C++

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2002
  8. *
  9. *****************************************************************************/
  10. /*****************************************************************************
  11.  *
  12.  * Filename:
  13.  * ---------
  14.  *  jmms_store_handling.h
  15.  *
  16.  * Project:
  17.  * --------
  18.  *  MAUI
  19.  *
  20.  * Description:
  21.  * ------------
  22.  *  This file contans the enums,constants,structures, function prototypes used in
  23.  * jmms_store_handling.c
  24.  *
  25.  * Author:
  26.  * -------
  27.  * -------
  28.  *
  29.  *============================================================================
  30.  *             HISTORY
  31.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  32.  *------------------------------------------------------------------------------
  33.  * removed!
  34.  *
  35.  * removed!
  36.  * removed!
  37.  * removed!
  38.  *
  39.  * removed!
  40.  * removed!
  41.  * removed!
  42.  *
  43.  * removed!
  44.  * removed!
  45.  * removed!
  46.  *
  47.  * removed!
  48.  * removed!
  49.  * removed!
  50.  * removed!
  51.  *
  52.  *------------------------------------------------------------------------------
  53.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  54.  *============================================================================
  55.  ****************************************************************************/
  56. #ifndef __MMI_JMMSPUSHHANDLING_H
  57. #define __MMI_JMMSPUSHHANDLING_H
  58. #include "JMMSStructs.h"
  59. /* 
  60.  * Define
  61.  */
  62. #define MAX_MMS_SEND_TRY_COUNTER  wap_custom_get_max_mms_post_msg_retry_nums()
  63. #define MAX_MMS_SIGNAL_TRY_COUNTER wap_custom_get_max_mms_post_pdu_retry_nums()
  64. #define MAX_MMS_DOWNLOAD_TRY_COUNTER wap_custom_get_max_mms_get_retry_nums()
  65. #define STOP_RETRY_COUNTER  MAX_MMS_SEND_TRY_COUNTER+MAX_MMS_SIGNAL_TRY_COUNTER+MAX_MMS_DOWNLOAD_TRY_COUNTER
  66. /* 
  67.  * Typedef 
  68.  */
  69. typedef enum
  70. {
  71.     E_TYPE_NULL,
  72.     E_TYPE_NEW_MMS,
  73.     E_TYPE_NOTIFICATION_RESPONSE,
  74.     E_TYPE_IMMEDIATE_RETRIEVAL_FETCH,
  75.     E_TYPE_DEFFERED_RETRIEVAL_FETCH,
  76.     /* E_TYPE_JAVA_MMS_DOWNLAOD, */
  77.     E_TYPE_NEW_JAVA_MMS_SEND,
  78.     E_TYPE_ACK_RESPONSE,
  79.     E_TYPE_READ_REPORT_PDU,
  80.     E_TYPE_READ_REPORT_MMS
  81. } jmms_message_state_enum;
  82. typedef enum
  83. {
  84.     E_JMMS_RETRY_COMPLETE = 2,
  85.     E_UNKNOWN_MSG = 30,
  86.     E_JMMS_GENERAL_ERROR,
  87.     E_JMMS_STORAGE_FULL
  88. } jmms_message_protocol_errors;
  89. /* 
  90.  * Extern Global Variable
  91.  */
  92. /* 
  93.  * Extern Global Function
  94.  */
  95. //void mmi_jmms_handle_new_mms_notification(VIEW_CONTENT view_content,MSG_HANDLE        hMsgHandle,MESSAGE_NOTIFICATION *pNotifyIndHdrs);
  96. //JC_RETCODE mmi_jmms_download_mms(JC_INT8 *content_location);
  97. //JC_RETCODE mmi_jmms_notification_reponse(MESSAGE_NOTIFICATION *pNotification, EMessageStatus eMessageStatus);
  98. //JC_RETCODE jmms_mmi_notification_response_for_immediate_retrieval(COMM_FETCH_URL_IND_RESP     *pFetchData);
  99. /* void mmi_jmms_show_new_mms_retrieved(COMM_FETCH_URL_IND_RESP *pURLInd); */
  100. extern void mmi_jmms_entry_show_mms_screen(void);
  101. extern void mmi_jmms_back_msg_view_entry(void);
  102. extern U8 mmi_jmms_need_mms_ind(void);
  103. extern void mmi_jmms_entry_new_mms_ind(void);
  104. extern void mmi_jmms_end_mms_play(void);
  105. extern void mmi_jmms_play_mms(void);
  106. extern void mmi_jmms_delete_mms_pop_up_node(void);
  107. extern void mmi_jmms_handle_mms_pop_up(void);
  108. extern void mmi_jmms_delete_mms_pop_ups_list(void);
  109. extern void mmi_jmms_entry_show_delivery_report_screen(void);
  110. //JC_RETCODE jmms_mmi_ack_for_deffered_retrieval(VIEW_CONTENT   Content);
  111. //JC_RETCODE mmi_jmms_handle_deffered_retrieved_mms(VIEW_CONTENT        Content);
  112. extern void mmi_jmms_show_read_report_query_screen(void);
  113. /* MYTIME mmi_jmms_convert_date_to_mytime(U32 timestamp); */
  114. extern void mmi_jmms_free_pending_mms_info_node(void);
  115. extern void mmi_jmms_entry_show_read_report_screen(void);
  116. extern void mmi_jmms_handle_read_report_confirm(void);
  117. extern void mmi_jmms_create_and_send_read_report(void);
  118. extern void mmi_jmms_free_mms_pop_ups_list(void);
  119. extern void mmi_jmms_delete_mms_pop_ups_list_on_inbox_entry(void);
  120. extern JC_RETCODE mmi_jmms_set_read_reply_message(
  121.                     MSG_HANDLE *phMsgHandle,
  122.                     JC_INT8 *MessageID,
  123.                     JC_CHAR *pToAddress,
  124.                     JC_CHAR *pSubject);
  125. extern JC_RETCODE mmi_jmms_set_read_reply_pdu(
  126.                     MSG_HANDLE *phMsgHandle,
  127.                     JC_INT8 *MessageID,
  128.                     JC_CHAR *pToAddress,
  129.                     JC_INT8 *pVersion);
  130. extern JC_RETCODE mmi_jmms_download_mms(
  131.                     JC_INT8 *content_location,
  132.                     U16 comm_state,
  133.                     JC_UINT32 msg_index,
  134.                     U8 retry_counter);
  135. extern void mmi_jmms_handle_new_mms_notification(
  136.                 CONTENT_DATA *view_content,
  137.                 MSG_HANDLE hMsgHandle,
  138.                 MESSAGE_NOTIFICATION *pNotifyIndHdrs);
  139. extern JC_RETCODE mmi_jmms_create_delivery_report_header_for_idle_screen(
  140.                     jmms_pending_mms_delivery_reports_struct *delivery_header);
  141. extern JC_RETCODE mmi_jmms_create_read_report_header_for_idle_screen(
  142.                     jmms_pending_mms_read_reports_struct *read_report_header);
  143. extern JC_RETCODE mmi_jmms_notification_reponse(MESSAGE_NOTIFICATION *pNotification, EMessageStatus eMessageStatus);
  144. extern JC_RETCODE jmms_mmi_notification_response_for_immediate_retrieval(CONTENT_DATA ViewContent);
  145. extern JC_RETCODE jmms_mmi_ack_for_deffered_retrieval(CONTENT_DATA Content);
  146. extern JC_RETCODE mmi_jmms_handle_deffered_retrieved_mms(CONTENT_DATA Content);
  147. extern void mmi_jmms_exit_read_report_query_screen(void);
  148. #endif /* __MMI_JMMSPUSHHANDLING_H */