JMMSWriteMMS.h
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:8k
源码类别:
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:
- * ---------
- * JMMSWriteMMS.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * This file contans the enums,constants,structures, function prototypes used in
- * jmms_write_mms_ui.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!
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *============================================================================
- ****************************************************************************/
- #ifndef __MMI_JMMSWRITEMMSSECMMI_H
- #define __MMI_JMMSWRITEMMSSECMMI_H
- #include "MMI_features.h"
- #include "PixtelDataTypes.h"
- // #include "MessagingDataTypes.h"
- /*
- * Define
- */
- #define CAST_PU8(RAW) ((U8*)(RAW))
- #define CAST_CPS8(RAW) ((const S8*)(RAW))
- #define CAST_CPU8(RAW) ((const U8*)(RAW))
- #define GET_U8_BYTE_TO_U16(RAW, i) ((U16)(CAST_CPU8(RAW)[i]))
- #define STR_SIZE(len) ((len)<<1)
- #define STR_AT(RAW, n) ((void*)(CAST_PU8(RAW)+STR_SIZE(n)))
- #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)))
- #define STR_LEN(RAW) UCS2Strlen(CAST_CPS8(RAW))
- /* /#define CHR(x) ((U16)(x)) */
- /*
- * Typedef
- */
- typedef enum
- {
- E_WRITE_MMS_TO,
- E_WRITE_MMS_CC,
- E_WRITE_MMS_BCC,
- E_WRITE_MMS_SUBJECT,
- E_WRITE_MMS_ATTACHMENT_CAPTION,
- E_WRITE_MMS_ATTACHMENT,
- E_WRITE_MMS_EDIT_CONTENT_CAPTION,
- E_WRITE_MMS_EDIT_CONTENT,
- WRITE_MMS_INLINE_TOTAL
- } jmms_write_mms_inline_items_enum;
- typedef enum
- {
- E_TO_ADDRESSES,
- E_CC_ADDRESSES,
- E_BCC_ADDRESSES,
- E_NONE_ADDRESSES // COMPILER WARNING REMOVAL
- } jmms_write_mms_addresses_options;
- typedef enum
- {
- E_ADD_NUMBER,
- E_ADD_EMAIL,
- E_EDIT_ADDRESS
- } jmms_address_option_enum;
- /*
- * Extern Global Variable
- */
- /*
- * Extern Global Function
- */
- extern void mmi_jmms_entry_write_message(void);
- extern void mmi_jmms_write_mms_fill_inline_struct(void);
- /* void mmi_jmms_write_mms_custom_func(void); */
- extern void mmi_jmms_write_mms_subject_custom_func(void);
- extern void mmi_jmms_write_mms_highlight_hdlr(S32 index);
- extern void mmi_jmms_exit_write_message(void);
- extern void mmi_jmms_entry_address_option(void);
- extern void mmi_jmms_done_write_mms(void);
- extern void mmi_jmms_entry_addresses_option_screen(void);
- extern void mmi_jmms_highlight_write_mms_add_number(void);
- extern void mmi_jmms_highlight_write_mms_add_email(void);
- extern void mmi_jmms_highlight_write_mms_edit(void);
- extern void mmi_jmms_highlight_write_mms_delete(void);
- extern void mmi_jmms_highlight_write_mms_delete_all(void);
- extern void mmi_jmms_entry_addresses_list_screen(void);
- extern void mmi_jmms_entry_write_message_add_number(void);
- extern void mmi_jmms_entry_write_message_add_number_screen(void);
- extern void mmi_jmms_address_fullscreen_editor_on_empty(void);
- extern void mmi_jmms_address_fullscreen_editor_on_not_empty(void);
- extern void mmi_jmms_address_search_phonebook_or_ok(void);
- extern U8 mmi_jmms_add_address_in_addresse_list(S8 *address);
- extern void mmi_jmms_address_editor_insert_character_plus(void);
- extern void mmi_jmms_init_msg_context_struct(void);
- extern void mmi_jmms_entry_write_message(void);
- extern void mmi_jmms_entry_write_message_screen(void);
- extern void mmi_jmms_entry_write_message_add_email(void);
- extern void mmi_jmms_entry_write_message_edit(void);
- extern void mmi_jmms_entry_write_message_delete(void);
- extern void mmi_jmms_entry_write_message_delete_all(void);
- extern void mmi_jmms_entry_write_message_add_email_screen(void);
- extern MMI_BOOL mmi_jmms_check_address_input_format(U8 *email_address);
- extern MMI_BOOL mmi_jmms_check_number_input_format(U8 *number);
- extern MMI_BOOL mmi_jmms_check_duplicate_address(U8 *address, jmms_write_mms_addresses_options ignore_address_field, S32 ignore_address_id);
- extern MMI_BOOL mmi_jmms_addrss_is_domain_name(U16 *str);
- extern MMI_BOOL mmi_jmms_is_email_local_part(U16 *str, S32 cnt);
- extern void mmi_jmms_address_list_highlight_hdlr(S32 index);
- extern void mmi_jmms_back_to_write_mms(void);
- extern U8 mmi_jmms_replace_address_in_addresse_list(S8 *address);
- extern void mmi_jmms_highlight_write_mms_done_send_only(void);
- extern void mmi_jmms_highlight_write_mms_done_save_and_send(void);
- extern void mmi_jmms_highlight_write_mms_done_save_to_drafts(void);
- extern void mmi_jmms_highlight_write_mms_done_send_options(void);
- extern void mmi_jmms_highlight_write_mms_done_exit(void);
- extern void mmi_jmms_done_exit_confirm_screen(void);
- extern void mmi_jmms_go_back_from_rc_screen(void);
- extern void mmi_jmms_pre_entry_write_mms_done_send_only(void);
- extern void mmi_jmms_entry_write_mms_done_send_only(void);
- extern void mmi_jmms_entry_write_mms_done_save_and_send(void);
- extern void mmi_jmms_entry_write_mms_done_save_to_drafts(void);
- extern void mmi_jmms_entry_write_mms_done_replace_save_to_drafts(void);
- extern void mmi_jmms_entry_write_mms_done_new_save_to_drafts(void);
- extern void mmi_jmms_entry_write_mms_done_send_options(void);
- extern void mmi_jmms_entry_write_mms_done_exit(void);
- extern void mmi_jmms_done_exit_confirm_screen(void);
- extern void mmi_jmms_write_message_init(void);
- extern void mmi_jmms_entry_write_message_delete_all_confirm(void);
- /* PMT VIKAS START 20060325 */
- extern void update_mms_number_from_phonebook(S8 *number);
- extern void update_mms_email_from_phonebook(S8 *email);
- /* PMT VIKAS END 20060325 */
- extern void mmi_jmms_entry_msg_saving_screen(void);
- extern void mmi_jmms_entry_msg_saving_status_screen(void);
- extern void mmi_jmms_back_from_save_msg_status_screen(void);
- /* Deepali Added for Reply Charging handling. */
- extern JC_RETCODE mmi_jmms_reply_charging_ind_cb(MSG_HANDLE hMsg, void *pCallbackArg, REPLY_CHARGE_LIMITS *pRCLimit);
- extern JC_BOOLEAN mmi_jmms_check_valid_rc_size_limits(void);
- extern JC_BOOLEAN mmi_jmms_check_valid_rc_type(void);
- extern JC_BOOLEAN mmi_jmms_check_valid_rc_send_time(void);
- extern JC_BOOLEAN mmi_jmms_is_rc_info_present(void);
- extern void mmi_jmms_clear_rc_info_before_send(void);
- extern void mmi_jmms_new_save_to_drafts_async_callback(JC_RETCODE eRet);
- extern void mmi_jmms_replace_save_to_drafts_async_callback(JC_RETCODE eRet);
- extern void mmi_jmms_replace_save_to_drafts_async_callback(JC_RETCODE eRet);
- extern void mmi_jmms_abort_saving_progress(void);
- extern void mmi_jmms_edit_content_restricted_mode_query(void);
- extern void mmi_jmms_add_blank_slide_before_send_callback(void);
- extern void mmi_jmms_proceed_edit_content_after_media_removal(void);
- extern MMI_BOOL mmi_jmms_compair_string(S8 *string1, S8 *string2);
- extern void mmi_jmms_entry_write_message_screen_in_history(void);
- //KP Jerry add on 2007-4-12 start
- #ifdef __MMI_MESSAGES_SENDMSG_QUICKLY__
- extern void Set_Jmms_SoftKey_Done(void);
- #endif
- //KP Jerry add on 2007-4-12 end
- #endif /* __MMI_JMMSWRITEMMSSECMMI_H */