📄 simdetectiondef.h
字号:
STR_APHORISM_TEXT_24,
STR_APHORISM_TEXT_25,
STR_APHORISM_TEXT_26,
STR_APHORISM_TEXT_27,
STR_APHORISM_TEXT_28,
STR_APHORISM_TEXT_29,
STR_APHORISM_TEXT_30,
STR_APHORISM_TEXT_31,
STR_APHORISM_TEXT_32,
STR_APHORISM_TEXT_33,
STR_APHORISM_TEXT_34,
//micha0406, STR_PLMN_* moved to customer folder
// STR_APHORISM_TEXT_35,
STR_APHORISM_TEXT_35,
STR_NAND_CHECK_TITLE,
STR_NAND_CHECK,
STR_NAND_CHECK_PROCESSING,
STR_ID_SIM_REFRESH,
STR_ID_NAND_QUOTA_OVER_DISK,
STR_ID_NAND_QUOTA_USAGE_WARNING,
STR_ID_NAND_DEVICE_NOT_SUPPORTED
};
enum IMG_SIM_DETECTION_LIST
{
IMG_ENTER_PIN_CAPTION = SIM_DETECTION_BASE + 1,
IMG_ENTER_PIN_AGAIN_MSG,
IMG_ENTER_PUK_CAPTION,
IMG_ENTER_NEW_PIN_FIRST_TIME_CAPTION,
IMG_ENTER_NEW_PIN_SECOND_TIME_CAPTION,
IMG_ENTER_PHONE_LOCK_CAPTION,
#ifdef __MMI_MAINLCD_240X320__
IMG_ID_OPTION_MENU_PHONEBOOK_ICON,
IMG_ID_OPTION_MENU_MESSAGES_ICON,
IMG_ID_OPTION_MENU_FUNANDGAMES_ICON,
IMG_ID_OPTION_MENU_ORGANIZER_ICON,
IMG_ID_OPTION_MENU_SETTINGS_ICON,
IMG_ID_OPTION_MENU_PROFILES_ICON,
IMG_ID_OPTION_MENU_SHORTCUTS_ICON,
IMG_ID_OPTION_MENU_SERVICES_ICON,
IMG_ID_OPTION_MENU_CALL_HISTORY_ICON,
IMG_ID_OPTION_MENU_MULTIMEDIA_ICON,
IMG_ID_OPTION_MENU_FILEMNGR_ICON,
IMG_ID_OPTION_MENU_EXTRA_ICON,
#endif /* __MMI_MAINLCD_240X320__ */
IMG_SUBLCD_POWER_ON_SCR,
IMG_APHORISM_SCR,
IMG_WELCOME_SCR
};
enum SCR_SIM_DETECTION_LIST
{
SCR_ENTER_PIN = SIM_DETECTION_BASE + 1,
SCR_NO_SERVICE,
SCR_SIM_OPTION,
SCR_SIM_INSERTION,
SCR_PUK_BLOCKED,
SCR_SIM_BLOCK,
SCR_ENTER_PUK,
SCR_ENTER_CONFIRM_PIN,
SCR_ENTER_NEW_PIN,
SCR_ENTER_PHONELOCK,
SCR_DIAL_SOS_NUM,
SCR_MAKE_SOS_CALL,
SCR_BOOTUP_POPUP,
SCR_SSC_ENTER_PUK,
SCR_POP_UP_HISTORY,
SCR_CODE_VERIFY,
APHORISM_SCREEN_ID,
WELCOME_SCREEN_ID,
SCR_INVALID_SIM_INFO,
SCR_NAND_FLASH_CHECK,
SCR_NAND_CHECK_PROCESSING,
SCR_BOOTUP_CHECK_DISK
};
typedef enum
{
NO_SERVICE,
LIMITED_SERVICE,
FULL_SERVICE
} SERVICE_TYPE;
typedef enum
{
MMI_TYPE_NO_REQUIRED,
MMI_TYPE_PHONELOCK,
MMI_TYPE_CHV1,
MMI_TYPE_CHV2,
MMI_TYPE_UBCHV1,
MMI_TYPE_UBCHV2,
MMI_TYPE_NP,
MMI_TYPE_NSP,
MMI_TYPE_SP,
MMI_TYPE_CP,
MMI_TYPE_IMSI_LOCK,
MMI_TYPE_PERSONALIZATION_KEY,
MMI_TYPE_CHV1_BLOCKED,
MMI_TYPE_CHV2_BLOCKED,
MMI_TYPE_SIM_CARD_BLOCKED,
MMI_TYPE_UBCHV2_BLOCKED,
MMI_TYPE_UBCHV1_CHV1_NOT_LOCK,
MMI_TYPE_LINK_NS_SP,
MMI_TYPE_LINK_SIM_C,
MMI_TYPE_UNSPECIFIED
} MMISMUSECURITYTYPEENUM;
typedef enum
{
MMI_SIM_CARD_REMOVED,
MMI_SIM_ACCESS_ERROR,
MMI_SIM_REFRESH,
MMI_SIM_BT_ACCESS_PROFILE_ON = 5,
MMI_SIM_BT_ACCESS_PROFILE_OFF
} MMISIMERRORCAUSEENUM;
typedef enum
{
MMI_SIM_CMD_SUCCESS = 2560,
MMI_SIM_CMD_FAIL = 2561,
MMI_SIM_FATAL_ERROR = 2562,
MMI_SIM_NO_INSERTED = 2563,
MMI_SIM_CHV_NOT_INIT = 2564,
MMI_SIM_CHV_RETRY_ALLOW = 2565,
MMI_SIM_CHV_BLOCK = 2566,
MMI_SIM_ACCESS_NOT_ALLOW = 2567,
MMI_SIM_SAT_CMD_BUSY = 2568,
MMI_SIM_DL_ERROR = 2569,
MMI_SIM_MEMORY_PROBLEM = 2570,
MMI_SIM_TECHNICAL_PROBLEM = 2571,
MMI_SIM_EF_RECORD_FULL = 2573
} MMISMURESULTCMDRESULTENUM;
/* Enum for results of Network Attached Indecation */
typedef enum
{
MMI_RAC_OK,
MMI_RAC_NO_CELL,
MMI_RAC_LIMITED_SERVICE,
/* micha0923, #169 */
MMI_RAC_ERROR,
MMI_RAC_INVALID_SIM,
/* micha1119, vito's request */
MMI_RAC_ATTEMPT_TO_UPDATE,
MMI_RAC_SEARCHING /* 6 */
} MMIRACRESPONSEENUM;
/* Enum for Service Type */
typedef enum
{
MMI_REG_STATE_NOT_REGISTERED = 0,
MMI_REG_STATE_REGISTERED,
MMI_REG_STATE_SEARCHING,
MMI_REG_STATE_REG_DENIED,
MMI_REG_STATE_UNKNOWN,
MMI_REG_STATE_NOT_ACTIVE
} REGSTATEENUM;
/********************************************************/
typedef struct
{
// U8 PowerOnPeriod;
// U8 PowerOnTillIdleApp;
// U8 idleScreenFirst;
// U8 PowerOnAnimationComplete;
// U8 PasswdReqIndFlag;
// U8 SimQueryFailIndFlag;
// U16 NetWorkFlag; /* Flag indicating network is there or not */
U8 IsCampOnTonePlayed;
U8 testRoaming; /* Robin 1211:
1: Never send get IMEI request
2: Waiting get IMEI response
3: IMEI response has came */
U8 CurrentServiceType; /* Service types to be returned to other applications */
U8 AbnormalReset; /* Max for abnormal reset 0912 */
U16 NoOfPLMNSupported;
U8 PrevScreenIndicator;
U8 ForCMToIdentifySOSCall; /* For CM notification */
/* U8 InvalidSim; */
U8 InvalidSimShowed;
U8 CurrentCampOnBand; /* Robin 1009 reserve for Rx_Level_Ind interface change */
U8 RequireRPLMN; /* paul for not display RPLMN if SPN say so */
/* U8 RoamingFlag; */
U8 SSCFromEnterPukAtBootUp;
/* U8 SimRemoveFlag; */
U8 SOSCallFlagTOAvoidHistorySave;
// U8 IsSimValid; /* MTK added, Max: to indicate SIM failure related cases 1208 */
U8 PowerOnMode; /* Power on Mode */
//#ifdef __MANUAL_MODE_NW_SEL__
// U8 PLMNSelectionMode;
//#endif
//#ifdef __FLIGHT_MODE_SUPPORT__
// U8 actFlightMode; /* Normal mode (0) or Filght mode (1) only */
//#endif
U8 NandIdCheckRes;
/* diamond, 2005/08/15 bootup revise */
U8 PowerOnMMIStatus;
U8 PowerOnSIMStatus;
U8 PowerOnNWStatus;
U8 PowerOffMMIStatus;
/* end, diamond */
} pwr_context_struct;
typedef struct
{
U8 PowerOnCharger; /* Tells if the power on is bcos of charger */
U8 PowerOnChargingPeriod; /* Tells if charging is going on during power on charger */
U8 ChargingAbnormal; /* If abnormal case of charging. */
U8 ChargingComplete; /* Tells if charging is complete. (Robin 1121 for engineer mode) */
U8 LowBatteryFlag; /* Tels if Battery is low. */
U8 LowBatteryTxProhibitFlag;
U8 chargerLevel;
U8 batteryStatus;
U8 isChargerConnected; /* Tells if charger is connected */
U8 LowBatteryCutOffCallCnt;
} charbat_context_struct;
#ifdef __MMI_NITZ__
typedef struct
{
U8 opname_from_nitz;
// U8 *opname;
U8 country_init;
U8 plmn[MAX_PLMN_LEN_MMI+1];
U8 display_name[MAX_LENGTH_DISPLAY_NAME * ENCODING_LENGTH];
} idle_nitz_struct;
#endif /* __MMI_NITZ__ */
/********************************************************/
/* diamond, 2005/08/15 bootup revise */
typedef enum
{
MMI_POWER_ON_DEFAULT, /* 0000 0000 */
MMI_POWER_ON_INDICATION, /* 0000 0001 POWER_ON_KEYPAD */
MMI_POWER_ON_DISK_CHECK,
MMI_POWER_ON_FLIGHT_MODE_QUERY, /* 0000 0011 Flight mode query screen */
MMI_POWER_ON_ANIMATION = 0x04, /* 0000 0100 Power on animation start */
MMI_POWER_ON_ANIMATION_PSWD_REQ, /* 0000 0101 Password requirement ind received */
MMI_POWER_ON_ANIMATION_SIM_FAIL, /* 0000 0110 SIM failure received ind received */
MMI_POWER_ON_LOW_BATTERY = 0x08, /* 0000 1000 Low battery warning */
MMI_POWER_ON_NAND_CHECK, /* 0000 1001 NAND check screen */
MMI_POWER_ON_SECURITY_NO_PSWD = 0x10, /* 0001 0000 Security check (no password required) */
MMI_POWER_ON_SECURITY_PHONE_LOCK, /* 0001 0001 Security check (phone lock) */
MMI_POWER_ON_SECURITY_SIM_LOCK, /* 0001 0010 Security check (SIM lock) */
MMI_POWER_ON_SECURITY_PERSONALIZATION = 0x14, /* 0001 0100 Security check (personalization lock) */
MMI_POWER_ON_WELCOME = 0x20, /* 0010 0000 Welcome screen */
MMI_POWER_ON_APHORISM, /* 0010 0001 Aphorism screen */
MMI_POWER_ON_NW_SEARCHING = 0x40, /* 0100 0000 Network searching screen */
MMI_POWER_ON_IDLE = 0x80 /* 1000 0000 Idle screen */
/* MMI_POWER_ON_IDLE_INSERT_SIM, // 1000 0001 Idle screen (insert SIM)
MMI_POWER_ON_IDLE_BLOCKED_SIM, // 1000 0010 Idle screen (blocked SIM)
MMI_POWER_ON_IDLE_REGFAIL_SIM = 0x84, // 1000 0100 Idle screen (SIM registration failed)
MMI_POWER_ON_IDLE_LIMITED_SERVICE, // 1000 0101 No valid cell to camp on (Limited service, emergency call only)
MMI_POWER_ON_IDLE_NO_SERVICE = 0x88, // 1000 1000 No signal (No service)
MMI_POWER_ON_IDLE_FLIGHT_MODE // 1000 1001 Flight mode activated */
} POWERONMMISTATUS;
typedef enum
{
MMI_SIM_STATUS_INVALID = 0x01, /* xxxx xxx1 invalid SIM */
MMI_SIM_STATUS_NOT_INSERT = 0x02, /* xxxx xx1x SIM not inserted */
MMI_SIM_STATUS_REFRESH = 0x04, /* xxxx x1xx SIM refresh */
MMI_SIM_STATUS_SECURITY_CHECK = 0x08, /* xxxx 1xxx SIM need to check security after power on animation */
MMI_SIM_STATUS_FAILURE_RSP = 0x10, /* xxx1 xxxx SIM failure response received */
MMI_SIM_STATUS_ROAMING = 0x20, /* xx1x xxxx Roaming */
#ifdef __MMI_SIMAP_SUPPORT__
MMI_SIM_STATUS_BT_ACCESS = 0x40,
#endif
MMI_SIM_STATUS_3G = 0x80 /* 1xxx xxxx 3G SIM (reserved) */
} POWERONSIMSTATUS; /* x means don't care bit */
typedef enum
{
MMI_NW_STATUS_NETWORK_FLAG = 0x01, /* xxxx xxx1 full service or searching timeout */
MMI_NW_STATUS_REG_FAILED = 0x02, /* xxxx xx1x registration failed */
MMI_NW_STATUS_FLIGHT_MODE = 0x04, /* xxxx x1xx flight mode is activated */
MMI_NW_STATUS_PLMNSEL_MODE = 0x08, /* xxxx 1xxx manual PLMN selection mode */
MMI_NW_STATUS_WCDMA_ONLY = 0x10 /* xxx1 xxxx only allow to camp on WCDMA networks */
} POWERONNWSTATUS; /* x means don't care bit */
typedef enum
{
MMI_POWER_OFF_DEFAULT, /* 0000 0000 */
MMI_POWER_OFF_ANIMATION = 0x08, /* 0000 1000 */
MMI_POWER_OFF_ANIMATION_NW_DETACH = 0x09, /* 0000 1xx1 */
MMI_POWER_OFF_ANIMATION_WAP_DETACH = 0x0A, /* 0000 1x1x */
MMI_POWER_OFF_ANIMATION_AUDIO_FINISH = 0x0C, /* 0000 11xx */
MMI_POWER_OFF_QUIT = 0x10
} POWEROFFMMISTATUS; /* x means don't care bit */
/* end, diamond */
typedef struct _plmn_info
{
U32 plmn_bcd;
U16 string_index;
} PLMNINFO;
#endif /* _SIM_DETECTION_DEF_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -