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

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.  * SimDetectionDef.h
  40.  *
  41.  * Project:
  42.  * --------
  43.  *   MAUI
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *   This file is for #defines of Boot Up module
  48.  *
  49.  * Author:
  50.  * -------
  51.  * -------
  52.  *
  53.  *============================================================================
  54.  *             HISTORY
  55.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  56.  *------------------------------------------------------------------------------
  57.  * removed!
  58.  *
  59.  * removed!
  60.  * removed!
  61.  * removed!
  62.  *
  63.  * removed!
  64.  * removed!
  65.  * removed!
  66.  *
  67.  * removed!
  68.  * removed!
  69.  * removed!
  70.  *
  71.  * removed!
  72.  * removed!
  73.  * removed!
  74.  *
  75.  * removed!
  76.  * removed!
  77.  * removed!
  78.  *
  79.  * removed!
  80.  * removed!
  81.  * removed!
  82.  *
  83.  * removed!
  84.  * removed!
  85.  * removed!
  86.  *
  87.  * removed!
  88.  * removed!
  89.  * removed!
  90.  *
  91.  * removed!
  92.  * removed!
  93.  * removed!
  94.  *
  95.  * removed!
  96.  * removed!
  97.  * removed!
  98.  *
  99.  * removed!
  100.  * removed!
  101.  * removed!
  102.  *
  103.  * removed!
  104.  * removed!
  105.  * removed!
  106.  *
  107.  * removed!
  108.  * removed!
  109.  * removed!
  110.  *
  111.  *------------------------------------------------------------------------------
  112.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  113.  *============================================================================
  114.  ****************************************************************************/
  115. /**
  116.  * Copyright Notice
  117.  * ?2002 - 2003, Pixtel Communications, Inc., 1489 43rd Ave. W.,
  118.  * Vancouver, B.C. V6M 4K8 Canada. All Rights Reserved.
  119.  *  (It is illegal to remove this copyright notice from this software or any
  120.  *  portion of it)
  121.  */
  122. /**************************************************************
  123.    FILENAME : SimDetectionDef.h
  124.    PURPOSE     : defines of Boot Up module
  125.    REMARKS     : nil
  126.    AUTHOR      : Deepali
  127.    DATE     : 12/03/03
  128. **************************************************************/
  129. #ifndef _SIM_DETECTION_DEF_H
  130. #define _SIM_DETECTION_DEF_H
  131. #include "PixtelDataTypes.h"
  132. #include "MMI_features.h"     //KP Jerry add for can use "__MMI_SIGNAL_STRENGTH_NUM__" on 2007-3-23
  133. #define MAX_PWD_LENGTH_MMI          9
  134. #define MMI_MIN_PASSWORD_LENGTH     4
  135. #define MMI_MIN_PUK_LENGTH          8
  136. #define ENTER_PIN_SCR               1
  137. #define ENTER_PUK_SCR               2
  138. #define ENTER_SIM_SCR               3
  139. #define ENTER_PHONELOCK             4
  140. #define ENTER_SIM_INSERTION         5
  141. #define ENTER_PUK_BLOCKED           6
  142. #define ENTER_SIM_BLOCK             7
  143. #define ENTER_CONFIRM_PIN           8
  144. #define ENTER_NEW_PIN               9
  145. #define ENTER_NP                    10
  146. #define ENTER_SP                    11
  147. #define ENTER_CP                    12
  148. #define ENTER_NSP                   13
  149. #define ENTER_SIMP                  14
  150. /* SML menu implementation */
  151. #ifdef __MMI_SML_MENU__
  152. #define ENTER_NS_SP                 15
  153. #define ENTER_SIM_C                 16
  154. #define ENTER_IDLE_SCR              17
  155. #else
  156. #define ENTER_IDLE_SCR              15
  157. #endif /* __MMI_SML_MENU__ */
  158. /* Defines for Network detection */
  159. #define MAX_PLMN_LEN_MMI            6
  160. #define MAX_LENGTH_DISPLAY_NAME     20
  161. #define MAX_APHORISM_LIST_LENGTH    35
  162. #define MAX_INSERT_SCR_DIGITS       13
  163. #define MAX_ECC_NUMBER_LIST_LENGTH  5
  164. #define MAX_LENGTH_SERVICE_PROVIDER 17
  165. #define MAX_LENGTH_OPERATOR_NAME    21
  166. #define MAX_LENGTH_OWNER_NUMBER     41
  167. #define MAX_LENGTH_SHORT_OPERATOR_NAME 11
  168. /* Battery Signal Strength Macros */
  169. // MTK Modified, 031116, Robin, Signal strength ranging form 1 ~ 31
  170. // 0 means no signal strength, 99 means invaild pattern
  171. // Because NetWorkSignalLevelIndication() use "less than", so SIGNAL_STRENGTH_LEVEL5 shall be 32
  172. /*
  173.  * > -84 dBm : 4
  174.  * -85~-89dBm : 3
  175.  * -90~-94dBm : 2
  176.  * -100~ -95 dBm : 1
  177.  * < 100dBm : 0
  178.  * 
  179.  * Defined values
  180.  * 
  181.  * <rssi>:
  182.  * 0 -113 dBm or less
  183.  * 1 -111 dBm
  184.  * 2...30 -109... -53 dBm
  185.  * 31 -51 dBm or greater
  186.  * 99 not known or not detectable
  187.  */
  188. #define  SIGNAL_STRENGTH_NONE          0
  189. #define  SIGNAL_STRENGTH_INVAILD       99
  190. //KP Jerry modify on 2007-3-22 start
  191. #if(defined(__MMI_SIGNAL_STRENGTH_NUM__) && (__MMI_SIGNAL_STRENGTH_NUM__==5))
  192. #define SIGNAL_STRENGTH_LEVEL1 3    
  193. #define SIGNAL_STRENGTH_LEVEL2 6   
  194. #define SIGNAL_STRENGTH_LEVEL3 9   
  195. #define SIGNAL_STRENGTH_LEVEL4 12    
  196. #define   SIGNAL_STRENGTH_LEVEL5        15   
  197. #elif(defined(__MMI_SIGNAL_STRENGTH_NUM__) && (__MMI_SIGNAL_STRENGTH_NUM__==6))
  198. #define SIGNAL_STRENGTH_LEVEL1 2    
  199. #define SIGNAL_STRENGTH_LEVEL2 5   
  200. #define SIGNAL_STRENGTH_LEVEL3 8   
  201. #define SIGNAL_STRENGTH_LEVEL4 11    
  202. #define   SIGNAL_STRENGTH_LEVEL5        13 
  203. #define   SIGNAL_STRENGTH_LEVEL6        15
  204. #elif(defined(__MMI_SIGNAL_STRENGTH_NUM__) && (__MMI_SIGNAL_STRENGTH_NUM__==7))
  205. #define SIGNAL_STRENGTH_LEVEL1 2    
  206. #define SIGNAL_STRENGTH_LEVEL2 4   
  207. #define SIGNAL_STRENGTH_LEVEL3 6   
  208. #define SIGNAL_STRENGTH_LEVEL4 8    
  209. #define   SIGNAL_STRENGTH_LEVEL5        10   
  210. #define   SIGNAL_STRENGTH_LEVEL6        12 
  211. #define   SIGNAL_STRENGTH_LEVEL7        15 
  212. #elif(defined(__MMI_SIGNAL_STRENGTH_NUM__) && (__MMI_SIGNAL_STRENGTH_NUM__==8))
  213. #define SIGNAL_STRENGTH_LEVEL1 2
  214. #define SIGNAL_STRENGTH_LEVEL2 4   
  215. #define SIGNAL_STRENGTH_LEVEL3 6   
  216. #define SIGNAL_STRENGTH_LEVEL4 8    
  217. #define   SIGNAL_STRENGTH_LEVEL5        10   
  218. #define SIGNAL_STRENGTH_LEVEL6 12   
  219. #define SIGNAL_STRENGTH_LEVEL7 14    
  220. #define   SIGNAL_STRENGTH_LEVEL8        16  
  221. #elif(defined(__MMI_SIGNAL_STRENGTH_NUM__) && (__MMI_SIGNAL_STRENGTH_NUM__==9))
  222. #define SIGNAL_STRENGTH_LEVEL1 1    
  223. #define SIGNAL_STRENGTH_LEVEL2 3   
  224. #define SIGNAL_STRENGTH_LEVEL3 5   
  225. #define SIGNAL_STRENGTH_LEVEL4 7    
  226. #define   SIGNAL_STRENGTH_LEVEL5        9   
  227. #define SIGNAL_STRENGTH_LEVEL6 11   
  228. #define SIGNAL_STRENGTH_LEVEL7 13   
  229. #define SIGNAL_STRENGTH_LEVEL8 15    
  230. #define   SIGNAL_STRENGTH_LEVEL9        17  
  231. #elif(defined(__MMI_SIGNAL_STRENGTH_NUM__) && (__MMI_SIGNAL_STRENGTH_NUM__==10))
  232. #define SIGNAL_STRENGTH_LEVEL1 1    
  233. #define SIGNAL_STRENGTH_LEVEL2 3   
  234. #define SIGNAL_STRENGTH_LEVEL3 5   
  235. #define SIGNAL_STRENGTH_LEVEL4 7    
  236. #define   SIGNAL_STRENGTH_LEVEL5        9   
  237. #define SIGNAL_STRENGTH_LEVEL6 11    
  238. #define SIGNAL_STRENGTH_LEVEL7 13   
  239. #define SIGNAL_STRENGTH_LEVEL8 14   
  240. #define SIGNAL_STRENGTH_LEVEL9 15    
  241. #define   SIGNAL_STRENGTH_LEVEL10        16   
  242. #else
  243. //Old:
  244. #define SIGNAL_STRENGTH_LEVEL1 6    
  245. #define SIGNAL_STRENGTH_LEVEL2 9   
  246. #define SIGNAL_STRENGTH_LEVEL3 12   
  247. #define SIGNAL_STRENGTH_LEVEL4 15    
  248. //#define   SIGNAL_STRENGTH_LEVEL5        32      //KP Jerry disable on 2007-3-23
  249. #endif
  250. //KP Jerry modify on 2007-3-22 end
  251. /* End Battery Signal Strength Macros */
  252. /* MTK end */
  253. // #define BOOTUP_POPUP_TIMEOUT                                                         2000
  254. #define CODE_VERIFIED_TIMEOUT                   2000
  255. #define APHORISM_SCR_TIME                       2000
  256. #define WELCOME_SCR_TIME                        2000
  257. /* MTK added, Max for Nvram init load-balancing */
  258. /*
  259.  * #ifdef MMI_ON_WIN32
  260.  * #define INITNVRAM_TIME                       2000
  261.  * #else
  262.  * #define INITNVRAM_TIME                       200
  263.  * #endif
  264.  */
  265. /* MTK end */
  266. enum STR_SIM_DETECTION_LIST
  267. {
  268.     STR_ENTER_PIN_MSG = SIM_DETECTION_BASE + 1,
  269.     STR_PIN_BLOCKED_MSG,
  270.     STR_ENTER_PUK_MSG,
  271.     STR_INCORRECT_PIN,
  272.     STR_PIN_BLOCKED_PUK,
  273.     STR_DIAL_EMERGENCY_NUMBER,
  274.     STR_ENTER_NEW_PIN_MSG,
  275.     STR_RSK_SOS,
  276.     STR_ENTER_PIN_AGAIN_MSG,
  277.     STR_PIN_DONOT_MATCH,
  278.     // KPAD_SCR_EMERGENCY_CALL_PIN_PUK_CANCEL,  /* Robin 0726, Use Global defination */
  279.     STR_ENTER_PHONELOCK_MSG,
  280.     STR_SUBLCD_ENTER_PHONELOCK_MSG,
  281.     STR_INCORRECT_PUK,
  282.     STR_INCORRECT_PHONELOCK,
  283.     STR_CLEAR_FOR_CATEGORY5_DUMMY,
  284.     STR_NO_SERVICE_RUNNING_TEXT,
  285.     STR_INVALID_PINPUKPLOCK_LENGTH_RUNNING_TEXT,
  286.     STR_SIM_OPTION,
  287.     STR_SIM_OPTION_CAPTION,
  288.     /* STR_SIM_INSERTION_RSK, */
  289.     STR_SIM_INSERTION_MSG,
  290.     STR_SUBLCD_SIM_INSERTION_MSG,
  291.     STR_SIM_ACCESS_ERROR_MSG,
  292.     STR_SUBLCD_SIM_ACCESS_ERROR_MSG,
  293.     /* micha0923, #169 begn */
  294.     STR_SIM_INVALID_SIM_TITLE,
  295.     STR_SIM_INVALID_SIM_TXT,
  296.     STR_SIM_INVALID_SIM_SELECT_NETWORK_TXT,
  297.     /* micha0923, #169 end */
  298.     STR_APHORISM_TEXT,
  299.     STR_WELCOME_SCR_TEXT,
  300.     STR_SUBLCD_ENTER_PIN_MSG,
  301.     STR_SUBLCD_ENTER_PUK_MSG,
  302.     STR_NOT_SOS_NUMBER,
  303.     STR_CODE_VERIFIED,
  304.     STR_INCORRECT_SSC,
  305.     STR_LIMITED_SERVICE,
  306.     STR_NO_SERVICE,
  307.     STR_SIM_BLOCK_MSG,
  308.     STR_SUBLCD_SIM_BLOCK_MSG,
  309.     STR_APHORISM_TEXT_1,
  310.     STR_APHORISM_TEXT_2,
  311.     STR_APHORISM_TEXT_3,
  312.     STR_APHORISM_TEXT_4,
  313.     STR_APHORISM_TEXT_5,
  314.     STR_APHORISM_TEXT_6,
  315.     STR_APHORISM_TEXT_7,
  316.     STR_APHORISM_TEXT_8,
  317.     STR_APHORISM_TEXT_9,
  318.     STR_APHORISM_TEXT_10,
  319.     STR_APHORISM_TEXT_11,
  320.     STR_APHORISM_TEXT_12,
  321.     STR_APHORISM_TEXT_13,
  322.     STR_APHORISM_TEXT_14,
  323.     STR_APHORISM_TEXT_15,
  324.     STR_APHORISM_TEXT_16,
  325.     STR_APHORISM_TEXT_17,
  326.     STR_APHORISM_TEXT_18,
  327.     STR_APHORISM_TEXT_19,
  328.     STR_APHORISM_TEXT_20,
  329.     STR_APHORISM_TEXT_21,
  330.     STR_APHORISM_TEXT_22,
  331.     STR_APHORISM_TEXT_23,
  332.     STR_APHORISM_TEXT_24,
  333.     STR_APHORISM_TEXT_25,
  334.     STR_APHORISM_TEXT_26,
  335.     STR_APHORISM_TEXT_27,
  336.     STR_APHORISM_TEXT_28,
  337.     STR_APHORISM_TEXT_29,
  338.     STR_APHORISM_TEXT_30,
  339.     STR_APHORISM_TEXT_31,
  340.     STR_APHORISM_TEXT_32,
  341.     STR_APHORISM_TEXT_33,
  342.     STR_APHORISM_TEXT_34,
  343.     //micha0406, STR_PLMN_* moved to customer folder
  344.     //      STR_APHORISM_TEXT_35,
  345.     STR_APHORISM_TEXT_35,
  346.     STR_NAND_CHECK_TITLE,
  347.     STR_NAND_CHECK,
  348.     STR_NAND_CHECK_PROCESSING,
  349.     STR_ID_SIM_REFRESH,
  350.     STR_ID_NAND_QUOTA_OVER_DISK,
  351.     STR_ID_NAND_QUOTA_USAGE_WARNING,
  352.     STR_ID_NAND_DEVICE_NOT_SUPPORTED
  353. };
  354. enum IMG_SIM_DETECTION_LIST
  355. {
  356.     IMG_ENTER_PIN_CAPTION = SIM_DETECTION_BASE + 1,
  357.     IMG_ENTER_PIN_AGAIN_MSG,
  358.     IMG_ENTER_PUK_CAPTION,
  359.     IMG_ENTER_NEW_PIN_FIRST_TIME_CAPTION,
  360.     IMG_ENTER_NEW_PIN_SECOND_TIME_CAPTION,
  361.     IMG_ENTER_PHONE_LOCK_CAPTION,
  362. #ifdef __MMI_MAINLCD_240X320__
  363.     IMG_ID_OPTION_MENU_PHONEBOOK_ICON,
  364.     IMG_ID_OPTION_MENU_MESSAGES_ICON,
  365.     IMG_ID_OPTION_MENU_FUNANDGAMES_ICON,
  366.     IMG_ID_OPTION_MENU_ORGANIZER_ICON,
  367.     IMG_ID_OPTION_MENU_SETTINGS_ICON,
  368.     IMG_ID_OPTION_MENU_PROFILES_ICON,
  369.     IMG_ID_OPTION_MENU_SHORTCUTS_ICON,
  370.     IMG_ID_OPTION_MENU_SERVICES_ICON,
  371.     IMG_ID_OPTION_MENU_CALL_HISTORY_ICON,
  372.     IMG_ID_OPTION_MENU_MULTIMEDIA_ICON,
  373.     IMG_ID_OPTION_MENU_FILEMNGR_ICON,
  374.     IMG_ID_OPTION_MENU_EXTRA_ICON,
  375. #endif /* __MMI_MAINLCD_240X320__ */ 
  376.     IMG_SUBLCD_POWER_ON_SCR,
  377.     IMG_APHORISM_SCR,
  378.     IMG_WELCOME_SCR,
  379.     IMG_SIM_INSERTION_MSG     //KP Jerry add on 2006-11-18
  380. };
  381. enum SCR_SIM_DETECTION_LIST
  382. {
  383.     SCR_ENTER_PIN = SIM_DETECTION_BASE + 1,
  384.     SCR_NO_SERVICE,
  385.     SCR_SIM_OPTION,
  386.     SCR_SIM_INSERTION,
  387.     SCR_PUK_BLOCKED,
  388.     SCR_SIM_BLOCK,
  389.     SCR_ENTER_PUK,
  390.     SCR_ENTER_CONFIRM_PIN,
  391.     SCR_ENTER_NEW_PIN,
  392.     SCR_ENTER_PHONELOCK,
  393.     SCR_DIAL_SOS_NUM,
  394.     SCR_MAKE_SOS_CALL,
  395.     SCR_BOOTUP_POPUP,
  396.     SCR_SSC_ENTER_PUK,
  397.     SCR_POP_UP_HISTORY,
  398.     SCR_CODE_VERIFY,
  399.     APHORISM_SCREEN_ID,
  400.     WELCOME_SCREEN_ID,
  401.     SCR_INVALID_SIM_INFO,
  402.     SCR_NAND_FLASH_CHECK,
  403.     SCR_NAND_CHECK_PROCESSING,
  404.     SCR_BOOTUP_CHECK_DISK
  405. };
  406. typedef enum
  407. {
  408.     NO_SERVICE,
  409.     LIMITED_SERVICE,
  410.     FULL_SERVICE
  411. } SERVICE_TYPE;
  412. typedef enum
  413. {
  414.     MMI_TYPE_NO_REQUIRED,
  415.     MMI_TYPE_PHONELOCK,
  416.     MMI_TYPE_CHV1,
  417.     MMI_TYPE_CHV2,
  418.     MMI_TYPE_UBCHV1,
  419.     MMI_TYPE_UBCHV2,
  420.     MMI_TYPE_NP,
  421.     MMI_TYPE_NSP,
  422.     MMI_TYPE_SP,
  423.     MMI_TYPE_CP,
  424.     MMI_TYPE_IMSI_LOCK,
  425.     MMI_TYPE_PERSONALIZATION_KEY,
  426.     MMI_TYPE_CHV1_BLOCKED,
  427.     MMI_TYPE_CHV2_BLOCKED,
  428.     MMI_TYPE_SIM_CARD_BLOCKED,
  429.     MMI_TYPE_UBCHV2_BLOCKED,
  430.     MMI_TYPE_UBCHV1_CHV1_NOT_LOCK,
  431.     MMI_TYPE_LINK_NS_SP,
  432.     MMI_TYPE_LINK_SIM_C,
  433.     MMI_TYPE_UNSPECIFIED
  434. } MMISMUSECURITYTYPEENUM;
  435. typedef enum
  436. {
  437.     MMI_SIM_CARD_REMOVED,
  438.     MMI_SIM_ACCESS_ERROR,
  439.     MMI_SIM_REFRESH,
  440.     MMI_SIM_BT_ACCESS_PROFILE_ON = 5,
  441.     MMI_SIM_BT_ACCESS_PROFILE_OFF
  442. } MMISIMERRORCAUSEENUM;
  443. typedef enum
  444. {
  445.     MMI_SIM_CMD_SUCCESS = 2560,
  446.     MMI_SIM_CMD_FAIL = 2561,
  447.     MMI_SIM_FATAL_ERROR = 2562,
  448.     MMI_SIM_NO_INSERTED = 2563,
  449.     MMI_SIM_CHV_NOT_INIT = 2564,
  450.     MMI_SIM_CHV_RETRY_ALLOW = 2565,
  451.     MMI_SIM_CHV_BLOCK = 2566,
  452.     MMI_SIM_ACCESS_NOT_ALLOW = 2567,
  453.     MMI_SIM_SAT_CMD_BUSY = 2568,
  454.     MMI_SIM_DL_ERROR = 2569,
  455.     MMI_SIM_MEMORY_PROBLEM = 2570,
  456.     MMI_SIM_TECHNICAL_PROBLEM = 2571,
  457.     MMI_SIM_EF_RECORD_FULL = 2573
  458. } MMISMURESULTCMDRESULTENUM;
  459. /* Enum for results of Network Attached Indecation */
  460. typedef enum
  461. {
  462.     MMI_RAC_OK,
  463.     MMI_RAC_NO_CELL,
  464.     MMI_RAC_LIMITED_SERVICE,
  465.     /* micha0923, #169 */
  466.     MMI_RAC_ERROR,
  467.     MMI_RAC_INVALID_SIM,
  468.     /* micha1119, vito's request */
  469.     MMI_RAC_ATTEMPT_TO_UPDATE,
  470.     MMI_RAC_SEARCHING   /* 6 */
  471. } MMIRACRESPONSEENUM;
  472. /* Enum for Service Type */
  473. typedef enum
  474. {
  475.     MMI_REG_STATE_NOT_REGISTERED = 0,
  476.     MMI_REG_STATE_REGISTERED,
  477.     MMI_REG_STATE_SEARCHING,
  478.     MMI_REG_STATE_REG_DENIED,
  479.     MMI_REG_STATE_UNKNOWN,
  480.     MMI_REG_STATE_NOT_ACTIVE
  481. } REGSTATEENUM;
  482. /********************************************************/
  483. typedef struct
  484. {
  485.     //      U8  PowerOnPeriod;
  486.     //      U8  PowerOnTillIdleApp;
  487.     //      U8  idleScreenFirst;
  488.     //      U8  PowerOnAnimationComplete;
  489.     //      U8  PasswdReqIndFlag;
  490.     //      U8  SimQueryFailIndFlag;
  491.     //      U16 NetWorkFlag;    /* Flag indicating network is there or not */
  492.     U8 IsCampOnTonePlayed;
  493.     U8 testRoaming;     /* Robin 1211:
  494.                            1: Never send get IMEI request
  495.                            2: Waiting get IMEI response
  496.                            3: IMEI response has came  */
  497.     U8 CurrentServiceType;      /* Service types to be returned to other applications */
  498.     U8 AbnormalReset;           /* Max for abnormal reset 0912 */
  499.     U16 NoOfPLMNSupported;
  500.     U8 PrevScreenIndicator;
  501.     U8 ForCMToIdentifySOSCall;  /* For CM notification */
  502.     /* U8  InvalidSim; */
  503.     U8 InvalidSimShowed;
  504.     U8 CurrentCampOnBand;       /* Robin 1009 reserve for Rx_Level_Ind interface change */
  505.     U8 RequireRPLMN;            /* paul for not display RPLMN if SPN say so */
  506.     /* U8  RoamingFlag; */
  507.     U8 SSCFromEnterPukAtBootUp;
  508.     /* U8  SimRemoveFlag; */
  509.     U8 SOSCallFlagTOAvoidHistorySave;
  510.     // U8  IsSimValid;  /* MTK added, Max: to indicate SIM failure related cases 1208 */
  511.     U8 PowerOnMode;     /* Power on Mode */
  512.     //#ifdef __MANUAL_MODE_NW_SEL__
  513.     //      U8  PLMNSelectionMode;
  514.     //#endif 
  515.     //#ifdef __FLIGHT_MODE_SUPPORT__
  516.     //      U8  actFlightMode;  /* Normal mode (0) or Filght mode (1) only */
  517.     //#endif
  518.     U8 NandIdCheckRes;
  519.     /* diamond, 2005/08/15 bootup revise */
  520.     U8 PowerOnMMIStatus;
  521.     U8 PowerOnSIMStatus;
  522.     U8 PowerOnNWStatus;
  523.     U8 PowerOffMMIStatus;
  524.     /* end, diamond */
  525. } pwr_context_struct;
  526. typedef struct
  527. {
  528.     U8 PowerOnCharger;          /* Tells if the power on is bcos of charger */
  529.     U8 PowerOnChargingPeriod;   /* Tells if charging is going on during power on charger */
  530.     U8 ChargingAbnormal;        /* If abnormal case of charging. */
  531.     U8 ChargingComplete;        /* Tells if charging is complete. (Robin 1121 for engineer mode) */
  532.     U8 LowBatteryFlag;          /* Tels if Battery is low. */
  533.     U8 LowBatteryTxProhibitFlag;
  534.     U8 chargerLevel;
  535.     U8 batteryStatus;
  536.     U8 isChargerConnected;      /* Tells if charger is connected */
  537.     U8 LowBatteryCutOffCallCnt;
  538. } charbat_context_struct;
  539. #ifdef __MMI_NITZ__
  540. typedef struct
  541. {
  542.     U8 opname_from_nitz;
  543. //  U8 *opname;
  544.     U8 country_init;
  545.     U8 plmn[MAX_PLMN_LEN_MMI+1];
  546.     U8 display_name[MAX_LENGTH_DISPLAY_NAME * ENCODING_LENGTH];
  547. } idle_nitz_struct;
  548. #endif /* __MMI_NITZ__ */
  549. /********************************************************/
  550. /* diamond, 2005/08/15 bootup revise */
  551. typedef enum
  552. {
  553.     MMI_POWER_ON_DEFAULT,                           /* 0000 0000 */
  554.     MMI_POWER_ON_INDICATION,                        /* 0000 0001 POWER_ON_KEYPAD */
  555.     MMI_POWER_ON_DISK_CHECK,
  556.     MMI_POWER_ON_FLIGHT_MODE_QUERY,                 /* 0000 0011 Flight mode query screen */
  557.     MMI_POWER_ON_ANIMATION = 0x04,                  /* 0000 0100 Power on animation start */
  558.     MMI_POWER_ON_ANIMATION_PSWD_REQ,                /* 0000 0101 Password requirement ind received */
  559.     MMI_POWER_ON_ANIMATION_SIM_FAIL,                /* 0000 0110 SIM failure received ind received */
  560.     MMI_POWER_ON_LOW_BATTERY = 0x08,                /* 0000 1000 Low battery warning */
  561.     MMI_POWER_ON_NAND_CHECK,                        /* 0000 1001 NAND check screen */
  562.     MMI_POWER_ON_SECURITY_NO_PSWD = 0x10,           /* 0001 0000 Security check (no password required) */
  563.     MMI_POWER_ON_SECURITY_PHONE_LOCK,               /* 0001 0001 Security check (phone lock) */
  564.     MMI_POWER_ON_SECURITY_SIM_LOCK,                 /* 0001 0010 Security check (SIM lock) */
  565.     MMI_POWER_ON_SECURITY_PERSONALIZATION = 0x14,   /* 0001 0100 Security check (personalization lock) */
  566.     MMI_POWER_ON_WELCOME = 0x20,                    /* 0010 0000 Welcome screen */
  567.     MMI_POWER_ON_APHORISM,                          /* 0010 0001 Aphorism screen */
  568.     MMI_POWER_ON_NW_SEARCHING = 0x40,               /* 0100 0000 Network searching screen */
  569.     MMI_POWER_ON_IDLE = 0x80                        /* 1000 0000 Idle screen */
  570.         /* MMI_POWER_ON_IDLE_INSERT_SIM,        // 1000 0001 Idle screen (insert SIM)
  571.            MMI_POWER_ON_IDLE_BLOCKED_SIM,         // 1000 0010 Idle screen (blocked SIM)
  572.            MMI_POWER_ON_IDLE_REGFAIL_SIM    = 0x84,  // 1000 0100 Idle screen (SIM registration failed)
  573.            MMI_POWER_ON_IDLE_LIMITED_SERVICE,     // 1000 0101 No valid cell to camp on (Limited service, emergency call only)
  574.            MMI_POWER_ON_IDLE_NO_SERVICE     = 0x88, // 1000 1000 No signal (No service)
  575.            MMI_POWER_ON_IDLE_FLIGHT_MODE       // 1000 1001 Flight mode activated */
  576. } POWERONMMISTATUS;
  577. typedef enum
  578. {
  579.     MMI_SIM_STATUS_INVALID = 0x01,          /* xxxx xxx1 invalid SIM */
  580.     MMI_SIM_STATUS_NOT_INSERT = 0x02,       /* xxxx xx1x SIM not inserted */
  581.     MMI_SIM_STATUS_REFRESH = 0x04,          /* xxxx x1xx SIM refresh */
  582.     MMI_SIM_STATUS_SECURITY_CHECK = 0x08,   /* xxxx 1xxx SIM need to check security after power on animation */
  583.     MMI_SIM_STATUS_FAILURE_RSP = 0x10,      /* xxx1 xxxx SIM failure response received */
  584.     MMI_SIM_STATUS_ROAMING = 0x20,          /* xx1x xxxx Roaming */
  585. #ifdef __MMI_SIMAP_SUPPORT__
  586.     MMI_SIM_STATUS_BT_ACCESS = 0x40,
  587. #endif
  588.     MMI_SIM_STATUS_3G = 0x80                /* 1xxx xxxx 3G SIM (reserved) */
  589. } POWERONSIMSTATUS;                         /* x means don't care bit */
  590. typedef enum
  591. {
  592.     MMI_NW_STATUS_NETWORK_FLAG = 0x01,  /* xxxx xxx1 full service or searching timeout */
  593.     MMI_NW_STATUS_REG_FAILED = 0x02,    /* xxxx xx1x registration failed */
  594.     MMI_NW_STATUS_FLIGHT_MODE = 0x04,   /* xxxx x1xx flight mode is activated */
  595.     MMI_NW_STATUS_PLMNSEL_MODE = 0x08,  /* xxxx 1xxx manual PLMN selection mode */
  596.     MMI_NW_STATUS_WCDMA_ONLY = 0x10     /* xxx1 xxxx only allow to camp on WCDMA networks */
  597. } POWERONNWSTATUS;                      /* x means don't care bit */
  598. typedef enum
  599. {
  600.     MMI_POWER_OFF_DEFAULT,                          /* 0000 0000 */
  601.     MMI_POWER_OFF_ANIMATION = 0x08,                 /* 0000 1000 */
  602.     MMI_POWER_OFF_ANIMATION_NW_DETACH = 0x09,       /* 0000 1xx1 */
  603.     MMI_POWER_OFF_ANIMATION_WAP_DETACH = 0x0A,      /* 0000 1x1x */
  604.     MMI_POWER_OFF_ANIMATION_AUDIO_FINISH = 0x0C,    /* 0000 11xx */
  605.     MMI_POWER_OFF_QUIT = 0x10
  606. } POWEROFFMMISTATUS;                                /* x means don't care bit */
  607. /* end, diamond */
  608. typedef struct _plmn_info
  609. {
  610.     U32 plmn_bcd;
  611.     U16 string_index;
  612. } PLMNINFO;
  613. #endif /* _SIM_DETECTION_DEF_H */