PersonalizationDef.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:
- * ---------
- * PersonalizationDef.h
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * This file is intends for defines of Personalization module
- *
- * 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!
- *
- *------------------------------------------------------------------------------
- * 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 : PersonalizationDef.h
- PURPOSE : defines of Personalization module
- REMARKS : nil
- AUTHOR : Deepali
- DATE : 12/03/03
- **************************************************************/
- #ifndef _PERSONALIZATION_DEF_H
- #define _PERSONALIZATION_DEF_H
- #include "PixtelDataTypes.h"
- /*
- * #define MAX_NP_LENGTH_MMI 9
- * #define MAX_SIMP_LENGTH_MMI 9
- * #define MAX_SP_LENGTH_MMI 9
- * #define MAX_CP_LENGTH_MMI 9
- * #define MAX_NSP_LENGTH_MMI 9
- */
- #ifdef __MMI_SML_MENU__
- #define MAX_GID_LEN 3
- #define MAX_IMSI_LEN 15
- #define MAX_NP_LEN 6
- #define MAX_NSP_LEN 8
- #ifdef __MMI_SML_UNLOCK_RETRY_TIMER__
- #define MIN_RETRY_INTERVAL 30
- #endif
- #endif /* __MMI_SML_MENU__ */
- enum STR_PERSONALIZATION_LIST
- {
- STR_ENTER_NP_MSG = SIM_DETECTION_BASE + 900,
- STR_ENTER_NSP_MSG,
- STR_ENTER_CP_MSG,
- STR_ENTER_SP_MSG,
- STR_ENTER_SIMP_MSG,
- STR_WRONG_SP_MSG,
- STR_WRONG_CP_MSG,
- STR_WRONG_NSP_MSG,
- STR_WRONG_NP_MSG,
- STR_WRONG_SIMP_MSG,
- /* SML menu implementation */
- #ifdef __MMI_SML_MENU__
- STR_ENTER_NSSP_MSG,
- STR_ENTER_SIMC_MSG,
- STR_WRONG_NSSP_MSG,
- STR_WRONG_SIMC_MSG,
- STR_ID_CATEGORY_NP_LOCK,
- STR_ID_CATEGORY_NSP_LOCK,
- STR_ID_CATEGORY_CP_LOCK,
- STR_ID_CATEGORY_SP_LOCK,
- STR_ID_CATEGORY_SIMP_LOCK,
- STR_ID_CATEGORY_NSP_SP_LOCK,
- STR_ID_CATEGORY_SIMP_CP_LOCK,
- STR_ID_SML_LOCK_MENU,
- STR_ID_SML_UNLOCK_MENU,
- STR_ID_SML_ADD_MENU,
- STR_ID_SML_REMOVE_MENU,
- STR_ID_SML_DEACTIVATE_MENU,
- STR_ID_SML_REBOOT_MSG,
- STR_ID_SML_QUREY_MSG,
- STR_ID_SML_BLOCK_MSG,
- STR_ID_SML_NO_EF_GID,
- STR_ID_SML_INVALID_DATA,
- STR_ID_SML_AUTOKEY_CONFIRM,
- STR_ID_LAST_RETRY_MSG,
- STR_ID_GENERAL_RETRY_MSG,
- STR_ID_UNLOCK_FIRST_MSG,
- STR_ID_EMPTY_CATEGORY_MSG,
- STR_ID_NO_RECORD_MSG,
- STR_ID_NO_DATA_MSG,
- STR_ID_SML_CAT_LOCKED,
- STR_ID_SML_CAT_UNLOCKED,
- STR_ID_SML_CAT_AUTOLOCKED,
- STR_ID_SML_AUTOLOCKED,
- STR_ID_SML_FAIL_TO_AUTOLOCK,
- STR_ID_SML_NP_DATA,
- STR_ID_SML_NSP_DATA,
- STR_ID_SML_SP_DATA,
- STR_ID_SML_CP_DATA,
- STR_ID_SML_SIMP_DATA,
- #endif /* __MMI_SML_MENU__ */
- STR_PERS_RSK_SOS
- };
- enum SCR_PERSONALIZATION_LIST
- {
- SCR_ENTER_NP = SIM_DETECTION_BASE + 900,
- SCR_ENTER_NSP,
- SCR_ENTER_CP,
- SCR_ENTER_SP,
- SCR_ENTER_SIMP,
- /* SML menu implementation */
- #ifdef __MMI_SML_MENU__
- SCR_ENTER_NS_SP,
- SCR_ENTER_SIM_C,
- /* screens for menu */
- SCR_ID_SML_LOCK_MENU,
- SCR_ID_SML_UNLOCK_MENU,
- SCR_ID_SML_ADD_MENU,
- SCR_ID_SML_REMOVE_MENU,
- SCR_ID_SML_DEACTIVATE_MENU,
- /* screens for add data */
- SCR_ID_SML_QUERY_POPUP,
- SCR_ID_SML_FILL_DATA,
- SCR_ID_SML_AUTOKEY_CONFIRM,
- /* screens for confirmation */
- SCR_ID_SML_REMOVE_CONFIRM,
- SCR_ID_SML_DEACTIVATE_CONFIRM,
- /* screens for input key */
- SCR_ID_SML_INPUT_KEY,
- SCR_ID_SML_CONFIRM_KEY,
- /* screens for please wait next attempt */
- #ifdef __MMI_SML_UNLOCK_RETRY_TIMER__
- SCR_ID_SML_WAIT_ATTEMPT,
- #endif
- #endif /* __MMI_SML_MENU__ */
- SCR_ID_PERSONALIZATION_DUMMY
- };
- /* SML menu implementation */
- #ifdef __MMI_SML_MENU__
- typedef struct
- {
- U8 operation_type; /* lock (0) or unlock (1) */
- U8 selected_category; /* from 0 to 6 */
- U8 category_state[7];
- U8 total_records[7];
- U8 used_records[7];
- U8 key_state[7];
- U8 retry_count[7];
- U8 imsi[MAX_IMSI_LEN+1];
- U8 gid1;
- U8 gid2;
- U8 gid_valid_nibble; /* lower nibble for gid1 and upper nibble for gid2 */
- U8 autolock_nibble; /* lower nibble for auto lock enable and upper nibble for auto lock result */
- U8 digits_of_mcc_mnc;
- U8 action_not_from_menu;
- #ifdef __MMI_SML_UNLOCK_RETRY_TIMER__
- S32 retry_countdown;
- FuncPtr next_attempt_hdlr;
- #endif /* __MMI_SML_UNLOCK_RETRY_TIMER__ */
- U8 input_imsi[(MAX_IMSI_LEN+1)*ENCODING_LENGTH];
- U8 input_gid1[(MAX_GID_LEN+1)*ENCODING_LENGTH];
- U8 input_gid2[(MAX_GID_LEN+1)*ENCODING_LENGTH];
- } mmi_sml_menu_struct;
- #endif /* __MMI_SML_MENU__ */
- #endif /* _PERSONALIZATION_DEF_H */