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

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.  *  JMMSWriteMMS.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_write_mms_ui.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.  *
  51.  *------------------------------------------------------------------------------
  52.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  53.  *============================================================================
  54.  ****************************************************************************/
  55. #ifndef __MMI_JMMSWRITEMMSSECMMI_H
  56. #define __MMI_JMMSWRITEMMSSECMMI_H
  57. #include "MMI_features.h"
  58. #include "PixtelDataTypes.h"
  59. // #include "MessagingDataTypes.h"
  60. /* 
  61.  * Define
  62.  */
  63. #define CAST_PU8(RAW)   ((U8*)(RAW))
  64. #define CAST_CPS8(RAW)  ((const S8*)(RAW))
  65. #define CAST_CPU8(RAW)  ((const U8*)(RAW))
  66. #define GET_U8_BYTE_TO_U16(RAW, i)  ((U16)(CAST_CPU8(RAW)[i]))
  67. #define STR_SIZE(len) ((len)<<1)
  68. #define STR_AT(RAW, n) ((void*)(CAST_PU8(RAW)+STR_SIZE(n)))
  69. #define CHR_AT(RAW, n) ((U16)(GET_U8_BYTE_TO_U16(RAW, STR_SIZE(n))+(GET_U8_BYTE_TO_U16(RAW, STR_SIZE(n)+1)<<8)))
  70. #define STR_LEN(RAW)  UCS2Strlen(CAST_CPS8(RAW))
  71. /* /#define CHR(x)                ((U16)(x)) */
  72. /* 
  73.  * Typedef 
  74.  */
  75. typedef enum
  76. {
  77.     E_WRITE_MMS_TO,
  78.     E_WRITE_MMS_CC,
  79.     E_WRITE_MMS_BCC,
  80.     E_WRITE_MMS_SUBJECT,
  81.     E_WRITE_MMS_ATTACHMENT_CAPTION,
  82.     E_WRITE_MMS_ATTACHMENT,
  83.     E_WRITE_MMS_EDIT_CONTENT_CAPTION,
  84.     E_WRITE_MMS_EDIT_CONTENT,
  85.     WRITE_MMS_INLINE_TOTAL
  86. } jmms_write_mms_inline_items_enum;
  87. typedef enum
  88. {
  89.     E_TO_ADDRESSES,
  90.     E_CC_ADDRESSES,
  91.     E_BCC_ADDRESSES,
  92. E_NONE_ADDRESSES     // COMPILER WARNING REMOVAL
  93. } jmms_write_mms_addresses_options;
  94. typedef enum
  95. {
  96.     E_ADD_NUMBER,
  97.     E_ADD_EMAIL,
  98.     E_EDIT_ADDRESS
  99. } jmms_address_option_enum;
  100. /* 
  101.  * Extern Global Variable
  102.  */
  103. /* 
  104.  * Extern Global Function
  105.  */
  106. extern void mmi_jmms_entry_write_message(void);
  107. extern void mmi_jmms_write_mms_fill_inline_struct(void);
  108. /* void mmi_jmms_write_mms_custom_func(void); */
  109. extern void mmi_jmms_write_mms_subject_custom_func(void);
  110. extern void mmi_jmms_write_mms_highlight_hdlr(S32 index);
  111. extern void mmi_jmms_exit_write_message(void);
  112. extern void mmi_jmms_entry_address_option(void);
  113. extern void mmi_jmms_done_write_mms(void);
  114. extern void mmi_jmms_entry_addresses_option_screen(void);
  115. extern void mmi_jmms_highlight_write_mms_add_number(void);
  116. extern void mmi_jmms_highlight_write_mms_add_email(void);
  117. extern void mmi_jmms_highlight_write_mms_edit(void);
  118. extern void mmi_jmms_highlight_write_mms_delete(void);
  119. extern void mmi_jmms_highlight_write_mms_delete_all(void);
  120. extern void mmi_jmms_entry_addresses_list_screen(void);
  121. extern void mmi_jmms_entry_write_message_add_number(void);
  122. extern void mmi_jmms_entry_write_message_add_number_screen(void);
  123. extern void mmi_jmms_address_fullscreen_editor_on_empty(void);
  124. extern void mmi_jmms_address_fullscreen_editor_on_not_empty(void);
  125. extern void mmi_jmms_address_search_phonebook_or_ok(void);
  126. extern U8 mmi_jmms_add_address_in_addresse_list(S8 *address);
  127. extern void mmi_jmms_address_editor_insert_character_plus(void);
  128. extern void mmi_jmms_init_msg_context_struct(void);
  129. extern void mmi_jmms_entry_write_message(void);
  130. extern void mmi_jmms_entry_write_message_screen(void);
  131. extern void mmi_jmms_entry_write_message_add_email(void);
  132. extern void mmi_jmms_entry_write_message_edit(void);
  133. extern void mmi_jmms_entry_write_message_delete(void);
  134. extern void mmi_jmms_entry_write_message_delete_all(void);
  135. extern void mmi_jmms_entry_write_message_add_email_screen(void);
  136. extern MMI_BOOL mmi_jmms_check_address_input_format(U8 *email_address);
  137. extern MMI_BOOL mmi_jmms_check_number_input_format(U8 *number);
  138. extern MMI_BOOL mmi_jmms_check_duplicate_address(U8 *address, jmms_write_mms_addresses_options ignore_address_field, S32 ignore_address_id);
  139. extern MMI_BOOL mmi_jmms_addrss_is_domain_name(U16 *str);
  140. extern MMI_BOOL mmi_jmms_is_email_local_part(U16 *str, S32 cnt);
  141. extern void mmi_jmms_address_list_highlight_hdlr(S32 index);
  142. extern void mmi_jmms_back_to_write_mms(void);
  143. extern U8 mmi_jmms_replace_address_in_addresse_list(S8 *address);
  144. extern void mmi_jmms_highlight_write_mms_done_send_only(void);
  145. extern void mmi_jmms_highlight_write_mms_done_save_and_send(void);
  146. extern void mmi_jmms_highlight_write_mms_done_save_to_drafts(void);
  147. extern void mmi_jmms_highlight_write_mms_done_send_options(void);
  148. extern void mmi_jmms_highlight_write_mms_done_exit(void);
  149. extern void mmi_jmms_done_exit_confirm_screen(void);
  150. extern void mmi_jmms_go_back_from_rc_screen(void);
  151. extern void mmi_jmms_pre_entry_write_mms_done_send_only(void);
  152. extern void mmi_jmms_entry_write_mms_done_send_only(void);
  153. extern void mmi_jmms_entry_write_mms_done_save_and_send(void);
  154. extern void mmi_jmms_entry_write_mms_done_save_to_drafts(void);
  155. extern void mmi_jmms_entry_write_mms_done_replace_save_to_drafts(void);
  156. extern void mmi_jmms_entry_write_mms_done_new_save_to_drafts(void);
  157. extern void mmi_jmms_entry_write_mms_done_send_options(void);
  158. extern void mmi_jmms_entry_write_mms_done_exit(void);
  159. extern void mmi_jmms_done_exit_confirm_screen(void);
  160. extern void mmi_jmms_write_message_init(void);
  161. extern void mmi_jmms_entry_write_message_delete_all_confirm(void);
  162. /* PMT VIKAS START 20060325 */
  163. extern void update_mms_number_from_phonebook(S8 *number);
  164. extern void update_mms_email_from_phonebook(S8 *email);
  165. /* PMT VIKAS END 20060325 */
  166. extern void mmi_jmms_entry_msg_saving_screen(void);
  167. extern void mmi_jmms_entry_msg_saving_status_screen(void);
  168. extern void mmi_jmms_back_from_save_msg_status_screen(void);
  169. /* Deepali Added for Reply Charging handling. */
  170. extern JC_RETCODE mmi_jmms_reply_charging_ind_cb(MSG_HANDLE hMsg, void *pCallbackArg, REPLY_CHARGE_LIMITS *pRCLimit);
  171. extern JC_BOOLEAN mmi_jmms_check_valid_rc_size_limits(void);
  172. extern JC_BOOLEAN mmi_jmms_check_valid_rc_type(void);
  173. extern JC_BOOLEAN mmi_jmms_check_valid_rc_send_time(void);
  174. extern JC_BOOLEAN mmi_jmms_is_rc_info_present(void);
  175. extern void mmi_jmms_clear_rc_info_before_send(void);
  176. extern void mmi_jmms_new_save_to_drafts_async_callback(JC_RETCODE eRet);
  177. extern void mmi_jmms_replace_save_to_drafts_async_callback(JC_RETCODE eRet);
  178. extern void mmi_jmms_replace_save_to_drafts_async_callback(JC_RETCODE eRet);
  179. extern void mmi_jmms_abort_saving_progress(void);
  180. extern void mmi_jmms_edit_content_restricted_mode_query(void);
  181. extern void mmi_jmms_add_blank_slide_before_send_callback(void);
  182. extern void mmi_jmms_proceed_edit_content_after_media_removal(void);
  183. extern MMI_BOOL mmi_jmms_compair_string(S8 *string1, S8 *string2);
  184. extern void mmi_jmms_entry_write_message_screen_in_history(void); 
  185. //KP Jerry add on 2007-4-12 start
  186. #ifdef __MMI_MESSAGES_SENDMSG_QUICKLY__
  187. extern void Set_Jmms_SoftKey_Done(void);
  188. #endif
  189. //KP Jerry add on 2007-4-12 end
  190. #endif /* __MMI_JMMSWRITEMMSSECMMI_H */