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

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_message_settings.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_message_settings.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.  * removed!
  39.  *
  40.  * removed!
  41.  * removed!
  42.  * removed!
  43.  *
  44.  * removed!
  45.  * removed!
  46.  * removed!
  47.  *
  48.  * removed!
  49.  * removed!
  50.  * removed!
  51.  *
  52.  * removed!
  53.  * removed!
  54.  * removed!
  55.  *
  56.  * removed!
  57.  * removed!
  58.  * removed!
  59.  *
  60.  * removed!
  61.  * removed!
  62.  * removed!
  63.  *
  64.  * removed!
  65.  * removed!
  66.  * removed!
  67.  * removed!
  68.  *
  69.  *------------------------------------------------------------------------------
  70.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  71.  *============================================================================
  72.  ****************************************************************************/
  73. #ifndef __MMI_JMMSMESSAGESETTINGS_H
  74. #define __MMI_JMMSMESSAGESETTINGS_H
  75. #include "MMI_features.h"
  76. #include "PixtelDataTypes.h"
  77. #include "ddlbase.h"
  78. #include "jcerror.h"
  79. #include "jcevent.h"
  80. #include "jcutils.h"
  81. #include "jdd_MMIdatatype.h"
  82. #include "gui_data_types.h"
  83. /* 
  84.  * Define
  85.  */
  86. #define MAX_NO_PAGES_INPUT          2
  87. #define  MAX_DEFAULT_SLIDE_TIME_INPUT  3
  88. #define MAX_AUTO_SIGN_LENGTH        128
  89. #define  MAX_DEADLINE_TIME_VALUE_INPUT 2
  90. #define  MAX_REPLY_CHARGE_SIZE_INPUT      3
  91. #define  MAX_FILTER_MSG_SIZE_INPUT     3
  92. #ifndef __MMI_MMS_OMA_CONF_273__
  93. #define __MMI_MMS_OMA_CONF_273__
  94. #endif 
  95. /* 
  96.  * Typedef 
  97.  */
  98. typedef enum
  99. {
  100.     E_USE_NVRAM_SETTINGS = 1,
  101.     E_USE_LOCAL_SETTINGS
  102. } jmms_use_settings_enum;
  103. typedef enum
  104. {
  105.     E_IMMEDIATE,
  106.     E_1_HR,
  107.     E_12_HRS,
  108.     E_24_HRS,
  109.     DELIEVERY_TOTAL
  110. } jmms_delievery_time_enum;
  111. typedef enum
  112. {
  113.     E_OFF,
  114.     E_ON
  115. } jmms_off_on_enum;
  116. typedef enum
  117. {
  118.     E_ALLOW,
  119.     E_REJECT
  120. } jmms_allow_reject_enum;
  121. typedef enum
  122. {
  123.     E_PRIORITY_LOW,
  124.     E_PRIORITY_NORMAL,
  125.     E_PRIORITY_HIGH,
  126.     PRIORITY_TOTAL
  127. } jmms_priority_enum;
  128. typedef enum
  129. {
  130.     E_VALIDITY_PERIOD_MAX,
  131.     E_VALIDITY_PERIOD_1HR,
  132.     E_VALIDITY_PERIOD_12HRS,
  133.     E_VALIDITY_PERIOD_1DAY,
  134.     E_VALIDITY_PERIOD_1WEEK,
  135.     VALIDITY_PERIOD_TOTAL
  136. } jmms_validity_period_enum;
  137. typedef enum
  138. {
  139.     E_CREAT_MODE_RESTRICTED,
  140.     E_CREAT_MODE_WARNING,
  141.     E_CREAT_MODE_FREE,
  142.     CREATION_MODES_TOTAL
  143. } jmms_creation_modes_enum;
  144. typedef enum
  145. {
  146.     E_MMS_LAYOUT_POTRAIT,
  147.     E_MMS_LAYOUT_LANDSCAPE,
  148.     LAYOUT_TOTAL
  149. } jmms_layout_enum;
  150. typedef enum
  151. {
  152.     E_IMAGE_RESIZE_OFF,
  153.     E_IMAGE_RESIZE_160x120,
  154.     E_IMAGE_RESIZE_320x240,
  155.     E_IMAGE_RESIZE_640x480,
  156.     IMAGE_RESIZE_TOTAL
  157. } jmms_image_resize_enum;
  158. typedef enum
  159. {
  160.     E_HOME_NOETWORK_RETRIEVAL_IMMEDAITE = 0x01, /* to match with raoming retrioeve modes */
  161.     E_HOME_NOETWORK_RETRIEVAL_DEFFERED,
  162.     E_HOME_NOETWORK_RETRIEVAL_RESTRICTED,
  163.     HOME_NETWORK_TOTAL
  164. } jmms_home_network_retrieval_enum;
  165. typedef enum
  166. {
  167.     E_ROAMING_RETRIEVAL_AS_HOME,
  168.     E_ROAMING_RETRIEVAL_IMMEDAITE,
  169.     E_ROAMING_RETRIEVAL_DEFFERED,
  170.     E_ROAMING_RETRIEVAL_RESTRICTED,
  171.     ROAMING_TOTAL
  172. } jmms_roaming_retrieval_enum;
  173. typedef enum
  174. {
  175.     E_READ_REPORT_SEND_ON_REQUEST,
  176.     E_READ_REPORT_SEND_ALWAYS,
  177.     E_READ_REPORT_SEND_NEVER,
  178.     READ_REPORT_SEND_TOTAL
  179. } jmms_read_report_enum;
  180. typedef enum
  181. {
  182.     E_FULL_MMS,
  183.     E_TEXT_ONLY,
  184.     REPLY_CHARGING_TYPE_TOTAL
  185. } jmms_reply_charging_type_enum;
  186. typedef enum
  187. {
  188.     E_COMPOSE_DEFAULT_SLIDE_TIME_CAPTION,
  189.     E_COMPOSE_DEFAULT_SLIDE_TIME,
  190.     E_COMPOSE_LAYOUT_CAPTION,
  191.     E_COMPOSE_LAYOUT,
  192. #ifdef __DRM_SUPPORT__
  193.     E_COMPOSE_ADD_DRM_CAPTION,
  194.     E_COMPOSE_ADD_DRM,
  195. #endif /* __DRM_SUPPORT__ */ 
  196.     E_COMPOSE_CREATION_MODES_CAPTION,
  197.     E_COMPOSE_CREATION_MODES,
  198. #ifdef __MMI_MMS_MEGA_PIXEL_SUPPORT__
  199.     E_COMPOSE_IMAGE_RESIZE_CAPTION,
  200.     E_COMPOSE_IMAGE_RESIZING,
  201. #endif /* __MMI_MMS_MEGA_PIXEL_SUPPORT__ */ 
  202.     E_COMPOSE_MAX_NO_PAGES_CAPTION,
  203.     E_COMPOSE_MAX_NO_PAGES,
  204.     E_COMPOSE_BEST_PAGE_DURATION_CAPTION,
  205.     E_COMPOSE_BEST_PAGE_DURATION,
  206.     /* PMT VIKAS START 20060403 */
  207. //#ifdef __MMI_MMS_SIGNATURE__
  208.     E_COMPOSE_AUTO_SIGNATURE_CAPTION,
  209.     E_COMPOSE_AUTO_SIGNATURE,
  210.     E_COMPOSE_AUTO_SIGNATURE_CONTENT,
  211. //#endif /* __MMI_MMS_SIGNATURE__ */ 
  212.     /* PMT VIKAS END 20060403 */
  213.     COMPOSE_INLINE_TOTAL
  214. } jmms_compose_inline_items_enum;
  215. typedef enum
  216. {
  217.     E_SENDING_VALIDITY_PERIOD_CAPTION,
  218.     E_SENDING_VALIDITY_PERIOD,
  219.     E_SENDING_DELIVERY_REPORT_CAPTION,
  220.     E_SENDING_DELIVERY_REPORT,
  221.     E_SENDING_READ_REPORT_CAPTION,
  222.     E_SENDING_READ_REPORT,
  223.     E_SENDING_PRIORITY_CAPTION,
  224.     E_SENDING_PRIORITY,
  225.     E_SENDING_DELIVERY_TIME_CAPTION,
  226.     E_SENDING_DELIVERY_TIME,
  227.     E_SENDING_HIDE_SENDER_CAPTION,
  228.     E_SENDING_HIDE_SENDER,
  229.     E_SENDING_REPLY_CHARGING_CAPTION,
  230.     E_SENDING_REPLY_CHARGING,
  231.     SENDING_INLINE_TOTAL
  232. } jmms_sending_inline_items_enum;
  233. typedef enum
  234. {
  235.     E_SENDING_REPLY_CHARGING_REQUEST_TYPE_CAPTION,
  236.     E_SENDING_REPLY_CHARGING_REQUEST_TYPE,
  237.     E_SENDING_REPLY_CHARGING_DEADLINE_CAPTION,
  238.     E_SENDING_REPLY_CHARGING_DEADLINE,
  239.     E_SENDING_REPLY_CHARGING_SIZE_CAPTION,
  240.     E_SENDING_REPLY_CHARGING_SIZE,
  241.     SENDING_REPLY_CHARGING_INLINE_TOTAL
  242. } jmms_sending_reply_charging_inline_items_enum;
  243. typedef enum
  244. {
  245.     E_RETRIEVAL_HOME_NETWORK_CAPTION,
  246.     E_RETRIEVAL_HOME_NETWORK,
  247.     E_RETRIEVAL_ROAMING_CAPTION,
  248.     E_RETRIEVAL_ROAMING,
  249.     E_RETRIEVAL_FILTERS_CAPTION,
  250.     E_RETRIEVAL_READ_REPORT_CAPTION,
  251.     E_RETRIEVAL_READ_REPORT,
  252.     E_RETRIEVAL_DELIVERY_REPORT_CAPTION,
  253.     E_RETRIEVAL_DELIVERY_REPORT,
  254.     RETRIEVAL_INLINE_TOTAL
  255. } jmms_retrieval_inline_items_enum;
  256. typedef enum
  257. {
  258.     E_RETRIEVAL_FILTERS_ANONYMOUS_CAPTION,
  259.     E_RETRIEVAL_FILTERS_ANONYMOUS,
  260. #ifndef __MMI_MMS_OMA_CONF_273__
  261.     E_RETRIEVAL_FILTERS_MAX_MSG_SIZE_CAPTION,
  262.     E_RETRIEVAL_FILTERS_MAX_MSG_SIZE,
  263. #endif /* __MMI_MMS_OMA_CONF_273__ */ 
  264.     E_RETRIEVAL_FILTERS_ADVERTISEMENT_CAPTION,
  265.     E_RETRIEVAL_FILTERS_ADVERTISEMENT,
  266.     RETRIEVAL_FILTER_INLINE_TOTAL
  267. } jmms_retrieval_filters_inline_items_enum;
  268. typedef enum
  269. {
  270.     E_ENTRY_FROM_MMS_SETTINGS,
  271.     E_ENTRY_FROM_WRITE_MMS
  272. } jmms_send_settings_entry_control_enum;
  273. typedef struct
  274. {
  275.     U8 layout;
  276.     U8 add_drm;
  277.     U8 creation_mode;
  278.     U8 image_resize_option;
  279.     U8 max_no_pages;
  280.     U8 best_page_duration;
  281.     U8 auto_signature;
  282. U8 reserved_1;
  283.     U8 auto_signature_content[(MAX_AUTO_SIGN_LENGTH + 1) *ENCODING_LENGTH];
  284. U16 reserved_2;
  285.     U32 default_slide_time;
  286. } jmms_nvram_compose_settings_struct;
  287. /* typedef struct
  288.    {
  289.    S32      validity_period;
  290.    S32      delivery_report;
  291.    S32      read_report;
  292.    S32      priority;
  293.    S32      delivery_time;
  294.    S32      reply_charging;
  295.    S32      request_type;
  296.    U32      deadline_for_reply;
  297.    U32      size;
  298.    S32      hide_sender;
  299.    }jmms_sending_settings_struct; */
  300. typedef struct
  301. {
  302.     U8 validity_period;
  303.     U8 delivery_report;
  304.     U8 read_report;
  305.     U8 priority;
  306.     U8 delivery_time;
  307.     U8 reply_charging;
  308.     U8 request_type;
  309.     U8 hide_sender;
  310.     U32 deadline_for_reply;
  311.     U32 size;
  312. } jmms_nvram_sending_settings_struct;
  313. /* typedef struct
  314.    {
  315.    S32      home_network;
  316.    S32      roaming;
  317.    S32      anonymous_filter;
  318.    U32      msgsize_filter;
  319.    S32      advertisement_filter;
  320.    S32      read_report;
  321.    S32      delivery_report;
  322.    }jmms_retrieval_settings_struct; */
  323. typedef struct
  324. {
  325.     U8 home_network;
  326.     U8 roaming;
  327.     U8 anonymous_filter;
  328.     U8 advertisement_filter;
  329.     U8 read_report;
  330.     U8 delivery_report;
  331.     U16 msgsize_filter;
  332. } jmms_retrieval_settings_struct;
  333. /* 
  334.  * Extern Global Variable
  335.  */
  336. /* 
  337.  * Extern Global Function
  338.  */
  339. extern void mmi_jmms_exit_compose_settings(void);
  340. /* PMT VIKAS START 20060403 */
  341. //#ifdef __MMI_MMS_SIGNATURE__
  342. extern void mmi_jmms_auto_signature_highlight_hdlr(S32 index);
  343. //#endif 
  344. /* PMT VIKAS END 20060403 */
  345. extern void mmi_jmms_compose_fill_inline_struct(void);
  346. extern void mmi_jmms_save_compose_settings(void);
  347. extern void mmi_jmms_confirm_save_compose_settings(void);
  348. extern void mmi_jmms_entry_compose_settings(void);
  349. extern void mmi_jmms_highlight_memory_status(void);
  350. extern void mmi_jmms_highlight_edit_profile(void);
  351. extern void mmi_jmms_highlight_retrieval_setings(void);
  352. extern void mmi_jmms_highlight_sending_setings(void);
  353. extern void mmi_jmms_highlight_compose_setings(void);
  354. extern void mmi_jmms_entry_message_settings(void);
  355. extern void mmi_jmms_validate_max_no_pages(U8 *buffer, U8 *cursor, S32 text_length);
  356. extern void mmi_jmms_entry_memory_status(void);
  357. extern void mmi_jmms_entry_retrieval_settings(void);
  358. extern void mmi_jmms_entry_sending_settings(void);
  359. extern void mmi_jmms_exit_confirm_screen(void);
  360. extern void mmi_jmms_compose_inline_custom_func(void);
  361. extern void mmi_jmms_validate_max_no_pages(U8 *buffer, U8 *cursor, S32 text_length);
  362. extern void mmi_jmms_confirm_save_sending_settings(void);
  363. extern void mmi_jmms_save_sending_settings(void);
  364. extern void mmi_jmms_sending_fill_inline_struct(void);
  365. extern void mmi_jmms_exit_sending_settings(void);
  366. extern void mmi_jmms_reply_charging_highlight_hdlr(S32 index);
  367. extern void mmi_jmms_entry_sending_reply_charging_settings(void);
  368. extern void mmi_jmms_sending_reply_charging_fill_inline_struct(void);
  369. extern void mmi_jmms_exit_sending_reply_charging_settings(void);
  370. extern void mmi_jmms_confirm_save_retrieval_settings(void);
  371. extern void mmi_jmms_save_retrieval_settings(void);
  372. extern void mmi_jmms_retrieval_fill_inline_struct(void);
  373. extern void mmi_jmms_retrieval_settings_highlight_hdlr(S32 index);
  374. extern void mmi_jmms_exit_retrieval_settings(void);
  375. extern void mmi_jmms_entry_retrieval_filters_settings(void);
  376. extern void mmi_jmms_filter_done_handler(void);
  377. extern void mmi_jmms_retrieval_filters_fill_inline_struct(void);
  378. extern void mmi_jmms_exit_retrieval_filters_settings(void);
  379. extern void mmi_jmms_pre_entry_sending_settings(void);
  380. extern void mmi_jmms_pre_entry_retrieval_settings(void);
  381. extern void mmi_jmms_pre_entry_compose_settings(void);
  382. extern void mmi_jmms_check_sending_settings_control(U8 control);
  383. extern void mmi_jmms_read_nvram_message_settings(void);
  384. extern void mmi_jmms_sending_reply_charging_settings_done(void);
  385. extern void mmi_jmms_pre_entry_sending_reply_charging_settings(void);
  386. extern void mmi_jmms_sending_settings_highlight_hdlr(S32 index);
  387. extern void mmi_jmms_read_back_auto_sign_content(void);
  388. extern void mmi_jmms_free_addresses_list(void);
  389. /* extern void mmi_jmms_free_addresses_list_on_end(void); */
  390. extern void mmi_jmms_message_settings_init(void);
  391. /* DARA PROFILEHANDLER 020106 */
  392. extern void mmi_jmms_show_profile_list(void);
  393. extern void mmi_jmms_restore_nvram_default_settings(void);
  394. extern U16 mmi_jmms_get_profile_title_icon(void);
  395. /* MAUI_00227929 Start */
  396. extern void mmi_jmms_fill_mms_sending_settings(void);
  397. /* MAUI_00227929 End */
  398. #endif /* __MMI_JMMSMESSAGESETTINGS_H */