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

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_IMPS.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *  MAUI
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  IMPS related categories. 
  48.  *
  49.  *  [Category420]       About Me Screen
  50.  *  [Category425]       Contact List Screen
  51.  *  [Category435]       Chat Screen with Popup Editor
  52.  *
  53.  * Author:
  54.  * -------
  55.  * -------
  56.  *
  57.  *============================================================================
  58.  *             HISTORY
  59.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
  60.  *------------------------------------------------------------------------------
  61.  * removed!
  62.  *
  63.  * removed!
  64.  * removed!
  65.  * removed!
  66.  *
  67.  *------------------------------------------------------------------------------
  68.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  69.  *============================================================================
  70.  ****************************************************************************/
  71. #ifndef __WGUI_CATEGORIES_IMPS_H__
  72. #define __WGUI_CATEGORIES_IMPS_H__
  73. #ifndef __WGUI_CATEGORIES_INPUTS_H__
  74. #error "wgui_categories_inputs.h should be included before wgui_categories_IMPS.h "
  75. #endif 
  76. #ifndef _WGUI_TAB_BARS_H
  77. #error "wgui_tab_bars.h should be included before wgui_categories_IMPS.h "
  78. #endif 
  79. #ifndef __WGUI_CATEGORIES_H__
  80. #error "wgui_categories.h should be included before wgui_categories_IMPS.h "
  81. #endif 
  82. /***************************************************************************** 
  83. * Define
  84. *****************************************************************************/
  85. /***************************************************************************** 
  86. * Typedef 
  87. *****************************************************************************/
  88. /***************************************************************************** 
  89. * Extern Global Variable
  90. *****************************************************************************/
  91. /***************************************************************************** 
  92. * Extern Global Function
  93. *****************************************************************************/
  94. /* Category 420 */
  95. extern void ShowCategory420Screen(
  96.                 U16 title,
  97.                 U16 title_icon,
  98.                 U16 left_softkey,
  99.                 U16 left_softkey_icon,
  100.                 U16 right_softkey,
  101.                 U16 right_softkey_icon,
  102.                 UI_string_type name,
  103.                 S8 *photo_filename,
  104.                 U16 alternative_photo,
  105.                 U16 mood_caption,
  106.                 UI_string_type mood_string,
  107.                 PU8 mood_icon,
  108.                 U16 status_caption,
  109.                 UI_string_type status_string,
  110.                 PU8 status_icon,
  111.                 U8 *buffer,
  112.                 S32 buffer_size,
  113.                 U8 *history_buffer);
  114. /* Category 425 */
  115. extern void ShowCategory425Screen(
  116.                 UI_string_type title,
  117.                 U16 left_softkey,
  118.                 U16 left_softkey_icon,
  119.                 U16 right_softkey,
  120.                 U16 right_softkey_icon,
  121.                 S8 n_tabs,
  122.                 S8 highlighted_tab,
  123.                 tab_bar_item_type *tab_items,
  124.                 S32 number_of_items,
  125.                 GetAsyncItemFuncPtr get_item_func,
  126.                 GetAsyncHintFuncPtr get_hint_func,
  127.                 PU8 sample_icon,
  128.                 PU8 sample_icon2,
  129.                 S32 highlighted_item,
  130.                 U8 *history_buffer,
  131.                 BOOL *list_is_ready_p);
  132. extern void RefreshCategory425Screen(S32 number_of_items, S32 highlighted_item);
  133. extern void UpdateCategory425TabBar(UI_string_type title, S8 n_tabs, S8 highlighted_tab, tab_bar_item_type *tab_items);
  134. extern void SetCategory425TabSelectCallback(void (*select_callback) (int index));
  135. extern void Category425BlinkTab(S8 tab);
  136. extern void Category425UnBlinkTab(S8 tab);
  137. #if (defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__)) || defined(__MMI_SMART_MESSAGE_MT__)
  138. extern void ShowCategoryNSM2Screen(
  139.                 U16 title,
  140.                 U16 title_icon,
  141.                 U16 left_softkey,
  142.                 U16 left_softkey_icon,
  143.                 U16 right_softkey,
  144.                 U16 right_softkey_icon,
  145.                 UI_string_type name,
  146.                 S8 *photo_filename,
  147.                 U16 alternative_photo,
  148.                 U16 mood_caption,
  149.                 UI_string_type mood_string,
  150.                 PU8 mood_icon,
  151.                 U16 status_caption,
  152.                 UI_string_type status_string,
  153.                 PU8 status_icon,
  154.                 U8 *buffer,
  155.                 S32 buffer_size,
  156.                 U8 *history_buffer);
  157. extern void RedrawCategoryNSM2Screen(void);
  158. extern void ExitCategoryNSM2Screen(void);
  159. #endif /* (defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__)) || defined(__MMI_SMART_MESSAGE_MT__) */ 
  160. /* Category 430 */
  161. extern void ShowCategory430Screen(
  162.                 U16 title,
  163.                 U16 title_icon,
  164.                 U16 left_softkey,
  165.                 U16 left_softkey_icon,
  166.                 U16 right_softkey,
  167.                 U16 right_softkey_icon,
  168.                 U8 *log_buffer1,
  169.                 S16 log_buffer_size1,
  170.                 U8 *log_buffer2,
  171.                 S16 log_buffer_size2,
  172.                 MMI_BOOL show_sending_buffer,
  173.                 S16 max_sending_buffer_size,
  174.                 U8 *sending_buffer,
  175.                 S16 sent_count,
  176.                 U8 *name1,
  177.                 U8 *name2,
  178.                 U8 *history_buffer);
  179. extern void UpdateCategory430LSK(U16 left_softkey, U16 left_softkey_icon);
  180. extern void UpdateCategory430RSK(U16 right_softkey, U16 right_softkey_icon);
  181. extern void UpdateCategory430LogBox(MMI_BOOL update_log1, MMI_BOOL update_log2);
  182. extern void ConfigureCategory430SendingBox(MMI_BOOL show_sending_buffer, S16 sent_count);
  183. extern void SetCategory430SendingBoxCharacterCount(S16 sent_count);
  184. /* Category 435 */
  185. extern void ShowCategory435Screen(
  186.                 UI_string_type title,
  187.                 U16 left_softkey,
  188.                 U16 left_softkey_icon,
  189.                 U16 right_softkey,
  190.                 U16 right_softkey_icon,
  191.                 U16 editor_left_softkey,
  192.                 U16 editor_left_softkey_icon,
  193.                 U16 editor_right_softkey,
  194.                 U16 editor_right_softkey_icon,
  195.                 S8 n_tabs,
  196.                 S8 highlighted_tab,
  197.                 tab_bar_item_type *tab_items,
  198.                 BOOL show_popup,
  199.                 UI_string_type popup_title,
  200.                 S16 input_type,
  201.                 U8 *buffer,
  202.                 S32 buffer_size,
  203.                 U8 *log_buffer,
  204.                 S32 log_buffer_size,
  205.                 multi_line_input_box_icon_hdlr icon_callback,
  206.                 PU8 sample_icon,
  207.                 U8 *history_buffer);
  208. void SetCategory435EditorRSKFunction(void (*f) (void));
  209. void SetCategory435EditorLSKFunction(void (*f) (void));
  210. void SetCategory435RSKFunction(void (*f) (void));
  211. void SetCategory435LSKFunction(void (*f) (void));
  212. extern void UpdateCategory435LogText(U8 *log_buffer, S32 log_buffer_size);
  213. extern void UpdateCategory435LogAndEditorText(U8 *buffer, S32 buffer_size, U8 *log_buffer, S32 log_buffer_size);
  214. extern void Category435ShowPopup(BOOL update_screen);
  215. extern void Category435HidePopup(BOOL update_screen);
  216. extern BOOL Category435IsPopupDisplayed(void);
  217. extern void Category435DirectInsertString(UI_string_type s, BOOL redraw_screen);
  218. extern void UpdateCategory435TabBar(UI_string_type title, S8 n_tabs, S8 highlighted_tab, tab_bar_item_type *tab_items);
  219. void SetCategory435TabSelectCallback(void (*select_callback) (int index));
  220. extern void Category435BlinkTab(S8 tab);
  221. extern void Category435UnBlinkTab(S8 tab);
  222. #endif /* __WGUI_CATEGORIES_IMPS_H__ */