SSCStringHandle.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:166k
源码类别:
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:
- * ---------
- * SSCStringHandle.C
- *
- * Project:
- * --------
- * PlutoMMI
- *
- * Description:
- * ------------
- * To handle the ssc string.
- *
- * 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!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * removed!
- *
- * removed!
- * removed!
- * 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!!
- *============================================================================
- ****************************************************************************/
- /* MTK Add Robin 1001 for saperate MMI feature by project */
- #include "MMI_features.h"
- /* MTK End */
- #include "StdC.h"
- #include "L4Dr1.h"
- #include "MiscFunctions.h"
- #include "DebugInitDef.h"
- #include "gui_themes.h"
- #include "GlobalConstants.h"
- #include "HistoryGprot.h"
- #include "SimDetectionGprot.h"
- #include "SettingProfile.h"
- #include "PhonebookDef.h"
- #include "SettingDefs.h"
- #include "wgui_categories.h"
- #include "wgui_status_icons.h"
- #include "FontRes.h"
- #include "FontDcl.h"
- #include "NVRAMProt.h"
- #include "NVRAMEnum.h"
- #include "NVRAMType.h"
- #include "CallManagementGprot.h"
- #include "Unicodexdcl.h"
- #include "ProtocolEvents.h"
- #include "PixtelDataTypes.h"
- #include "l4dr.h"
- #include "QueueGprot.h"
- #include "SSCStringHandle.h"
- #include "Globaldefs.h"
- #include "SettingGprots.h"
- #include "SettingsGexdcl.h"
- #include "SimDetectionGexdcl.h"
- #include "IdleAppDef.h"
- #include "IdleAppProt.h"
- #include "SettingProt.h"
- #include "SettingDefs.h"
- #include "SettingsGdcl.h"
- #include "CustResDef.h"
- #include "ATHandlerProt.h"
- #include "CommonScreens.h"
- #include "CallManagementIdDef.h"
- #include "ProfileGprots.h"
- #include "ProfilesDefs.h"
- #include "DevAppGprot.h"
- /* for pts V2.1.0.4 */
- /* cannot update indicators to remote bluetooth headset while HFP is connected */
- /* indicators shall be retrieved by remote HF AT+CIND? */
- /* so for pts V2.1.0.4, host will not udpate indicators while HFP is just connected */
- #ifdef __MMI_BT_SUPPORT__
- #include "BTMMIScrGprots.h"
- #endif
- #ifdef __MMI_SML_MENU__
- #include "PersonalizationProt.h"
- #endif
- /**********************************************/
- /* Local Functions */
- /**********************************************/
- void SSCHandleLngAutoMode(void);
- void SSCHandleLngEnglish(void);
- void SSCHandleLngChinese(void);
- void SSCHandleLngSimplify(void);
- /* MTK Terry for Spanish French German Italian Thai Russian Portuguese Turkish Vietnamese Indonesian Malay */
- #if defined(__MMI_LANG_SPANISH__)
- void SSCHandleLngSpanish(void);
- #endif
- /* PMT VIKASG START 20050729 */
- #if defined(__MMI_LANG_DANISH__)
- void SSCHandleLngDanish(void);
- #endif
- //PMT VIKASG END 20050729
- //PMT CZ_PO_TU START 20050812
- #if defined(__MMI_LANG_POLISH__)
- void SSCHandleLngPolish(void);
- #endif
- /* PMT CZ_PO_TU END 20050812 */
- #if defined(__MMI_LANG_FRENCH__)
- void SSCHandleLngFrench(void);
- #endif
- #if defined(__MMI_LANG_GERMAN__)
- void SSCHandleLngGerman(void);
- #endif
- #if defined(__MMI_LANG_ITALIAN__)
- void SSCHandleLngItalian(void);
- #endif
- #if defined(__MMI_LANG_THAI__)
- void SSCHandleLngThai(void);
- #endif
- #if defined(__MMI_LANG_RUSSIAN__)
- void SSCHandleLngRussian(void);
- #endif
- /* PMT BULGARIAN START 20051201 */
- #if defined(__MMI_LANG_BULGARIAN__)
- void SSCHandleLngBulgarian(void);
- #endif
- /* PMT BULGARIAN END 20051201 */
- #if defined(__MMI_LANG_PORTUGUESE__)
- void SSCHandleLngPortuguese(void);
- #endif
- #if defined(__MMI_LANG_TURKISH__)
- void SSCHandleLngTurkish(void);
- #endif
- #if defined(__MMI_LANG_VIETNAMESE__)
- void SSCHandleLngVietnamese(void);
- #endif
- #if defined(__MMI_LANG_INDONESIAN__)
- void SSCHandleLngIndonesian(void);
- #endif
- /* PMT CZ_PO_TU START 20050812 */
- #if defined(__MMI_LANG_CZECH__)
- void SSCHandleLngCzech(void);
- #endif
- /* PMT CZ_PO_TU END 20050812 */
- #if defined(__MMI_LANG_MALAY__)
- void SSCHandleLngMalay(void);
- #endif
- /* PMT START HU_FI 20050825 */
- #if defined(__MMI_LANG_FINNISH__)
- void SSCHandleLngFinnish(void);
- #endif
- #if defined(__MMI_LANG_HUNGARIAN__)
- void SSCHandleLngHungarian(void);
- #endif
- //PMT END HU_FI 20050825
- //PMT NO_AR_SL_DU START 20050909
- #if defined(__MMI_LANG_SLOVAK__)
- void SSCHandleLngSlovak(void);
- #endif
- #if defined(__MMI_LANG_DUTCH__)
- void SSCHandleLngDutch(void);
- #endif
- /* Norwegian start */
- #if defined(__MMI_LANG_NORWEGIAN__)
- void SSCHandleLngNorwegian(void);
- #endif
- //Norwegian end
- //PMT NO_AR_SL_DU END 20050909
- //PMT START SWEDISH 20050916
- #if defined(__MMI_LANG_SWEDISH__)
- void SSCHandleLngSwedish(void);
- #endif
- //PMT END SWEDISH 20050916
- //PMT START CR_ROM_SLO 20050923
- #if defined(__MMI_LANG_CROATIAN__)
- void SSCHandleLngCroatian(void);
- #endif
- #if defined(__MMI_LANG_ROMANIAN__)
- void SSCHandleLngRomanian(void);
- #endif
- #if defined(__MMI_LANG_SLOVENIAN__)
- void SSCHandleLngSlovenian(void);
- #endif
- /* PMT END CR_ROM_SLO 20050923 */
- /* MTK end */
- /* PMT START GR_HE_CZ_FI_DA_HU 20051007 */
- #if defined(__MMI_LANG_GREEK__)
- void SSCHandleLngGreek(void);
- #endif
- /* PMT START 20060714 */
- #if defined (__MMI_LANG_HEBREW__)
- /* PMT END 20060714 */
- void SSCHandleLngHebrew(void);
- /* PMT START 20060714 */
- #endif /* defined (__MMI_LANG_HEBREW__) */
- /* PMT END 20060714 */
- /* PMT END GR_HE_CZ_FI_DA_HU 20051007 */
- /* PMT START 20060714 */
- #if defined (__MMI_LANG_ARABIC__)
- /* PMT END 20060714 */
- void SSCHandleLngArabic(void);
- /* PMT START 20060714 */
- #endif /* defined (__MMI_LANG_ARABIC__) */
- /* PMT START PERSIAN */
- #if defined (__MMI_LANG_PERSIAN__)
- void SSCHandleLngPersian(void);
- #endif
- /* PMT END PERSIAN */
- #if defined (__MMI_LANG_HINDI__)
- /* PMT END 20060714 */
- void SSCHandleLngHindi(void);
- /* PMT START 20060714 */
- #endif /* defined (__MMI_LANG_HINDI__) */
- /* PMT RAKESH START 20061006 */
- #if defined (__MMI_LANG_MARATHI__)
- void SSCHandleLngMarathi(void);
- #endif
- /* PMT RAKESH END 20061006 */
- /* PMT END 20060714 */
- void SSCHandleIMEI(void);
- void SSCHandleSoftwareVersion(void);
- /* Lisen 0921 */
- void SSCHandleSoftwareVersionSummary(void);
- void SSCHandleLCDContrastSetting(void);
- #ifdef __MMI_HW_VERSION__
- void SSCHandleHardwareVersion(void);
- #endif
- void SSCHandleEngineerMode(void);
- void SSCHandleSerialNumber(void);
- void SSCHandleFactoryMode(void);
- void SSCHandleFactoryModeAutoTest(void);
- void SendReqPIN1Status(void);
- void SendReqPIN2Status(void);
- void SSCChangePIN1(void *);
- void SSCChangePIN2(void *);
- void SSCEntryPUK1(void);
- void SSCEntryPUK2(void);
- void ShowIMEIScreen(void);
- void SSCAbnormalReset(void);
- void SSCHandleIrClose(void);
- void SSCHandleIrOpen(void);
- PS8 Serial_num(void);
- void SSCHandleDisable(void); /* diamond, 2005/05/13 for SSC disable */
- #ifdef __MMI_A2DP_SUPPORT__
- #if defined(__MMI_BT_MTK_SUPPORT__)
- void SSCHandle_BT_A2DP_Toggle_PTS_Mode(void);
- #elif defined(__MMI_BT_BCHS_SUPPORT__)
- void SSCHandle_BT_A2DP_Toggle_INT_ACP_Mode(void);
- void SSCHandle_BT_A2DP_Close_Stream(void);
- #endif
- #endif /* __MMI_A2DP_SUPPORT__ */
- #ifdef __BTMTK__
- void SSCHandle_BT_POWER_ON(void);
- void SSCHandle_BT_POWER_OFF(void);
- #endif /* __BTMTK__ */
- extern void FillCountDownNumber(sim_chv_info_struct chv_info);
- extern void EntryFMVersionSummaryMenu(void);
- extern void EntryFMLCDContrastMenuHdlr(void);
- static void SSCHandleVendorApp(void);
- #if defined(MMI_ON_HARDWARE_P) && defined(__MMI_IMEISV_SUPPORT__)
- /* IMEI:135790246811220 */
- /* IMEISV:00 */
- static S8 gstrIMEI[MAX_IMEISV_DISPLAY_LEN * ENCODING_LENGTH];
- #else /* defined(MMI_ON_HARDWARE_P) && defined(__MMI_IMEISV_SUPPORT__) */
- static S8 gstrIMEI[(MAX_IMEI_LEN + 1) * ENCODING_LENGTH];
- #endif /* defined(MMI_ON_HARDWARE_P) && defined(__MMI_IMEISV_SUPPORT__) */
- /* diamond, 2005/05/13 for SSC disable
- MMI_FALSE (0): ssc string unchanged
- MMI_TRUE (1): before executing ssc, check the 'ssc_disable_ctrl' flag first
- 0xFF: read NVRAM first */
- extern U8 ssc_disable_flag;
- typedef struct sscstringtblstruct
- {
- const S8 *ssc_string;
- /* diamond, 2005/05/13 for SSC disable
- MMI_FALSE (0): ssc cannot be disabled
- MMI_TRUE (1): ssc can be disabled */
- const U8 ssc_disable_ctrl;
- FuncPtr func_ptr;
- } SSCSTRINGTBL;
- typedef struct simstringtblstruct
- {
- const S8 *sim_string;
- S8 sim_length;
- FuncPtr func_ptr;
- } SIMSTRINGTBL;
- /* micha1129 begin */
- SSCSTRINGTBL ssc_table2[] =
- {
- /* diamond, 2005/05/13 for SSC disable */
- {SSC_AUTO, MMI_FALSE, SSCHandleLngAutoMode},
- {SSC_ENGLISH, MMI_FALSE, SSCHandleLngEnglish},
- {SSC_TCHINESE, MMI_FALSE, SSCHandleLngChinese},
- /* MTK Terry for Spanish French German Italian Thai Russian */
- #if defined(__MMI_LANG_SPANISH__)
- {SSC_SPANISH, MMI_FALSE, SSCHandleLngSpanish},
- #endif
- /* PMT VIKASG START 20050729 */
- #if defined(__MMI_LANG_DANISH__)
- {SSC_DANISH, MMI_FALSE, SSCHandleLngDanish},
- #endif
- //PMT VIKASG END 20050729
- //PMT CZ_PO_TU START 20050812
- #if defined(__MMI_LANG_POLISH__)
- {SSC_POLISH, MMI_FALSE, SSCHandleLngPolish},
- #endif
- /* PMT CZ_PO_TU END 20050812 */
- #if defined(__MMI_LANG_FRENCH__)
- {SSC_FRENCH, MMI_FALSE, SSCHandleLngFrench},
- #endif
- #if defined(__MMI_LANG_GERMAN__)
- {SSC_GERMAN, MMI_FALSE, SSCHandleLngGerman},
- #endif
- #if defined(__MMI_LANG_ITALIAN__)
- {SSC_ITALIAN, MMI_FALSE, SSCHandleLngItalian},
- #endif
- #if defined(__MMI_LANG_THAI__)
- {SSC_THAI, MMI_FALSE, SSCHandleLngThai},
- #endif
- #if defined(__MMI_LANG_RUSSIAN__)
- {SSC_RUSSIAN, MMI_FALSE, SSCHandleLngRussian},
- #endif
- /* PMT BULGARIAN START 20051201 */
- #if defined(__MMI_LANG_BULGARIAN__)
- {SSC_BULGARIAN, MMI_FALSE, SSCHandleLngBulgarian},
- #endif
- /* PMT BULGARIAN END 20051201 */
- #if defined(__MMI_LANG_PORTUGUESE__)
- {SSC_PORTUGUESE, MMI_FALSE, SSCHandleLngPortuguese},
- #endif
- #if defined(__MMI_LANG_TURKISH__)
- {SSC_TURKISH, MMI_FALSE, SSCHandleLngTurkish},
- #endif
- #if defined(__MMI_LANG_VIETNAMESE__)
- {SSC_VIETNAMESE, MMI_FALSE, SSCHandleLngVietnamese},
- #endif
- #if defined(__MMI_LANG_INDONESIAN__)
- {SSC_INDONESIAN, MMI_FALSE, SSCHandleLngIndonesian},
- #endif
- /* PMT CZ_PO_TU START 20050812 */
- #if defined(__MMI_LANG_CZECH__)
- {SSC_CZECH, MMI_FALSE, SSCHandleLngCzech},
- #endif
- /* PMT CZ_PO_TU END 20050812 */
- #if defined(__MMI_LANG_MALAY__)
- {SSC_MALAY, MMI_FALSE, SSCHandleLngMalay},
- #endif
- /* PMT START HU_FI 20050825 */
- #if defined(__MMI_LANG_FINNISH__)
- {SSC_FINNISH, MMI_FALSE, SSCHandleLngFinnish},
- #endif
- #if defined(__MMI_LANG_HUNGARIAN__)
- {SSC_HUNGARIAN, MMI_FALSE, SSCHandleLngHungarian},
- #endif
- //PMT END HU_FI 20050825
- //PMT NO_AR_SL_DU START 20050909
- #if defined(__MMI_LANG_SLOVAK__)
- {SSC_SLOVAK, MMI_FALSE, SSCHandleLngSlovak},
- #endif
- #if defined(__MMI_LANG_DUTCH__)
- {SSC_DUTCH, MMI_FALSE, SSCHandleLngDutch},
- #endif
- /* Norwegian start */
- #if defined(__MMI_LANG_NORWEGIAN__)
- {SSC_NORWEGIAN, MMI_FALSE, SSCHandleLngNorwegian},
- #endif
- //Norwegian end
- //PMT NO_AR_SL_DU END 20050909
- //PMT START SWEDISH 20050916
- #if defined(__MMI_LANG_SWEDISH__)
- {SSC_SWEDISH, MMI_FALSE, SSCHandleLngSwedish},
- #endif
- //PMT END SWEDISH 20050916
- //PMT START CR_ROM_SLO 20050923
- #if defined(__MMI_LANG_CROATIAN__)
- {SSC_CROATIAN, MMI_FALSE, SSCHandleLngCroatian},
- #endif
- #if defined(__MMI_LANG_ROMANIAN__)
- {SSC_ROMANIAN, MMI_FALSE, SSCHandleLngRomanian},
- #endif
- #if defined(__MMI_LANG_SLOVENIAN__)
- {SSC_SLOVENIAN, MMI_FALSE, SSCHandleLngSlovenian},
- #endif
- /* PMT END CR_ROM_SLO 20050923 */
- /* MTK end */
- /* PMT START GR_HE_CZ_FI_DA_HU 20051007 */
- #if defined(__MMI_LANG_GREEK__)
- {SSC_GREEK, MMI_FALSE, SSCHandleLngGreek},
- #endif
- /* PMT START 20060714 */
- #if defined (__MMI_LANG_HEBREW__)
- /* PMT END 20060714 */
- {SSC_HEBREW, MMI_FALSE, SSCHandleLngHebrew},
- /* PMT START 20060714 */
- #endif /* defined (__MMI_LANG_HEBREW__) */
- /* PMT END 20060714 */
- /* PMT END GR_HE_CZ_FI_DA_HU 20051007 */
- /* PMT START 20060714 */
- #if defined (__MMI_LANG_ARABIC__)
- /* PMT END 20060714 */
- {SSC_ARABIC, MMI_FALSE, SSCHandleLngArabic},
- /* PMT START 20060714 */
- #endif /* defined (__MMI_LANG_ARABIC__) */
- /* PMT START PERSIAN */
- #if defined (__MMI_LANG_PERSIAN__)
- {SSC_PERSIAN, MMI_FALSE, SSCHandleLngPersian},
- #endif
- /* PMT END PERSIAN */
- #if defined (__MMI_LANG_HINDI__)
- /* PMT END 20060714 */
- {SSC_HINDI, MMI_FALSE, SSCHandleLngHindi},
- /* PMT START 20060714 */
- #endif /* defined (__MMI_LANG_HINDI__) */
- /* PMT RAKESH START 20061006 */
- #if defined (__MMI_LANG_MARATHI__)
- {SSC_MARATHI, MMI_FALSE, SSCHandleLngMarathi},
- #endif
- /* PMT RAKESH END 20061006 */
- /* PMT END 20060714 */
- {SSC_SCHINESE, MMI_FALSE, SSCHandleLngSimplify}
- /* diamond, end */
- };
- /* micha1129 end */
- #ifdef __MMI_BT_PROFILE__
- U8 g_ssc_bt_a2dp_mode = 0; /* 0: INT mode, 1: ACP mode, 2: ACP mode for PTS only */
- #endif
- SSCSTRINGTBL ssc_table1[] =
- {
- {"*#06#", MMI_FALSE, SSCHandleIMEI},
- /* {SSC_SW_VERSION, SSCHandleSoftwareVersion}, */
- {SSC_SW_VERSION, MMI_FALSE, SSCHandleSoftwareVersionSummary},
- #ifdef __MMI_HW_VERSION__
- {SSC_HW_VERSION, MMI_FALSE, SSCHandleHardwareVersion},
- #endif
- {SSC_ENGINEERING_MODE, MMI_TRUE, SSCHandleEngineerMode},
- {SSC_FACTORY_MODE, MMI_TRUE, SSCHandleFactoryMode},
- {SSC_FACTORY_MODE_AUTOTEST, MMI_TRUE, SSCHandleFactoryModeAutoTest},
- {SSC_SERIAL_NUMBER, MMI_TRUE, SSCHandleSerialNumber},
- {SSC_SET_LCD_CONTRAST, MMI_TRUE, SSCHandleLCDContrastSetting},
- {SSC_IR_OPEN, MMI_FALSE, SSCHandleIrOpen},
- {SSC_IR_CLOSE, MMI_FALSE, SSCHandleIrClose},
- {SSC_DISABLE_FOR_SHIPMENT, MMI_FALSE, SSCHandleDisable},
- /* diamond, 2006/04/11 SML menu implementation */
- #ifdef __MMI_SML_MENU__
- {SSC_SML_LOCK_CODE, MMI_FALSE, mmi_sml_entry_lock_category_selection},
- {SSC_SML_UNLOCK_CODE, MMI_FALSE, mmi_sml_entry_unlock_category_selection},
- {SSC_SML_ADD_CODE, MMI_FALSE, mmi_sml_entry_add_category_data},
- {SSC_SML_REMOVE_CODE, MMI_FALSE, mmi_sml_entry_remove_category_data},
- {SSC_SML_DEACTIVATE_CODE, MMI_FALSE, mmi_sml_entry_permanent_unlock_selection},
- #endif /* __MMI_SML_MENU__ */
- #ifdef __MMI_A2DP_SUPPORT__
- #if defined(__MMI_BT_MTK_SUPPORT__)
- {SSC_BT_A2DP_TOGGLE_PTS_MODE, MMI_FALSE, SSCHandle_BT_A2DP_Toggle_PTS_Mode},
- #elif defined(__MMI_BT_BCHS_SUPPORT__)
- {SSC_BT_A2DP_TOGGLE_INT_ACP_MODE, MMI_FALSE, SSCHandle_BT_A2DP_Toggle_INT_ACP_Mode},
- {SSC_BT_A2DP_CLOSE_STREAM, MMI_FALSE, SSCHandle_BT_A2DP_Close_Stream},
- #endif
- #endif /* __MMI_A2DP_SUPPORT__ */
- #ifdef __BTMTK__
- {BT_POWER_ON, MMI_FALSE, SSCHandle_BT_POWER_ON},
- {BT_POWER_OFF, MMI_FALSE, SSCHandle_BT_POWER_OFF},
- #endif /* __BTMTK__ */
- #ifdef __MMI_BT_SUPPORT__
- /* for pts V2.1.0.4 */
- /* cannot update indicators to remote bluetooth headset while HFP is connected */
- /* indicators shall be retrieved by remote HF AT+CIND? */
- /* so for pts V2.1.0.4, host will not udpate indicators while HFP is just connected */
- {BT_PTS_ON, MMI_FALSE, mmi_bt_enable_pts_test},
- {BT_PTS_OFF, MMI_FALSE, mmi_bt_disable_pts_test},
- #endif /* __MMI_BT_SUPPORT__ */
- {SSC_VENDORAPP, MMI_FALSE, SSCHandleVendorApp}
- };
- SIMSTRINGTBL sim_table[] =
- {
- {"**04*", 5, SendReqPIN1Status},
- {"**042*", 6, SendReqPIN2Status},
- {"**05*", 5, SSCEntryPUK1},
- {"**052*", 6, SSCEntryPUK2}
- #ifdef __MMI_SML_MENU__
- ,{SSC_SML_LOCK_CMD, 6, mmi_sml_send_lock_req_by_ssc}
- ,{SSC_SML_UNLOCK_CMD, 6, mmi_sml_send_unlock_req_by_ssc}
- ,{SSC_SML_QUERY_CMD, 7, mmi_sml_send_query_req_by_ssc}
- #endif /* __MMI_SML_MENU__ */
- };
- extern U16 gCurrLangIndex;
- extern sLanguageDetails *gLanguageArray;
- extern U8 gPLMN[];
- extern void RefreshNwProviderName(U8 *UpdatePlmn);
- /* extern void SendSetLanguage(U8 code); */
- #ifdef __MMI_ENGINEER_MODE__ /* MTK Add Robin 1001 for saperate MMI feature by project */
- extern void EntryEngineerModeMenu(void);
- #endif
- #ifdef __MMI_FACTORY_MODE__ /* MTK Add Robin 1001 for saperate MMI feature by project */
- /* Lisen 0630 */
- extern void EntryFMMenu(void);
- extern void EntryFMMenuAutoTest(void);
- extern void EntryFMVersionSummaryMenu(void);
- extern void EntryFMLCDContrastMenuHdlr(void);
- #endif /* __MMI_FACTORY_MODE__ */
- /*****************************************************************************
- * FUNCTION
- * SSCAbnormalReset
- * DESCRIPTION
- * Abnormal reset testing
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCAbnormalReset(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- #ifdef MMI_ON_HARDWARE_P
- ASSERT(0);
- #endif
- }
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngAutoMode
- * DESCRIPTION
- * Set Auto language selction
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngAutoMode(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is show the SSCHandleLngAutoMode"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_DEFAULT) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_DEFAULT_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_DEFAULT), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngEnglish
- * DESCRIPTION
- * Set English language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngEnglish(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set English language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_ENGLISH) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_ENGLISH_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_ENGLISH), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngChinese
- * DESCRIPTION
- * Set Traditional Chinese language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngChinese(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Traditional Chinese language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_TCHINESE) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_TCHINESE_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_TCHINESE), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngSimplify
- * DESCRIPTION
- * Set Simplify Chinese language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngSimplify(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Simplify Chinese language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_SCHINESE) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_SCHINESE_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_SCHINESE), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- /* MTK Terry for Spanish French German Italian Thai Russian Portuguese Turkish Vietnamese Indonesian Malay */
- #if defined(__MMI_LANG_SPANISH__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngSpanish
- * DESCRIPTION
- * Set Spanish language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngSpanish(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Spanish language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_SPANISH) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_SPANISH_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_SPANISH), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_SPANISH__) */
- /* PMT VIKASG START 20050729 */
- #if defined(__MMI_LANG_DANISH__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngDanish
- * DESCRIPTION
- * Set Danish language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngDanish(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Danish language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_DANISH) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_DANISH_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_DANISH), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_DANISH__) */
- //PMT VIKASG END 20050729
- //PMT CZ_PO_TU START 20050812
- #if defined(__MMI_LANG_POLISH__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngPolish
- * DESCRIPTION
- * Set Polish language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngPolish(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Polish language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_POLISH) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_POLISH_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_POLISH), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_POLISH__) */
- /* PMT CZ_PO_TU END 20050812 */
- #if defined(__MMI_LANG_FRENCH__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngFrench
- * DESCRIPTION
- * Set French language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngFrench(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set French language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_FRENCH) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_FRENCH_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_FRENCH), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_FRENCH__) */
- #if defined(__MMI_LANG_GERMAN__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngGerman
- * DESCRIPTION
- * Set German language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngGerman(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set German language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_GERMAN) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_GERMAN_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_GERMAN), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_GERMAN__) */
- #if defined(__MMI_LANG_ITALIAN__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngItalian
- * DESCRIPTION
- * Set Italian language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngItalian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Italian language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_ITALIAN) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_ITALIAN_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_ITALIAN), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_ITALIAN__) */
- #if defined(__MMI_LANG_THAI__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngThai
- * DESCRIPTION
- * Set Thai language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngThai(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Thai language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_THAI) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_THAI_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_THAI), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_THAI__) */
- #if defined(__MMI_LANG_RUSSIAN__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngRussian
- * DESCRIPTION
- * Set Russian language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngRussian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Russian language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_RUSSIAN) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_RUSSIAN_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_RUSSIAN), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_RUSSIAN__) */
- /* PMT BULGARIAN START 20051201 */
- #if defined(__MMI_LANG_BULGARIAN__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngBulgarian
- * DESCRIPTION
- * Set Bulgarian language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngBulgarian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Bulgarian language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_BULGARIAN) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_BULGARIAN_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_BULGARIAN), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_BULGARIAN__) */
- /* PMT BULGARIAN END 20051201 */
- #if defined(__MMI_LANG_PORTUGUESE__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngPortuguese
- * DESCRIPTION
- * Set Portuguese language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngPortuguese(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Portuguese language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_PORTUGUESE) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_PORTUGUESE_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_PORTUGUESE), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_PORTUGUESE__) */
- #if defined(__MMI_LANG_TURKISH__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngTurkish
- * DESCRIPTION
- * Set Turkish language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngTurkish(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Turkish language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_TURKISH) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_TURKISH_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_TURKISH), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_TURKISH__) */
- #if defined(__MMI_LANG_VIETNAMESE__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngVietnamese
- * DESCRIPTION
- * Set Vietnamese language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngVietnamese(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Vietnamese language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_VIETNAMESE) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_VIETNAMESE_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_VIETNAMESE), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_VIETNAMESE__) */
- #if defined(__MMI_LANG_INDONESIAN__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngIndonesian
- * DESCRIPTION
- * Set Indonesian language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngIndonesian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Indonesian language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_INDONESIAN) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_INDONESIAN_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_INDONESIAN), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_INDONESIAN__) */
- /* PMT CZ_PO_TU START 20050812 */
- #if defined(__MMI_LANG_CZECH__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngCzech
- * DESCRIPTION
- * Set Czech language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngCzech(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Czech language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_CZECH) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_CZECH_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_CZECH), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_CZECH__) */
- /* PMT CZ_PO_TU END 20050812 */
- #if defined(__MMI_LANG_MALAY__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngMalay
- * DESCRIPTION
- * Set Malay language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngMalay(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Malay language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_MALAY) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_MALAY_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_MALAY), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_MALAY__) */
- /* PMT START HU_FI 20050825 */
- #if defined(__MMI_LANG_FINNISH__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngFinnish
- * DESCRIPTION
- * Set Finnish language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngFinnish(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is to set Finnish language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_FINNISH) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE:
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_FINNISH_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_FINNISH), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_FINNISH__) */
- #if defined(__MMI_LANG_HUNGARIAN__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngHungarian
- * DESCRIPTION
- * Set Hungarian language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngHungarian(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is set Hungarian language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_HUNGARIAN) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- /************************************************/
- /* Robin 0602, Remove set AT command profile functions */
- /* AT command will query MMI when needed */
- /* Send to PS for AT+CLAE */
- /************************************************/
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE: /* Lisen 0617: could switch to other screen, like receiving an SMS */
- break;
- default:
- ASSERT(0);
- }
- #endif /* __MMI_SUBLCD__ */
- }
- DisplayPopup(
- (U8*) GetString(SSC_SCR_LANGUAGE_HUNGARIAN_STR_ID),
- IMG_GLOBAL_ACTIVATED,
- 1,
- SSC_POP_UP_TIME,
- (U8) SUCCESS_TONE);
- return;
- }
- }
- DisplayPopup((U8*) GetString(SSC_STR_ERR_SET_HUNGARIAN), IMG_GLOBAL_WARNING, 0, SSC_POP_UP_TIME, (U8) ERROR_TONE);
- }
- #endif /* defined(__MMI_LANG_HUNGARIAN__) */
- //PMT END HU_FI 20050825
- //PMT NO_AR_SL_DU START 20050909
- #if defined(__MMI_LANG_SLOVAK__)
- /*****************************************************************************
- * FUNCTION
- * SSCHandleLngSlovak
- * DESCRIPTION
- * Set SLOVAK language
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void SSCHandleLngSlovak(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S16 error;
- U8 count = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION(("This is to set SLOVAK language"));
- DisplayIdleScreen();
- for (count = 0; count < MAX_LANGUAGES; count++)
- {
- if (strcmp((PS8) gLanguageArray[count].aLangSSC, SSC_SLOVAK) == 0)
- {
- if (gCurrLangIndex != count)
- {
- SetCurrentLanguage(count);
- WriteValue(NVRAM_SETTING_LANG, &count, DS_BYTE, &error);
- RefreshNwProviderName(gPLMN);
- SendLangChange2AT(count);
- #ifdef __MMI_SUBLCD__
- switch (g_idle_context.IsSubLcdOnIdleScreen)
- {
- case SUBLCD_ON_IDLE_NORMAL:
- ShowIdleAppSubLcd();
- break;
- case SUBLCD_ON_IDLE_INSERT_SIM:
- ShowSubLCDSimError();
- break;
- case SUBLCD_ON_IDLE_SIM_BLOCKED:
- ShowSubLCDBlockedSIM();
- break;
- case SUBLCD_NOT_ON_IDLE:
- break;
- default:
- ASSERT(0);