ShortcutsDefs.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) 2005
- *
- * BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
- * THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
- * RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
- * AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
- * NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
- * SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
- * SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
- * THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
- * NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
- * SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
- *
- * BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
- * LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
- * AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
- * OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
- * MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
- *
- * THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
- * WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
- * LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
- * RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
- * THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
- *
- *****************************************************************************/
- /*******************************************************************************
- * Filename:
- * ---------
- * ShortcutsDefs.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * This file defines constant and enum value used in Shortcuts application.
- *
- * 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!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * Nov 12 2005 mtk01215
- * removed!
- * removed!
- *
- *------------------------------------------------------------------------------
- * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
- *==============================================================================
- *******************************************************************************/
- /**
- * Copyright Notice
- * ?2002 - 2003, Pixtel Communications, Inc., 1489 43rd Ave. W.,
- * Vancouver, B.C. V6M 4K8 Canada. All Rights Reserved.
- * (It is illegal to remove this copyright notice from this software or any
- * portion of it)
- */
- /**************************************************************
- FILENAME : ShortcutsDefs.h
- PURPOSE : Shortcuts application
- REMARKS : nil
- AUTHOR : NEERAJ SHARMA
- DATE : May 12,03
- **************************************************************/
- #ifndef _MMI_SHORTCUTSDEFS_H
- #define _MMI_SHORTCUTSDEFS_H
- #include "MMI_features.h"
- #ifndef __DISABLE_SHORTCUTS_IMPL__
- #include "StdC.h"
- #include "PixtelDataTypes.h"
- #include "FrameworkStruct.h"
- #include "ShortcutsStruct.h"
- /*
- * Define
- */
- #define SHCT_MAX_ALIAS_TABLE 1
- #define SHCT_COUNT_BYTE 0
- #define SHCT_INTEGRITY_BYTE 1
- #define SHCT_DATA_BYTE 2
- // #define SHCT_MENUID_START SHCT_DATA_BYTE + SHCT_MAX_SEL_LIST
- #define ENABLE_STATE 1
- #define DISABLE_STATE 0
- #define SHCT_DEFAULT_MENU_ID 0
- #define SHCT_NVRAM_SIZE 250
- #define SHCT_MAX_LIST 30
- #define SHCT_MAX_CANDI_LIST 50
- extern U8 shct_max_list_cand;
- extern U8 shct_list_default;
- /*
- * Typedef
- */
- /* Screen Ids */
- typedef enum
- {
- SCR_ID_SHCT_IDLE_SHORTCUT = SHORTCUTS_BASE + 1,
- SCR_ID_SHCT_MAIN_MENU,
- SCR_ID_SHCT_EDIT,
- SCR_ID_SHCT_OPTION,
- SCR_ID_SHCT_ORDER,
- #if defined(__MMI_DEDICATED_KEY_SHORTCUTS__)
- SCR_ID_SHCT_DEDICATED_KEYS,
- SCR_ID_SHCT_EDIT_DEDICATED_KEYS,
- #endif /* defined(__MMI_DEDICATED_KEY_SHORTCUTS__) */
- SCR_ID_SHTC_TOTAL
- } SCR_ID_SHCT_ENUM;
- /* Option Ids */
- typedef enum
- {
- SHR_OPTIONS_ADD = 0,
- SHR_OPTIONS_EDIT,
- SHR_OPTIONS_DELETE,
- SHR_OPTIONS_DELETE_ALL,
- SHR_OPTIONS_ENABLE,
- SHR_OPTIONS_DISABLE,
- SHR_OPTIONS_CHANGE_ORDER,
- SHR_OPTIONS_TOTAL
- } OPTION_ID_SHCT_ENUM;
- /* String Ids */
- typedef enum
- {
- SHORTCUTS_OPTIONS_EDIT_STRING_ID = SHORTCUTS_BASE + 1,
- SHORTCUTS_TITLE_STRING_ID,
- SHORTCUTS_HINT_STRING_ID,
- SHORTCUTS_ADD_STRING_ID,
- SHORTCUTS_EDIT_STRING_ID,
- SHORTCUTS_DELETE_STRING_ID,
- SHORTCUTS_DELETE_ALL_STRING_ID,
- SHORTCUTS_ENABLE_STRING_ID,
- SHORTCUTS_DISABLE_STRING_ID,
- SHORTCUTS_FULL_MSG_STRING_ID,
- SHORTCUTS_CHANGE_ORDER_STRING_ID
- } STR_ID_SHCT_ENUM;
- /* Image Ids */
- typedef enum
- {
- SHORTCUTS_OPTIONS_EDIT_IMAGE_ID = SHORTCUTS_BASE + 1,
- SHORTCUTS_TITLE_IMAGE_ID
- } IMG_ID_SHCT_ENUM;
- #if defined(__MMI_DEDICATED_KEY_SHORTCUTS__)
- typedef enum
- {
- DEDICATED_KEY_UP = 0,
- DEDICATED_KEY_DOWN,
- DEDICATED_KEY_LEFT,
- DEDICATED_KEY_RIGHT,
- TOTAL_DEDICATED_KEYS
- } SHCT_DEDICATED_KEY_ENUM;
- #endif /* defined(__MMI_DEDICATED_KEY_SHORTCUTS__) */
- typedef struct
- {
- FuncPtr LSKFunc;
- #ifdef __MMI_TOUCH_SCREEN__
- /* Always append one entry for Pen Calibration on display */
- shct_item_struct SelShctList[SHCT_MAX_LIST + 1];
- /* U8 SelShctState[SHCT_MAX_SEL_LIST+1]; */
- #else /* __MMI_TOUCH_SCREEN__ */
- shct_item_struct SelShctList[SHCT_MAX_LIST];
- /* U8 SelShctState[SHCT_MAX_SEL_LIST]; */
- #endif /* __MMI_TOUCH_SCREEN__ */
- /* 6 SelShctEnableList[SHCT_MAX_SEL_LIST+1]; */
- U16 CandShctList[SHCT_MAX_CANDI_LIST];
- #if defined(__MMI_DEDICATED_KEY_SHORTCUTS__)
- U16 DediShctList[TOTAL_DEDICATED_KEYS];
- U8 CurrSelArrow;
- U8 IsKeyRetrieving;
- #endif /* defined(__MMI_DEDICATED_KEY_SHORTCUTS__) */
- U8 NumCandShct; /* number of candidate shortcut */
- U8 NumSelShct; /* number of selected shortcut */
- U8 CurrSelShct; /* current selected shortcut from shortcut list */
- U8 CurrEditShct; /* current selected shortcut from candidate list */
- U8 CurrOptionShct; /* current selected option item */
- U8 Integrity;
- S32 Order; /* order of selected item */
- /* displayItemNum; */
- } shct_context_struct;
- /*
- * Extern Global Variable
- */
- extern shct_context_struct g_shct_cntx;
- /*
- * Extern Global Function
- */
- #endif /* __DISABLE_SHORTCUTS_IMPL__ */ /* #ifndef __DISABLE_SHORTCUTS_IMPL__ */
- #endif /* _MMI_SHORTCUTSDEFS_H */