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

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.  * Filename:
  37.  * ---------
  38.  *  wgui_categories_CM.h
  39.  *
  40.  * Project:
  41.  * --------
  42.  *   MAUI
  43.  *
  44.  * Description:
  45.  * ------------
  46.  *  Call Management related categories.
  47.  *
  48.  *  Author:
  49.  * -------
  50.  *  Leo Hu (MTK00563)
  51.  *
  52.  *==============================================================================
  53.  *             HISTORY
  54.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
  55.  *------------------------------------------------------------------------------
  56.  * removed!
  57.  *
  58.  * removed!
  59.  * removed!
  60.  * removed!
  61.  *
  62.  * removed!
  63.  * removed!
  64.  * removed!
  65.  *
  66.  * removed!
  67.  * removed!
  68.  * removed!
  69.  *
  70.  * removed!
  71.  * removed!
  72.  * removed!
  73.  *
  74.  * removed!
  75.  * removed!
  76.  * removed!
  77.  *
  78.  * removed!
  79.  * removed!
  80.  * removed!
  81.  *
  82.  * removed!
  83.  * removed!
  84.  * removed!
  85.  *
  86.  * removed!
  87.  * removed!
  88.  * removed!
  89.  *
  90.  *------------------------------------------------------------------------------
  91.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
  92.  *==============================================================================
  93.  *******************************************************************************/
  94. #ifndef WGUI_CATEGORIES_CM_H
  95. #define WGUI_CATEGORIES_CM_H
  96. /***************************************************************************** 
  97.  * Include
  98.  *****************************************************************************/
  99. #include "gui_tab_bars.h"
  100. /***************************************************************************** 
  101.  * Define
  102.  *****************************************************************************/
  103. #define DURATION_CM_HEIGHT          15
  104. #define SHOW_DURATION               1
  105. #define NO_DURATION                 0
  106. #define UI_MAX_TAB_BAR_ITEMS                    20
  107. extern tab_bar_item_type MMI_tab_bar_items[UI_MAX_TAB_BAR_ITEMS];
  108. /***************************************************************************** 
  109.  * Typedef
  110.  *****************************************************************************/
  111. typedef enum
  112. {
  113.     WGUI_CATE_MOMT_RES_TYPE_IMAGE_ID = 0,
  114.     WGUI_CATE_MOMT_RES_TYPE_VIDEO_ID,
  115.     WGUI_CATE_MOMT_RES_TYPE_SWFLASH_ID,
  116.     WGUI_CATE_MOMT_RES_TYPE_IMAGE_FILE,
  117.     WGUI_CATE_MOMT_RES_TYPE_VIDEO_FILE,
  118.     WGUI_CATE_MOMT_RES_TYPE_SWFLASH_FILE
  119. } wgui_cate_momt_res_type_enum;
  120. /***************************************************************************** 
  121.  * Global Function
  122.  *****************************************************************************/
  123. /* Category 16 */
  124. extern void RedrawCategory16Screen(void);
  125. extern void ShowCategory16Screen(
  126.                 U16 left_softkey,
  127.                 U16 left_softkey_icon,
  128.                 U16 right_softkey,
  129.                 U16 right_softkey_icon,
  130.                 U8 *Buffer,
  131.                 U32 BufferLength,
  132.                 U8 *history_buffer);
  133. extern void ExitCategory16Screen(void);
  134. extern U8 *GetCategory16History(U8 *history_buffer);
  135. extern S32 GetCategory16HistorySize(void);
  136. void SetCategory16RightSoftkeyFunction(void (*f) (void), MMI_key_event_type k);
  137. extern void RegisterCategory16NavigationKeys(void);
  138. /* Category 17 */
  139. extern void ShowCategory17Screen(
  140.                 U16 title_id,
  141.                 U16 left_softkey,
  142.                 U16 left_softkey_icon,
  143.                 U16 right_softkey,
  144.                 U16 right_softkey_icon,
  145.                 U16 NotificationStringId,
  146.                 PU8 NameOrNumber,
  147.                 PU8 IP_Number,
  148.                 U16 CallLine,
  149.                 U16 default_image_id,
  150.                 U16 resource_id,
  151.                 PS8 resource_filename,
  152.                 wgui_cate_momt_res_type_enum resource_type,
  153.                 U16 repeat_count,
  154.                 BOOL is_visaul_update,
  155.                 BOOL is_aud_enable,
  156.                 BOOL is_play_aud_when_start,
  157.                 PU8 history_buffer);
  158. extern void RedrawCategory17Screen(void);
  159. extern void ExitCategory17Screen(void);
  160. extern void StopCategory17Video(void);
  161. extern void DisableCategory17Audio(void);
  162. extern void EnableCategory17Audio(void);
  163. extern void DisableCategory17VideoUpdate(void);
  164. extern void EnableCategory17VideoUpdate(void);
  165. extern void MOMTHideAnimation(void);
  166. extern MMI_BOOL IsCategory17VideoValid(void);   /* call this function after ShowCategory17Screen */
  167. extern MMI_BOOL IsCategory17SWFlashValid(void);  /* call this function after ShowCategory17Screen */
  168. /* Category 18 */
  169. extern void ShowCategory18Screen(
  170.                 U16 title_id,
  171.                 U16 left_softkey,
  172.                 U16 left_softkey_icon,
  173.                 U16 right_softkey,
  174.                 U16 right_softkey_icon,
  175.                 U16 NotificationStringId,
  176.                 PU8 NameOrNumber,
  177.                 PU8 IP_Number,
  178.                 U16 CallLine,
  179.                 U16 image_id,
  180.                 PS8 image_filename,
  181.                 MMI_BOOL isDisconnecting,
  182.                 PU8 history_buffer);
  183. /* Category 19 */
  184. extern void ShowCategory19Screen(
  185.                 U16 left_softkey,
  186.                 U16 left_softkey_icon,
  187.                 U16 right_softkey,
  188.                 U16 right_softkey_icon,
  189.                 S32 number_of_calls,
  190.                 U8 **CallList,
  191. U16 *CallLines,
  192.                 U16 *CallStates,
  193.                 MYTIME *CurrCallTime,
  194.                 S32 highlighted_item,
  195.                 U8 *history_buffer);
  196. extern void ExitCategory19Screen(void);
  197. extern S32 GetCategory19HistorySize(void);
  198. extern U8 *GetCategory19History(U8 *history_buffer);
  199. extern void RedrawCategory19Screen(void);
  200. /* Category 20 */
  201. extern void ShowCategory20Screen(
  202.                 U16 left_softkey,
  203.                 U16 left_softkey_icon,
  204.                 U16 right_softkey,
  205.                 U16 right_softkey_icon,
  206.                 U8 *NameOrNumber,
  207.                 MYTIME *CurrCallTime,
  208. U16 CallLine,
  209.                 U16 CallState,
  210.                 MMI_BOOL isDisconnecting,
  211.                 U8 *history_buffer);
  212. extern void ExitCategory20Screen(void);
  213. extern void RedrawCategory20Screen(void);
  214. extern S32 GetCategory20HistorySize(void);
  215. extern U8 *GetCategory20History(U8 *history_buffer);
  216. /* Category 308 */
  217. extern void ShowCategory308Screen(
  218.                 U16 left_softkey,
  219.                 U16 left_softkey_icon,
  220.                 U16 right_softkey,
  221.                 U16 right_softkey_icon,
  222.                 U8 *NameOrNumber,
  223.                 U16 bkg_image,
  224.                 U16 call_image,
  225.                 MYTIME *CurrCallTime,
  226.                 U8 *history_buffer,
  227.                 U8 show_duration);
  228. extern void ExitCategory308Screen(void);
  229. extern U8 *GetCategory308History(U8 *history_buffer);
  230. extern S32 GetCategory308HistorySize(void);
  231. extern void RedrawCategory308Screen(void);
  232. /* Category 309 */
  233. extern void ExitCategory309Screen(void);
  234. extern U8 *GetCategory309History(U8 *history_buffer);
  235. extern S32 GetCategory309HistorySize(void);
  236. extern void RedrawCategory309Screen(void);
  237. extern void ChangeCategory309Status(U8 index, U8 value);
  238. extern void Show_MainImages_Category309(void);
  239. extern void ShowCategory309Screen(
  240.                 U16 left_softkey,
  241.                 U16 left_softkey_icon,
  242.                 U16 right_softkey,
  243.                 U16 right_softkey_icon,
  244.                 U8 *NumberorName,
  245.                 U16 bkg_image,
  246.                 MYTIME *CurrCallTime,
  247.                 U8 *status_calls,
  248.                 U8 *history_buffer);
  249. #ifdef __MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__
  250. void SetDialingKeypadCallHandler(void (*handler) (void));
  251. void SetDialingKeypadIPCallHandler(void (*handler)(void));     //KP Jerry add on 2006-11-12
  252. void SetDialingKeypadPhonebookHandler(void (*handler) (void));
  253. #endif /* __MMI_TOUCH_DIAL_SCREEN_WITH_FUNCTION__ */ 
  254. extern void ShowCategory403Screen(
  255.                 U8 *title,
  256.                 U16 title_icon,
  257.                 U16 left_softkey,
  258.                 U16 left_softkey_icon,
  259.                 U16 right_softkey,
  260.                 U16 right_softkey_icon,
  261.                 S8 n_tabs,
  262.                 S8 highlighted_tab,
  263.                 tab_bar_item_type *tab_items,
  264.                 MYTIME *CallDuration,
  265.                 U8 **list_of_items,
  266.                 U16 *list_of_icons,
  267.                 S32 number_of_items,
  268.                 U16 highlighted_item,
  269.                 U8 *history_buffer);
  270. extern void UpdateCategory403TabBar(
  271.                 UI_string_type title,
  272.                 S8 n_tabs,
  273.                 S8 highlighted_tab,
  274.                 tab_bar_item_type *tab_items);
  275. extern void Category403UnBlinkTab(S8 tab);
  276. extern void Category403BlinkTab(S8 tab);
  277. void SetCategory403TabSelectCallback(void (*select_callback) (int index));
  278. extern void ShowCategory404Screen(
  279.             U16 left_softkey,
  280.             U16 left_softkey_icon,
  281.             U16 right_softkey,
  282.             U16 right_softkey_icon,
  283.             U16 bg_image,
  284.             U8 *Buffer,
  285.             U32 BufferLength,
  286.             U8 *history_buffer);
  287. #endif /* WGUI_CATEGORIES_CM_H */