wgui_categories_MMS.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) 2005
  8. *
  9. *  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. *  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. *  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. *  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. *  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. *  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. *  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. *  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. *  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. *  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. *  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. *  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. *  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. *  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. *  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
  27. *
  28. *  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. *  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. *  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. *  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. *  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*****************************************************************************
  36.  *
  37.  * Filename:
  38.  * ---------
  39.  *  wgui_categories_MMS.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *  MAUI
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  MMS related categories. 
  48.  *
  49.  *  [Category275]       MMS SMIL editor
  50.  *
  51.  * Author:
  52.  * -------
  53.  * -------
  54.  *
  55.  *============================================================================
  56.  *             HISTORY
  57.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
  58.  *------------------------------------------------------------------------------
  59.  * removed!
  60.  *
  61.  * removed!
  62.  * removed!
  63.  * removed!
  64.  *
  65.  * removed!
  66.  * removed!
  67.  * removed!
  68.  *
  69.  * removed!
  70.  * removed!
  71.  * removed!
  72.  *
  73.  * removed!
  74.  * removed!
  75.  * removed!
  76.  *
  77.  * removed!
  78.  * removed!
  79.  * removed!
  80.  *
  81.  *------------------------------------------------------------------------------
  82.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  83.  *============================================================================
  84.  ****************************************************************************/
  85. #ifndef __WGUI_CATEGORIES_MMS_H__
  86. #define __WGUI_CATEGORIES_MMS_H__
  87. #ifndef __WGUI_CATEGORIES_INPUTS_H__
  88. #error "wgui_categories_inputs.h should be included before wgui_categories_MMS.h "
  89. #endif 
  90. /***************************************************************************** 
  91. * Define
  92. *****************************************************************************/
  93. /***************************************************************************** 
  94. * Typedef 
  95. *****************************************************************************/
  96. typedef void (*wgui_cat275_draw_title_hdlr) (U32 identifier);
  97. typedef void (*wgui_cat275_draw_area_hdlr) (U32 identifier, S32 y_offset, S32 clip_x1, S32 clip_y1, S32 clip_x2,
  98.                                             S32 clip_y2);
  99. /***************************************************************************** 
  100. * Extern Global Variable
  101. *****************************************************************************/
  102. /***************************************************************************** 
  103. * Extern Global Function
  104. *****************************************************************************/
  105. extern void RedrawCategory275Screen(void);
  106. extern void ShowCategory275Screen(
  107.                 U32 identifier,
  108.                 U16 left_softkey,
  109.                 U16 left_softkey_icon,
  110.                 U16 right_softkey,
  111.                 U16 right_softkey_icon,
  112.                 S16 input_type,
  113.                 U8 *buffer,
  114.                 S32 buffer_size,
  115.                 U16 vbar_width,
  116.                 wgui_cat275_draw_title_hdlr draw_title_fp,
  117.                 U16 draw_area_1_height,
  118.                 wgui_cat275_draw_area_hdlr draw_area_1_fp,
  119.                 U16 draw_area_2_height,
  120.                 wgui_cat275_draw_area_hdlr draw_area_2_fp,
  121.                 U8 *history_buffer);
  122. extern void ShowCategory277Screen(
  123.                 U32 identifier,
  124.                 U16 left_softkey,
  125.                 U16 left_softkey_icon,
  126.                 U16 right_softkey,
  127.                 U16 right_softkey_icon,
  128.                 S16 input_type,
  129.                 U8 *buffer,
  130.                 S32 buffer_size,
  131.                 U16 vbar_width,
  132.                 wgui_cat275_draw_title_hdlr draw_title_fp,
  133.                 U16 draw_area_1_height,
  134.                 wgui_cat275_draw_area_hdlr draw_area_1_fp,
  135.                 U16 draw_area_2_height,
  136.                 wgui_cat275_draw_area_hdlr draw_area_2_fp,
  137.                 UI_font_type *text_font,
  138.                 color *text_color,
  139.                 color *bg_color,
  140.                 U8 *history_buffer);
  141. #if defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__) || defined(__MMI_SMART_MESSAGE_MT__)
  142. extern void ShowCategoryNSM275Screen(
  143.                 U32 identifier,
  144.                 U16 left_softkey,
  145.                 U16 left_softkey_icon,
  146.                 U16 right_softkey,
  147.                 U16 right_softkey_icon,
  148.                 S16 input_type,
  149.                 U8 *buffer,
  150.                 S32 buffer_size,
  151.                 U16 vbar_width,
  152.                 wgui_cat275_draw_title_hdlr draw_title_fp,
  153.                 U16 draw_area_1_height,
  154.                 wgui_cat275_draw_area_hdlr draw_area_1_fp,
  155.                 U16 draw_area_2_height,
  156.                 wgui_cat275_draw_area_hdlr draw_area_2_fp,
  157.                 U8 *history_buffer);
  158. extern void ExitCategoryNSM275Screen(void);
  159. extern void RedrawCategoryNSM275Screen(void);
  160. #endif /* defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__) || defined(__MMI_SMART_MESSAGE_MT__) */ 
  161. extern void ExitCategory275Screen(void);
  162. extern S32 GetCategory275HistorySize(void);
  163. extern U8 *GetCategory275History(U8 *history_buffer);
  164. void SetCategory275RightSoftkeyFunction(void (*f) (void), MMI_key_event_type k);
  165. extern void Category275GotoTop(void);
  166. extern void Category275GotoBottom(void);
  167. extern void Category275SetUnmodified(void);
  168. extern BOOL Category275CheckIfModified(void);
  169. extern color(*category275_get_bg_color) (void);         /* to set background color */
  170. extern color(*category275_get_text_color) (void);       /* to set editor text color. */
  171. extern UI_font_type(*category275_get_text_font) (void); /* to set editor text font. */
  172. extern void AppendCategory275String(S16 input_type, U8 *buffer, S32 buffer_size, U8 *s, U8 *history_buffer);
  173. extern void RedrawCategory276Screen(void);
  174. extern void ShowCategory276Screen(
  175.                 U8 *title,
  176.                 U16 title_icon,
  177.                 U16 left_softkey,
  178.                 U16 left_softkey_icon,
  179.                 U16 right_softkey,
  180.                 U16 right_softkey_icon,
  181.                 U8 *history_buffer);
  182. extern void DrawCat276SlidingBar(U8 percentage);
  183. extern void ExitCategory276Screen(void);
  184. extern void DrawCat276Title(U8 *title);
  185. extern void dm_category_276_controlled_area(dm_coordinates *coordinate);
  186. #endif /* __WGUI_CATEGORIES_MMS_H__ */