SmsMoMtGuiInterface.c
资源名称:mmi.rar [点击查看]
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:543k
源码类别:
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:
- * ---------
- * SmsMoMtGuiInterface.C
- *
- * Project:
- * --------
- * MAUI
- *
- * Description:
- * ------------
- * This file is intends for MMI SMS APP.
- *
- * 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!
- *
- * 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!
- * 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!!
- *============================================================================
- ****************************************************************************/
- /**
- * Copyright Notice
- * ?2002 - 2003, Pixtel Communications, Inc., 1489 43rd Ave. W.,
- * Vancouver, B.C. V6M 4K8 Canada. All Rights Reserved.
- * (It is illegal to remove this copyright notice from this software or any
- * portion of it)
- */
- /**************************************************************
- FILENAME : SmsGuiHandler.c
- PURPOSE : SMS GUI handlers
- REMARKS : nil
- AUTHOR : Manu Vikram and Magesh k, Hiran.
- DATE : 01-01-2003
- **************************************************************/
- #ifdef __MOD_SMSAL__
- /* Include: MMI header file */
- #include "MMI_features.h"
- #include "stdC.h"
- #include "L4Dr1.h"
- #include "PixtelDataTypes.h"
- /* Manish MMS */
- #if (defined (JATAAYU_SUPPORT) && defined(MMS_SUPPORT))
- #include "JMMSMainMMS.h"
- #include "JMMSResEnum.h"
- #endif /* (defined (JATAAYU_SUPPORT) && defined(MMS_SUPPORT)) */
- #if (defined (JATAAYU_SUPPORT) && defined(WAP_SUPPORT))
- #include "JBrowserMMIDefs.h"
- #include "JProvWap.h"
- #endif /* (defined (JATAAYU_SUPPORT) && defined(WAP_SUPPORT)) */
- /* ... Add More MMI header */
- #include "EventsGprot.h"
- #include "HistoryGprot.h"
- #include "GlobalMenuItems.h"
- #include "GlobalConstants.h"
- #include "Globaldefs.h"
- #include "wgui_categories.h"
- #include "wgui_categories_inputs.h"
- #include "wgui_categories_popup.h"
- #include "CustMenuRes.h"
- #include "CommonScreens.h"
- #include "Unicodexdcl.h"
- #include "TimerEvents.h"
- #include "DebugInitDef.h"
- #include "ProtocolEvents.h"
- /* ...Add MSG header */
- #include "customer_ps_inc.h"
- #include "mmi_msg_context.h"
- #include "MessagesL4Def.h"
- #include "MessagesResourceData.h"
- #include "MessagesMiscell.h"
- #include "MessagesExDcl.h"
- #include "SmsGuiInterfaceProt.h"
- #include "SmsGuiInterfaceType.h"
- #include "SmsPsHandler.h"
- #include "CellBroadcastType.h"
- #ifdef __MMI_MESSAGES_CHAT__
- #include "ChatAppGprot.h"
- #include "ChatAppDef.h"
- #include "ChatGtype.h"
- #include "ChatAppGexdcl.h"
- #endif /* __MMI_MESSAGES_CHAT__ */
- #include "Gui_ems.h"
- #include "wgui_ems.h"
- #include "GSM7BitDefaultAlphabet.h"
- /* */
- #include "smsal_l4c_enum.h"
- /* */
- #include "NVRAMEnum.h"
- #include "NVRAMProt.h"
- #include "NVRAMType.h"
- /* */
- #include "CSP.h"
- #include "FrameworkStruct.h"
- #include "MainMenuDef.h"
- #include "CallHistoryGProts.h"
- #include "CallManagementGprot.h"
- #include "CallhistoryEnum.h"
- #include "MiscFunctions.h"
- #include "SettingProfile.h"
- #include "ProfileGprots.h"
- #include "PhoneBookGprot.h"
- #include "IdleAppProt.h"
- #include "AlarmFrameworkProt.h"
- #include "wgui_status_icons.h"
- #include "gpioInc.h"
- #include "KeyBrd.h"
- #include "SubLCDHistoryGprot.h"
- #include "mdi_datatype.h"
- #include "mdi_audio.h"
- //KP Jerry add for third sevice on 2007-03-26 start
- #ifdef __KONG_NET_SP__
- #include "SettingDefs.h"
- #include "SimDetectionDef.h"
- #endif
- //KP Jerry add for third sevice on 2007-03-26 end
- #include "SMSApi.h"
- #include "SMSStruct.h"
- #include "SMSFunc.h"
- #ifdef __MMI_EMAIL__
- #include "EmailAppGProt.h"
- #endif
- #ifdef __MMI_IMPS__
- #include "mmi_imps_gprot.h"
- #endif
- #ifdef WAP_SUPPORT
- #include "wap_ps_struct.h"
- #endif /* WAP_SUPPORT */
- #if defined(__MMI_WLAN_FEATURES__) && defined(__MMI_VOIP__)
- #include "NetworkSetupDefs.h"
- #include "VoIPGProt.h"
- #endif /* defined(__MMI_WLAN_FEATURES__) && defined(__MMI_VOIP__) */
- #if defined(__MMI_SMART_MESSAGE_MT__) || (defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__)) || defined(__MMI_MYPICTURE__)
- #include "wgui_tab_bars.h"
- #include "wgui_categories_MMS.h"
- #include "wgui_categories_IMPS.h"
- #include "PicMsgApiToOthers.h"
- #include "FileSystemDef.h"
- #include "FileManagerDef.h"
- #include "FileMgr.h"
- #include "MyTone.h"
- #include "MyPicture.h"
- #include "SMRTRingToneConverter.h"
- S8 RingtoneNameBuffer[NSM_FILE_NAME_BUFF];
- S8 PictureNameBuffer[NSM_FILE_NAME_BUFF];
- U8 *gPictureDataBuffer = NULL;
- U16 gSelected_Item = 0;
- U16 gConvertFlag = FALSE;
- U8 gPictureMessageError = 0;
- U8 TextBuffer[(MAX_PICMSG_DEFAULT_DCS_TEXT_LEN * ENCODING_LENGTH) + (10 * ENCODING_LENGTH)];
- extern U8 gaddtext_buffer[];
- #if defined(__MMI_MYPICTURE__)
- extern U8 gfilecount;
- #endif
- extern U8 gNSMBuffer[1024];
- extern S8 g_pmsg_TextInMessage[];
- U8 *pnsmMessageAsciibuff = NULL;
- U16 RemoveZerosInBetween(U8 *pOutBuffer, U8 *pInBuffer, U16 size);
- #if defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__)
- nsm_msg_struct g_nsm_msg_context;
- #if defined (MMI_ON_WIN32)
- extern U8 AshBmpDataHex[];
- #endif
- U16 ManufacturerSYSPictureStrIDs[] = /* ManufacturerPicture Str IDs */
- {
- STR_ID_NSM2_PIC1,
- STR_ID_NSM2_PIC2,
- STR_ID_NSM2_PIC3,
- STR_ID_NSM2_PIC4,
- STR_ID_NSM2_PIC5,
- STR_ID_NSM2_PIC6,
- STR_ID_NSM2_PIC7,
- STR_ID_NSM2_PIC8,
- STR_ID_NSM2_PIC9,
- STR_ID_NSM2_PIC10
- };
- U16 ManufacturerSYSPictureImageIDs[] =
- {
- IMG_NSM01_PIC,
- IMG_NSM02_PIC,
- IMG_NSM03_PIC,
- IMG_NSM04_PIC,
- IMG_NSM05_PIC,
- IMG_NSM06_PIC,
- IMG_NSM07_PIC,
- IMG_NSM08_PIC,
- IMG_NSM09_PIC,
- IMG_NSM010_PIC
- };
- #define NSM_MANUFACTURER_PICTURE_NUM 10
- U8 static currMaxSYSObjectList = 0;
- #define PREDEFINED_PIC_BUFF_SIZE 404
- #endif /* defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__) */
- #endif /* defined(__MMI_SMART_MESSAGE_MT__) || (defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__)) || defined(__MMI_MYPICTURE__) */
- #ifdef __MMI_MESSAGES_USE_URL__
- #include "Wap.h"
- #define MAX_NUM_URL_PATTERN 3
- #define MAX_NUM_VALID_HTTP_PREFIX 6
- #define MAX_LEN_URL_PATTERN 15
- S8 urlHttp[10] = {0x68, 0x74, 0x74, 0x70, 0x3a, 0x1b, 0x5c, 0x1b, 0x5c, 0x00};
- S8 urlHttps[11] = {0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x1b, 0x5c, 0x1b, 0x5c, 0x00};
- const PS8 urlPattern[MAX_NUM_URL_PATTERN] = { "http", "www.", "wap." };
- const PS8 urlValidHttpPrefix[MAX_NUM_VALID_HTTP_PREFIX] =
- { "http://", "http:\\", urlHttp, "https://", "https:\\", urlHttps};
- #endif /* __MMI_MESSAGES_USE_URL__ */
- #include "wapadp.h"
- #if defined(__MMI_SMART_MESSAGE_MT__)
- nsm_picmsg_text_struct picmsg_text_struct;
- #endif
- #ifdef __MMI_UNIFIED_MESSAGE__
- #include "UnifiedMessageDef.h"
- #include "UnifiedMessageGProt.h"
- #endif /* __MMI_UNIFIED_MESSAGE__ */
- #ifdef __MMI_UNIFIED_COMPOSER__
- #include "UnifiedComposerDef.h"
- #include "UnifiedComposerGProt.h"
- #endif /* __MMI_UNIFIED_MESSAGE__ */
- //KP Jerry add on 2007-4-12 start
- #ifdef __MMI_MESSAGES_SENDMSG_QUICKLY__
- #include "JMMSStructs.h"
- #endif
- //KP Jerry add on 2007-4-12 end
- extern kal_uint16 wap_get_screen_id(void);
- /* */
- #define ONE_DIGIT(value) ((value) % 10)
- extern EMSData *GetEMSDataForView(EMSData **p, U8 force);
- extern EMSData *GetEMSDataForEdit(EMSData **p, U8 force);
- extern U8 DeInitMessagesEMSBuffer(msg_ems_data_struct *pE);
- #ifdef WAP_SUPPORT
- extern int wap_entry_select_bookmark(void);
- #endif /* WAP_SUPPORT */
- //
- //////////////////////////////////////////////////////////////////////////////////////
- // local variables
- //////////////////////////////////////////////////////////////////////////////////////
- /********************************************************************
- variables
- ********************************************************************/
- msg_context_struct g_msg_cntx;
- static U16 msg_popup_strID;
- static U16 msg_popup_imgID;
- static U8 msg_popup_tonID;
- static U8 backgroundaudioresume = FALSE;
- static U16 msg_confirm_strID = STR_GLOBAL_OK;
- static FuncPtr msg_confirm_lskFuncPtr = NULL;
- static FuncPtr msg_confirm_rskFuncPtr = NULL;
- static FuncPtr msg_common_funcPtr = NULL;
- S16 processCaptionStrId;
- S16 processBodyStrId;
- U16 processAnimationImageId;
- U16 processRSKStrId;
- static msg_in_out_struct TotalInboxOutboxStatus;
- msg_active_profile_struct activeProfile;
- msg_msgbox_info_struct msgbox_info;
- extern PendingSaveSendDataStruct PendingSaveSendData;
- //KP Jerry add for third sevice on 2007-03-26 start
- #ifdef __KONG_NET_SP__
- extern U8 gPLMN[ ];
- ThumbWorldType ThumbWorldtype;
- WonderfulType Wonderfultype;
- SecretRoomType SecretRoomtype;
- void EntryThumbWorldOkSubscribeHandler(void)
- {
- if(memcmp(gPLMN,"46000", 5) == 0)
- {
- // UnicodeToAnsii((S8*)g_msg_cntx.smsPhoneNumber, (S8*)L"335561");
- strcpy(g_msg_cntx.smsPhoneNumber, "335561");
- }
- else if(memcmp(gPLMN,"46001", 5) == 0)
- {
- strcpy(g_msg_cntx.smsPhoneNumber, "935561");
- // UnicodeToAnsii((S8*)g_msg_cntx.smsPhoneNumber, (S8*)L"935561");
- }
- else
- {
- DisplayPopup((PU8)GetString(STR_NO_FDL),IMG_GLOBAL_QUESTION,1, MESSAGES_POPUP_TIME_OUT, (U8)ERROR_TONE);
- return;
- }
- switch(ThumbWorldtype)
- {
- case THUMB_WORLD_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "MM BGLKJ001S00", strlen("MM BGLKJ001S00"));
- break;
- case THUMB_WORLD_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "AM BGLKJ001S00", strlen("AM BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"PM BGLKJ001S00");
- break;
- case THUMB_WORLD_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "MF BGLKJ001S00", strlen("MF BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"MM BGLKJ001S00");
- break;
- case THUMB_WORLD_TYPE_4:/**/
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "QJ BGLKJ001S00", strlen("QJ BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"SG BGLKJ001S00");
- break;
- case THUMB_WORLD_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "JR BGLKJ001S00", strlen("JR BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"Y BGLKJ001S00");
- break;
- case THUMB_WORLD_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "GM BGLKJ001S00", strlen("GM BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"AM BGLKJ001S00");
- break;
- case THUMB_WORLD_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "JS BGLKJ001S00", strlen("JS BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"MF BGLKJ001S00");
- break;
- case THUMB_WORLD_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "NJ BGLKJ001S00", strlen("NJ BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"QJ BGLKJ001S00");
- break;
- case THUMB_WORLD_TYPE_9:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "H BGLKJ001S00", strlen("H BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"AQ BGLKJ001S00");
- break;
- case THUMB_WORLD_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "A BGLKJ001S00", strlen("A BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"JR BGLKJ001S00");
- break;
- case WEATHER_FORECAST_TYPE:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "TQ BGLKJ001S00", strlen("TQ BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"TQ BGLKJ001S00");
- break;
- case HANDPHONE_PAPER_TYPE:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "QJ BGLKJ001S00", strlen("QJ BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"TQ BGLKJ001S00");
- break;
- case CITY_FRIEND_TYPE:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "Y BGLKJ001S00", strlen("Y BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"TQ BGLKJ001S00");
- break;
- default :
- break;
- }
- mmi_msg_send_msg_req((U8*)g_msg_cntx.smsPhoneNumber, MMI_FRM_SMS_INVALID_INDEX,1);
- }
- void EntryThumbWorldOkOrderHandler(void)
- {
- if(memcmp(gPLMN,"46000", 5) == 0)
- {
- strcpy(g_msg_cntx.smsPhoneNumber, "335561");
- }
- else if(memcmp(gPLMN,"46001", 5) == 0)
- {
- strcpy(g_msg_cntx.smsPhoneNumber, "935546");
- }
- else
- {
- DisplayPopup((PU8)GetString(STR_NO_FDL),IMG_GLOBAL_QUESTION,1, MESSAGES_POPUP_TIME_OUT, (U8)ERROR_TONE);
- return;
- }
- switch(ThumbWorldtype)
- {
- case THUMB_WORLD_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "QJA BGLKJ001S00", strlen("QJA BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"SGA BGLKJ001S00");
- break;
- case THUMB_WORLD_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "NJA BGLKJ001S00", strlen("NJA BGLKJ001S00"));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"QJA BGLKJ001S00");
- break;
- case WEATHER_FORECAST_TYPE:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"TW BGLKJ001S00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "TW BGLKJ001S00", strlen("TW BGLKJ001S00"));
- break;
- case HANDPHONE_PAPER_TYPE:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"TW BGLKJ001S00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "QJA BGLKJ001S00", strlen("QJA BGLKJ001S00"));
- break;
- default :
- break;
- }
- mmi_msg_send_msg_req((U8*)g_msg_cntx.smsPhoneNumber, MMI_FRM_SMS_INVALID_INDEX,1);
- }
- void EntryThumbWorldOkFareHelpHandler(void)
- {
- if(memcmp(gPLMN,"46000", 5) == 0)
- {
- strcpy(g_msg_cntx.smsPhoneNumber, "335561");
- }
- else if(memcmp(gPLMN,"46001", 5) == 0)
- {
- strcpy(g_msg_cntx.smsPhoneNumber, "935561");
- }
- else
- {
- DisplayPopup((PU8)GetString(STR_NO_FDL),IMG_GLOBAL_QUESTION,1, MESSAGES_POPUP_TIME_OUT, (U8)ERROR_TONE);
- return;
- }
- switch(ThumbWorldtype)
- {
- case THUMB_WORLD_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYXJQNV BGLKJ001S00", strlen("ZFSYXJQNV BGLKJ001S00"));
- break;
- case THUMB_WORLD_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYXKZYLQ BGLKJ001S00", strlen("ZFSYXKZYLQ BGLKJ001S00"));
- break;
- case THUMB_WORLD_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYXZXQY BGLKJ001S00", strlen("ZFSYXZXQY BGLKJ001S00"));
- break;
- case THUMB_WORLD_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSQJXW BGLKJ001S00", strlen("ZFSQJXW BGLKJ001S00"));
- break;
- case THUMB_WORLD_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSTLJRJNH BGLKJ001S00", strlen("ZFSTLJRJNH BGLKJ001S00"));
- break;
- case THUMB_WORLD_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYCXZYC BGLKJ001S00", strlen("ZFSYCXZYC BGLKJ001S00"));
- break;
- case THUMB_WORLD_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSWEYYJS BGLKJ001S00", strlen("ZFSWEYYJS BGLKJ001S00"));
- break;
- case THUMB_WORLD_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSXXNJJZW BGLKJ001S00", strlen("ZFSXXNJJZW BGLKJ001S00"));
- break;
- case THUMB_WORLD_TYPE_9:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYXHLBT BGLKJ001S00", strlen("ZFSYXHLBT BGLKJ001S00"));
- break;
- case THUMB_WORLD_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYXDXYX BGLKJ001S00", strlen("ZFSYXDXYX BGLKJ001S00"));
- break;
- case WEATHER_FORECAST_TYPE:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSTQ BGLKJ001S00", strlen("ZFSTQ BGLKJ001S00"));
- break;
- case HANDPHONE_PAPER_TYPE:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSQJXW BGLKJ001S00", strlen("ZFSQJXW BGLKJ001S00"));
- break;
- case CITY_FRIEND_TYPE:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYXYWCS BGLKJ001S00", strlen("ZFSYXYWCS BGLKJ001S00"));
- break;
- default :
- break;
- }
- mmi_msg_send_msg_req((U8*)g_msg_cntx.smsPhoneNumber, MMI_FRM_SMS_INVALID_INDEX,1);
- }
- void EntryWonderfulOkSubscribeHandler(void)
- {
- // if(memcmp(gPLMN,"46000", 5) == 0)
- // UnicodeToAnsii((S8*)g_msg_cntx.smsPhoneNumber, (S8*)L"335578");
- strcpy(g_msg_cntx.smsPhoneNumber, "335578");
- switch(Wonderfultype)
- {
- case WONDERFUL_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"M BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "M BGLKJ001M00", strlen("M BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"DJ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "DJ BGLKJ001M00", strlen("DJ BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"XQW BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "XQW BGLKJ001M00", strlen("XQW BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"MX BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "MX BGLKJ001M00", strlen("MX BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"YM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "YM BGLKJ001M00", strlen("YM BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"XGKT BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "XGKT BGLKJ001M00", strlen("XGKT BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"YLY BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "YLY BGLKJ001M00", strlen("YLY BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"XW BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "XW BGLKJ001M00", strlen("XW BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_9:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"XQM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "XQM BGLKJ001M00", strlen("XQM BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"AMC BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "AMC BGLKJ001M00", strlen("AMC BGLKJ001M00"));
- break;
- // more....
- case WONDERFUL_MORE_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"DYY BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "DYY BGLKJ001M00", strlen("DYY BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"GAME BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "GAME BGLKJ001M00", strlen("GAME BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"BG BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "BG BGLKJ001M00", strlen("BG BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"CL BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "CL BGLKJ001M00", strlen("CL BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"XWF BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "XWF BGLKJ001M00", strlen("XWF BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"GUI BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "GUI BGLKJ001M00", strlen("GUI BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"EAT BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "EAT BGLKJ001M00", strlen("EAT BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"RS BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "RS BGLKJ001M00", strlen("RS BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_9:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"CSC BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "CSC BGLKJ001M00", strlen("CSC BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"LXJ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "LXJ BGLKJ001M00", strlen("LXJ BGLKJ001M00"));
- break;
- // melody...
- case PIC_MELODY_DWD_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"LS BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "LS BGLKJ001M00", strlen("LS BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"DT BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "DT BGLKJ001M00", strlen("DT BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"HX BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "HX BGLKJ001M00", strlen("HX BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"SD BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "SD BGLKJ001M00", strlen("SD BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"CFZ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "CFZ BGLKJ001M00", strlen("CFZ BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"CFS BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "CFS BGLKJ001M00", strlen("CFS BGLKJ001M00"));
- break;
- // fashion live
- case FASHION_LIVE_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "XW BGLKJ001M00", strlen("XW BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "BG BGLKJ001M00", strlen("BG BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "NEWM BGLKJ001M00", strlen("NEWM BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "YLY BGLKJ001M00", strlen("YLY BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "CL BGLKJ001M00", strlen("CL BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "CSS BGLKJ001M00", strlen("CSS BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "GUI BGLKJ001M00", strlen("GUI BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "EAT BGLKJ001M00", strlen("EAT BGLKJ001M00"));
- break;
- default :
- break;
- }
- mmi_msg_send_msg_req((U8*)g_msg_cntx.smsPhoneNumber, MMI_FRM_SMS_INVALID_INDEX,1);
- }
- void EntryWonderfulOkOrderHandler(void)
- {
- // if(memcmp(gPLMN,"46000", 5) == 0)
- // UnicodeToAnsii((S8*)g_msg_cntx.smsPhoneNumber, (S8*)L"335578");
- strcpy(g_msg_cntx.smsPhoneNumber, "335578");
- switch(Wonderfultype)
- {
- case WONDERFUL_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OM BGLKJ001M00", strlen("OM BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ODJ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ODJ BGLKJ001M00", strlen("ODJ BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OXQW BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OXQW BGLKJ001M00", strlen("OXQW BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OMX BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OMX BGLKJ001M00", strlen("OMX BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OYM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OYM BGLKJ001M00", strlen("OYM BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OXGKT BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OXGKT BGLKJ001M00", strlen("OXGKT BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OYLY BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OYLY BGLKJ001M00", strlen("OYLY BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OXW BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OXW BGLKJ001M00", strlen("OXW BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_9:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OXQM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OXQM BGLKJ001M00", strlen("OXQM BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OAMC BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OAMC BGLKJ001M00", strlen("OAMC BGLKJ001M00"));
- break;
- // more .....
- case WONDERFUL_MORE_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ODYY BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ODYY BGLKJ001M00", strlen("ODYY BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OGAME BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OGAME BGLKJ001M00", strlen("OGAME BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OBG BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OBG BGLKJ001M00", strlen("OBG BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OCL BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OCL BGLKJ001M00", strlen("OCL BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OXWF BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OXWF BGLKJ001M00", strlen("OXWF BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OGUI BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OGUI BGLKJ001M00", strlen("OGUI BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OEAT BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OEAT BGLKJ001M00", strlen("OEAT BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ORS BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ORS BGLKJ001M00", strlen("ORS BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OLXJ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OLXJ BGLKJ001M00", strlen("OLXJ BGLKJ001M00"));
- break;
- // melody download...
- case PIC_MELODY_DWD_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OLS BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OLS BGLKJ001M00", strlen("OLS BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ODT BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ODT BGLKJ001M00", strlen("ODT BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"39DS0063 BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "39DS0063 BGLKJ001M00", strlen("39DS0063 BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OHX BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OHX BGLKJ001M00", strlen("OHX BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"39DS0011 BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "39DS0011 BGLKJ001M00", strlen("39DS0011 BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"39DS0053 BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "39DS0053 BGLKJ001M00", strlen("39DS0053 BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OSD BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OSD BGLKJ001M00", strlen("OSD BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OCFZ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OCFZ BGLKJ001M00", strlen("OCFZ BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_9:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"39DS0041 BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "39DS0041 BGLKJ001M00", strlen("39DS0041 BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OCFS BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OCFS BGLKJ001M00", strlen("OCFS BGLKJ001M00"));
- break;
- // fashion live
- case FASHION_LIVE_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OXW BGLKJ001M00", strlen("OXW BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OBG BGLKJ001M00", strlen("OBG BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ONEWM BGLKJ001M00", strlen("ONEWM BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OYLY BGLKJ001M00", strlen("OYLY BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OCL BGLKJ001M00", strlen("OCL BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OXQM BGLKJ001M00", strlen("OXQM BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OGUI BGLKJ001M00", strlen("OGUI BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "OEAT BGLKJ001M00", strlen("OEAT BGLKJ001M00"));
- break;
- default :
- break;
- }
- mmi_msg_send_msg_req((U8*)g_msg_cntx.smsPhoneNumber, MMI_FRM_SMS_INVALID_INDEX,1);
- }
- void EntryWonderfulOkFareHelpHandler(void)
- {
- // if(memcmp(gPLMN,"46000", 5) == 0)
- // UnicodeToAnsii((S8*)g_msg_cntx.smsPhoneNumber, (S8*)L"335578");
- strcpy(g_msg_cntx.smsPhoneNumber, "335578");
- switch(Wonderfultype)
- {
- case WONDERFUL_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFM BGLKJ001M00", strlen("ZFM BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFDJ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFDJ BGLKJ001M00", strlen("ZFDJ BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFXQW BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFXQW BGLKJ001M00", strlen("ZFXQW BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFMX BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFMX BGLKJ001M00", strlen("ZFMX BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFYM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFYM BGLKJ001M00", strlen("ZFYM BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFXGKT BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFXGKT BGLKJ001M00", strlen("ZFXGKT BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFYLY BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFYLY BGLKJ001M00", strlen("ZFYLY BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFXW BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFXW BGLKJ001M00", strlen("ZFXW BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_9:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFXQM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFXQM BGLKJ001M00", strlen("ZFXQM BGLKJ001M00"));
- break;
- case WONDERFUL_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFAMC BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFAMC BGLKJ001M00", strlen("ZFAMC BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFDYY BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFDYY BGLKJ001M00", strlen("ZFDYY BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFGAME BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFGAME BGLKJ001M00", strlen("ZFGAME BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFBG BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFBG BGLKJ001M00", strlen("ZFBG BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFCL BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFCL BGLKJ001M00", strlen("ZFCL BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFXWF BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFXWF BGLKJ001M00", strlen("ZFXWF BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFGUI BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFGUI BGLKJ001M00", strlen("ZFGUI BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFEAT BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFEAT BGLKJ001M00", strlen("ZFEAT BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFRS BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFRS BGLKJ001M00", strlen("ZFRS BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_9:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFCSC BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFCSC BGLKJ001M00", strlen("ZFCSC BGLKJ001M00"));
- break;
- case WONDERFUL_MORE_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFLXJ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFLXJ BGLKJ001M00", strlen("ZFLXJ BGLKJ001M00"));
- break;
- // melody
- case PIC_MELODY_DWD_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFLS BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFLS BGLKJ001M00", strlen("ZFLS BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFDT BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFDT BGLKJ001M00", strlen("ZFDT BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZF39DS0063 BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZF39DS0063 BGLKJ001M00", strlen("ZF39DS0063 BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFHX BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFHX BGLKJ001M00", strlen("ZFHX BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZF39DS0011 BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZF39DS0011 BGLKJ001M00", strlen("ZF39DS0011 BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZF39DS0053 BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZF39DS0053 BGLKJ001M00", strlen("ZF39DS0053 BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFSD BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSD BGLKJ001M00", strlen("ZFSD BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFCFZ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFCFZ BGLKJ001M00", strlen("ZFCFZ BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_9:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZF39DS0041 BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZF39DS0041 BGLKJ001M00", strlen("ZF39DS0041 BGLKJ001M00"));
- break;
- case PIC_MELODY_DWD_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFCFS BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFCFS BGLKJ001M00", strlen("ZFCFS BGLKJ001M00"));
- break;
- // fashion live
- case FASHION_LIVE_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFXW BGLKJ001M00", strlen("ZFXW BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFBG BGLKJ001M00", strlen("ZFBG BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFNEWM BGLKJ001M00", strlen("ZFNEWM BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFYLY BGLKJ001M00", strlen("ZFYLY BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFCL BGLKJ001M00", strlen("ZFCL BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFCSS BGLKJ001M00", strlen("ZFCSS BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFGUI BGLKJ001M00", strlen("ZFGUI BGLKJ001M00"));
- break;
- case FASHION_LIVE_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFEAT BGLKJ001M00", strlen("ZFEAT BGLKJ001M00"));
- break;
- default :
- break;
- }
- mmi_msg_send_msg_req((U8*)g_msg_cntx.smsPhoneNumber, MMI_FRM_SMS_INVALID_INDEX,1);
- }
- void EntrySecretRoomOkSubscribeHandler(void)
- {
- if(memcmp(gPLMN,"46000", 5) == 0)
- {
- // UnicodeToAnsii((S8*)g_msg_cntx.smsPhoneNumber, (S8*)L"335561");
- strcpy(g_msg_cntx.smsPhoneNumber, "335561");
- }
- else if(memcmp(gPLMN,"46001", 5) == 0)
- {
- strcpy(g_msg_cntx.smsPhoneNumber, "935561");
- // UnicodeToAnsii((S8*)g_msg_cntx.smsPhoneNumber, (S8*)L"935561");
- }
- else
- {
- DisplayPopup((PU8)GetString(STR_NO_FDL),IMG_GLOBAL_QUESTION,1, MESSAGES_POPUP_TIME_OUT, (U8)ERROR_TONE);
- return;
- }
- switch(SecretRoomtype)
- {
- case SECRETROOM_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"M BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "JE BGLKJ001S00", strlen("JE BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"DJ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "PM BGLKJ001S00", strlen("PM BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"XQW BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "SG BGLKJ001S00", strlen("SG BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"MX BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "Y BGLKJ001S00", strlen("Y BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"YM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "AQ BGLKJ001S00", strlen("AQ BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"XGKT BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "TL BGLKJ001S00", strlen("TL BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"YLY BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "MQ BGLKJ001S00", strlen("MQ BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"XW BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "YDLY BGLKJ001S00", strlen("YDLY BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_9:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"XQM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "AI BGLKJ001S00", strlen("AI BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"AMC BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "PK BGLKJ001S00", strlen("PK BGLKJ001S00"));
- break;
- default :
- break;
- }
- mmi_msg_send_msg_req((U8*)g_msg_cntx.smsPhoneNumber, MMI_FRM_SMS_INVALID_INDEX,1);
- }
- void EntrySecretRoomOkOrderHandler(void)
- {
- if(memcmp(gPLMN,"46000", 5) == 0)
- {
- // UnicodeToAnsii((S8*)g_msg_cntx.smsPhoneNumber, (S8*)L"335561");
- strcpy(g_msg_cntx.smsPhoneNumber, "335561");
- }
- else if(memcmp(gPLMN,"46001", 5) == 0)
- {
- strcpy(g_msg_cntx.smsPhoneNumber, "935561");
- // UnicodeToAnsii((S8*)g_msg_cntx.smsPhoneNumber, (S8*)L"935561");
- }
- else
- {
- DisplayPopup((PU8)GetString(STR_NO_FDL),IMG_GLOBAL_QUESTION,1, MESSAGES_POPUP_TIME_OUT, (U8)ERROR_TONE);
- return;
- }
- switch(SecretRoomtype)
- {
- case SECRETROOM_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "JPA BGLKJ001S00", strlen("JPA BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ODJ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "PMA BGLKJ001S00", strlen("PMA BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OXQW BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "SGA BGLKJ001S00", strlen("SGA BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"OMX BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "AQA BGLKJ001S00", strlen("AQA BGLKJ001S00"));
- break;
- default :
- break;
- }
- mmi_msg_send_msg_req((U8*)g_msg_cntx.smsPhoneNumber, MMI_FRM_SMS_INVALID_INDEX,1);
- }
- void EntrySecretRoomOkFareHelpHandler(void)
- {
- if(memcmp(gPLMN,"46000", 5) == 0)
- {
- // UnicodeToAnsii((S8*)g_msg_cntx.smsPhoneNumber, (S8*)L"335561");
- strcpy(g_msg_cntx.smsPhoneNumber, "335561");
- }
- else if(memcmp(gPLMN,"46001", 5) == 0)
- {
- strcpy(g_msg_cntx.smsPhoneNumber, "935561");
- // UnicodeToAnsii((S8*)g_msg_cntx.smsPhoneNumber, (S8*)L"935561");
- }
- else
- {
- DisplayPopup((PU8)GetString(STR_NO_FDL),IMG_GLOBAL_QUESTION,1, MESSAGES_POPUP_TIME_OUT, (U8)ERROR_TONE);
- return;
- }
- switch(SecretRoomtype)
- {
- case SECRETROOM_TYPE_1:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSXXSFXH BGLKJ001S00", strlen("ZFSXXSFXH BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_2:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFDJ BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSXQAR BGLKJ001S00", strlen("ZFSXQAR BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_3:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFXQW BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSSHXFSG BGLKJ001S00", strlen("ZFSSHXFSG BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_4:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFMX BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYXYWCS BGLKJ001S00", strlen("ZFSYXYWCS BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_5:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFYM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSSHBYJQ BGLKJ001S00", strlen("ZFSSHBYJQ BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_6:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFXGKT BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSTLSSDD BGLKJ001S00", strlen("ZFSTLSSDD BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_7:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFYLY BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYXLABD BGLKJ001S00", strlen("ZFSYXLABD BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_8:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFXW BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYDLY BGLKJ001S00", strlen("ZFSYDLY BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_9:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFXQM BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYXCSKAL BGLKJ001S00", strlen("ZFSYXCSKAL BGLKJ001S00"));
- break;
- case SECRETROOM_TYPE_10:
- memset(g_msg_cntx.dfmsg,0,sizeof(g_msg_cntx.dfmsg));
- //pfnUnicodeStrcpy((S8*)g_msg_cntx.dfmsg,(S8*)L"ZFAMC BGLKJ001M00");
- AnsiiNToUnicodeString(g_msg_cntx.dfmsg, "ZFSYXFHNLSL BGLKJ001S00", strlen("ZFSYXFHNLSL BGLKJ001S00"));
- break;
- default :
- break;
- }
- mmi_msg_send_msg_req((U8*)g_msg_cntx.smsPhoneNumber, MMI_FRM_SMS_INVALID_INDEX,1);
- }
- #endif
- //KP Jerry add for third sevice on 2007-03-26 end
- /****************************************************************
- generic functions
- ****************************************************************/
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_set_msg_icon
- * DESCRIPTION
- * Set msg icon for unread/full message.
- * PARAMETERS
- * blink [IN]
- * unblink [IN]
- * a(?) [IN] Blink
- * b(?) [IN] Unblink
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_set_msg_icon(U8 blink, U8 unblink)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U16 i = 0;
- U16 totalinbox = mmi_frm_sms_get_sms_list_size(MMI_FRM_SMS_APP_INBOX);
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- PRINT_INFORMATION_2((MMI_TRACE_G6_SMS, "*-------[SmsMoMtGuiInterface.c] mmi_msg_set_msg_icon -------*n"));
- if (blink == TRUE)
- {
- PRINT_INFORMATION_2((MMI_TRACE_G6_SMS,
- "*-------[SmsMoMtGuiInterface.c] mmi_msg_set_msg_icon blink==TRUE -------*n"));
- HideStatusIcon(STATUS_ICON_INCOMING_SMS);
- HideStatusIcon(STATUS_ICON_SUBLCD_SMS);
- BlinkStatusIcon(STATUS_ICON_INCOMING_SMS);
- BlinkStatusIcon(STATUS_ICON_SUBLCD_SMS);
- UpdateStatusIcons();
- return;
- }
- if (unblink == TRUE)
- {
- PRINT_INFORMATION_2((MMI_TRACE_G6_SMS,
- "*-------[SmsMoMtGuiInterface.c] mmi_msg_set_msg_icon unblink==TRUE -------*n"));
- HideStatusIcon(STATUS_ICON_INCOMING_SMS);
- HideStatusIcon(STATUS_ICON_SUBLCD_SMS);
- }
- if (g_msg_cntx.msg_full_ind == FALSE)
- {
- PRINT_INFORMATION_2((MMI_TRACE_G6_SMS,
- "*-------[SmsMoMtGuiInterface.c] mmi_msg_set_msg_icon g_msg_cntx.msg_full_ind==FALSE -------*n"));
- if (totalinbox != MMI_FRM_SMS_INVALID_INDEX)
- {
- PRINT_INFORMATION_2((MMI_TRACE_G6_SMS,
- "*-------[SmsMoMtGuiInterface.c] mmi_msg_set_msg_icon totalinbox: %d -------*n",
- totalinbox));
- while (i < totalinbox)
- {
- if ((mmi_frm_sms_get_status(MMI_FRM_SMS_APP_INBOX, i) & 0x0f) == MMI_FRM_SMS_APP_UNREAD)
- {
- PRINT_INFORMATION_2((MMI_TRACE_G6_SMS,
- "*-------[SmsMoMtGuiInterface.c] mmi_msg_set_msg_icon UNREAD found -------*n"));
- ShowStatusIcon(STATUS_ICON_INCOMING_SMS);
- ShowStatusIcon(STATUS_ICON_SUBLCD_SMS);
- UpdateStatusIcons();
- return;
- }
- i++;
- }
- }
- PRINT_INFORMATION_2((MMI_TRACE_G6_SMS,
- "*-------[SmsMoMtGuiInterface.c] mmi_msg_set_msg_icon NO UNREAD found -------*n"));
- HideStatusIcon(STATUS_ICON_INCOMING_SMS);
- HideStatusIcon(STATUS_ICON_SUBLCD_SMS);
- }
- UpdateStatusIcons();
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_set_funcptr
- * DESCRIPTION
- * Set function pointer for later usage
- * PARAMETERS
- * funcptr [IN] Function pointer for later usage
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_set_funcptr(FuncPtr funcptr)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- msg_common_funcPtr = funcptr;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_exec_funcptr
- * DESCRIPTION
- * Execute function pointer set earlier
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_exec_funcptr(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (msg_common_funcPtr != NULL)
- {
- (*msg_common_funcPtr) ();
- }
- msg_common_funcPtr = NULL;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_set_msg_waiting_icon
- * DESCRIPTION
- * Set msg icon for waiting vm/email/fax
- * PARAMETERS
- * line [IN]
- * type [IN]
- * set [IN]
- * a(?) [IN] Line
- * c(?) [IN] Set/unset
- * b(?) [IN] Type
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_set_msg_waiting_icon(U8 line, U8 type, U8 set)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 i = 0;
- U8 otherline = (line == 0 ? 1 : 0);
- U16 icon[] =
- {
- STATUS_ICON_UNREAD_VOICE_L1,
- STATUS_ICON_UNREAD_VOICE_L2,
- STATUS_ICON_UNREAD_VOICE_L1L2,
- STATUS_ICON_UNREAD_FAX_L1,
- STATUS_ICON_UNREAD_FAX_L2,
- STATUS_ICON_UNREAD_FAX_L1L2,
- STATUS_ICON_UNREAD_EMAIL_L1,
- STATUS_ICON_UNREAD_EMAIL_L2,
- STATUS_ICON_UNREAD_EMAIL_L1L2,
- };
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- for (i = 0; i < (MAX_WAITING_LINE_NUM + 1); i++)
- {
- IdleResetStatusIcon(icon[(type * (MAX_WAITING_LINE_NUM + 1)) + i]);
- }
- if ((set > 0) && (g_msg_cntx.msg_waiting_info[otherline].number[type]))
- {
- IdleSetStatusIcon(icon[(type * (MAX_WAITING_LINE_NUM + 1)) + MAX_WAITING_LINE_NUM]);
- }
- else if (set > 0)
- {
- IdleSetStatusIcon(icon[(type * (MAX_WAITING_LINE_NUM + 1)) + line]);
- }
- else if (g_msg_cntx.msg_waiting_info[otherline].number[type])
- {
- IdleSetStatusIcon(icon[(type * (MAX_WAITING_LINE_NUM + 1)) + otherline]);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_exit_generic
- * DESCRIPTION
- * Exit generic function for MSG app.
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_exit_generic(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_msg_cntx.MessagesScrnIdDelUptoHistoryNodes = GetMessagesCurrScrnID();
- SetMessagesCurrScrnID(0); /* messagesCurrScrnID */
- /* MTK Leo add, mini_tab_bar */
- #ifdef __MMI_WGUI_MINI_TAB_BAR__
- wgui_disable_mini_tab_bar();
- #endif
- /* MTK Leo end */
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_highlight_generic
- * DESCRIPTION
- * Highlight generic function for MSG app
- * PARAMETERS
- * lskstr [IN]
- * lskimg [IN]
- * rskstr [IN]
- * rskimg [IN]
- * lskfunc [IN]
- * rskfunc [IN]
- * a(?) [IN] Left soft key string
- * d(?) [IN] Right soft key image
- * f(?) [IN] Right soft key function
- * e(?) [IN] Left soft key function
- * c(?) [IN] Right soft key string
- * b(?) [IN] Left soft key image
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_highlight_generic(U16 lskstr, U16 lskimg, U16 rskstr, U16 rskimg, FuncPtr lskfunc, FuncPtr rskfunc)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- ChangeLeftSoftkey(lskstr, lskimg);
- ChangeRightSoftkey(rskstr, rskimg);
- SetLeftSoftkeyFunction(lskfunc, KEY_EVENT_UP);
- SetKeyHandler(lskfunc, KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- SetRightSoftkeyFunction(rskfunc, KEY_EVENT_UP);
- SetKeyHandler(rskfunc, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_set_confirm_screen
- * DESCRIPTION
- * Set string and function for MSG confirmation screen
- * PARAMETERS
- * id [IN]
- * lskfunc [IN]
- * rskfunc [IN]
- * a(?) [IN] String ID
- * c(?) [IN] Right soft key function
- * b(?) [IN] Left soft key function
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_set_confirm_screen(U16 id, FuncPtr lskfunc, FuncPtr rskfunc)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- msg_confirm_strID = id;
- msg_confirm_lskFuncPtr = lskfunc;
- msg_confirm_rskFuncPtr = rskfunc;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_entry_confirm_generic
- * DESCRIPTION
- * Entry MSG generic confirmation screen
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_entry_confirm_generic(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- DisplayConfirm(
- STR_GLOBAL_YES,
- IMG_GLOBAL_YES,
- STR_GLOBAL_NO,
- IMG_GLOBAL_NO,
- get_string(msg_confirm_strID),
- IMG_GLOBAL_QUESTION,
- WARNING_TONE);
- SetLeftSoftkeyFunction(msg_confirm_lskFuncPtr, KEY_EVENT_UP);
- SetRightSoftkeyFunction(msg_confirm_rskFuncPtr, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_exit_confirm_generic
- * DESCRIPTION
- * Exit MSG generic confirmation screen
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_exit_confirm_generic(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- stopRequestedTone(WARNING_TONE);
- SetMessagesCurrScrnID(0); /* messagesCurrScrnID */
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_set_processing_screen
- * DESCRIPTION
- * Set string and image for MSG processing screen
- * PARAMETERS
- * captionStrId [IN]
- * bodyStrId [IN]
- * animationImageId [IN]
- * rskStrId [IN]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_set_processing_screen(U16 captionStrId, U16 bodyStrId, U16 animationImageId, U16 rskStrId)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- processCaptionStrId = captionStrId;
- processBodyStrId = bodyStrId;
- processAnimationImageId = animationImageId;
- processRSKStrId = rskStrId;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_end_key_from_processing
- * DESCRIPTION
- * Reset display list type before go to idle.
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_end_key_from_processing(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (!isInCall())
- {
- g_msg_cntx.toDisplayMessageList = TO_DISPLAY_MESSAGE_LIST_NONE;
- }
- ExecCurrEndKeyDownHandler();
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_go_back_from_processing
- * DESCRIPTION
- * Reset display list type before go back screen.
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_go_back_from_processing(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_msg_cntx.toDisplayMessageList = TO_DISPLAY_MESSAGE_LIST_NONE;
- GoBackHistory();
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_call_handle_from_processing
- * DESCRIPTION
- * Reset current screen before enter call screen.
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_call_handle_from_processing(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetMessagesCurrScrnID(0);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_entry_processing_generic
- * DESCRIPTION
- * Entry MSG generic processing screen
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_entry_processing_generic(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- EntryNewScreen(SCR_ID_MSG_PROCESSING, mmi_msg_exit_processing_generic, mmi_msg_entry_processing_generic, NULL);
- PRINT_INFORMATION_2((MMI_TRACE_G6_SMS, "*[SmsMoMtGuiInterface.c] mmi_msg_entry_processing_generic *n"));
- SetMessagesCurrScrnID(SCR_ID_MSG_PROCESSING); /* may be temp func... */
- GetCurrEndKeyDownHandler();
- /* PMT HIMANSHU START 20050920 */
- #ifdef __MMI_MAINLCD_240X320__
- /* passing 0xffff for Title string and Title icon for the disbling the status bar and title display. */
- ShowCategory8Screen(0xffff, 0xffff, 0, 0, processRSKStrId, 0, processBodyStrId, processAnimationImageId, NULL);
- #else /* __MMI_MAINLCD_240X320__ */
- ShowCategory8Screen(
- processCaptionStrId,
- IMG_SMS_ENTRY_SCRN_CAPTION,
- 0,
- 0,
- processRSKStrId,
- 0,
- processBodyStrId,
- processAnimationImageId,
- NULL);
- #endif /* __MMI_MAINLCD_240X320__ */
- /* PMT HIMANSHU END 20050920 */
- if (processRSKStrId == 0)
- {
- ClearAllKeyHandler();
- ClearKeyHandler(KEY_END, KEY_EVENT_UP);
- ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
- ClearKeyHandler(KEY_END, KEY_LONG_PRESS);
- ClearKeyHandler(KEY_END, KEY_REPEAT);
- if (isInCall())
- {
- SetKeyHandler(HangupAllCalls, KEY_END, KEY_EVENT_DOWN);
- }
- StartTimer(MESSAGES_INPROGRESS_TIMER_ID, MESSAGES_INPROGRESS_TIME_OUT, mmi_msg_time_out_processing_generic);
- }
- else
- {
- SetKeyHandler(mmi_msg_go_back_from_processing, KEY_LEFT_ARROW, KEY_EVENT_DOWN);
- SetRightSoftkeyFunction(mmi_msg_go_back_from_processing, KEY_EVENT_UP);
- SetKeyHandler(mmi_msg_end_key_from_processing, KEY_END, KEY_EVENT_DOWN);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_exit_processing_generic
- * DESCRIPTION
- * Exit MSG generic processing screen
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_exit_processing_generic(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- g_msg_cntx.MessagesScrnIdDelUptoHistoryNodes = GetMessagesCurrScrnID();
- SetMessagesCurrScrnID(0); /* NOTE!!!!! do not set to zero for incoming call reason */
- StopTimer(MESSAGES_INPROGRESS_TIMER_ID);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_time_out_processing_generic
- * DESCRIPTION
- * Time out call back of processing screen
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_time_out_processing_generic(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- StopTimer(MESSAGES_INPROGRESS_TIMER_ID);
- if (GetMessagesCurrScrnID() == SCR_ID_MSG_PROCESSING)
- {
- DisplayPopup(
- (PU8) GetString(STR_GLOBAL_UNFINISHED),
- IMG_GLOBAL_UNFINISHED,
- 1,
- MESSAGES_POPUP_TIME_OUT,
- (U8) ERROR_TONE);
- }
- DeleteMessagesHistoryNodes();
- DeleteScreenIfPresent(SCR_ID_MSG_PROCESSING);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_set_popup_generic
- * DESCRIPTION
- * Set popup screen.
- * PARAMETERS
- * strID [IN]
- * imgID [IN]
- * toneID [IN]
- * a(?) [IN] String ID
- * c(?) [IN] Tone ID
- * b(?) [IN] Image ID
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_set_popup_generic(U16 strID, U16 imgID, U8 toneID)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- msg_popup_strID = strID;
- msg_popup_imgID = imgID;
- msg_popup_tonID = toneID;
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_display_popup_generic
- * DESCRIPTION
- * Display popup screen.
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_display_popup_generic(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- DisplayPopup((PU8) GetString(msg_popup_strID), msg_popup_imgID, 1, MESSAGES_POPUP_TIME_OUT, (U8) msg_popup_tonID);
- DeleteMessagesHistoryNodes();
- AlmEnableSPOF();
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_entry_new_msg_popup
- * DESCRIPTION
- * Entry new message popup.
- * PARAMETERS
- * type [IN]
- * a(?) [IN] New message type
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_entry_new_msg_popup(U8 type)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U16 indstr = STR_RECEIVED_SMS;
- MMI_ALERT_TYPE alertType;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- alertType = GetMtCallAlertTypeEnum();
- EntryNewScreen(SCR_POPUP_SCREEN, mmi_msg_exit_new_msg_popup, NULL, NULL);
- switch (type)
- {
- case MSG_NEW_VOICEMAIL:
- indstr = STR_VOICEMAIL_IND;
- break;
- case MSG_NEW_FAX:
- indstr = STR_FAX_IND;
- break;
- case MSG_NEW_EMAIL:
- indstr = STR_EMAIL_IND;
- break;
- case MSG_NEW_MSG_NORMAL:
- indstr = STR_RECEIVED_SMS;
- break;
- #if (defined (JATAAYU_SUPPORT) && defined(MMS_SUPPORT))
- case MSG_NEW_JMMS_MMS:
- indstr = STR_ID_JMMS_NEW_MMS;
- break;
- case MSG_NEW_JMMS_JAVA_MMS:
- indstr = STR_ID_JMMS_NEW_JAVA_MMS;
- break;
- #endif /* (defined (JATAAYU_SUPPORT) && defined(MMS_SUPPORT)) */
- #if (defined (JATAAYU_SUPPORT) && defined(WAP_SUPPORT))
- case MSG_NEW_PUSH:
- indstr = STR_ID_BRW_SERVICE_MESSAGE_RCVD;
- break;
- case MSG_NEW_PROV_SETTING:
- indstr = g_prov_newsetting_stringID ; /*STR_ID_PROV_NEW_SETTINGS*/
- break;
- #endif /* (defined (JATAAYU_SUPPORT) && defined(WAP_SUPPORT)) */
- case MSG_NEW_MSG_CLASS0:
- indstr = STR_CLASS0_MESSAGE_CAPTION;
- break;
- case MSG_NEW_DELIVERY_REPORT:
- indstr = STR_DELIVERY_REPORT_MENUENTRY;
- break;
- #if defined(__MMI_SMART_MESSAGE_MT__) || (defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__))
- case MSG_NEW_MSG_PICTURE:
- indstr = STR_ID_NSM_NEW_PICTURE_MESSAGE;
- break;
- case MSG_NEW_MSG_RINGTONE:
- indstr = STR_ID_NSM_NEW_RINGTONE_MESSAGE;
- break;
- #endif /* defined(__MMI_SMART_MESSAGE_MT__) || (defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__)) */
- default:
- indstr = STR_RECEIVED_SMS;
- break;
- }
- GetCurrEndKeyDownHandler();
- ShowCategory65Screen((PU8) GetString(indstr), IMG_NEW_MESSAGE_NOTIFICATION_MSG, NULL);
- SetGroupKeyHandler(NULL, (PU16) PresentAllKeys, (U8) TOTAL_KEYS, KEY_EVENT_DOWN);
- SetGroupKeyHandler(GoBackHistory, (PU16) PresentAllKeys, (U8) TOTAL_KEYS, KEY_EVENT_UP);
- ClearKeyHandler(KEY_END, KEY_EVENT_UP);
- SetKeyHandler(ExecCurrEndKeyDownHandler, KEY_END, KEY_EVENT_DOWN);
- msg_popup_tonID = 0;
- if (alertType == MMI_VIBRATION_AND_RING || alertType == MMI_VIBRATION_THEN_RING || alertType == MMI_RING)
- {
- if (!isInCall())
- {
- msg_popup_tonID = (U8) MESSAGE_TONE;
- }
- else
- {
- msg_popup_tonID = (U8) SMS_IN_CALL_TONE;
- }
- }
- if ((alertType == MMI_VIBRATION_ONLY) || (alertType == MMI_VIBRATION_AND_RING)
- || (alertType == MMI_VIBRATION_THEN_RING))
- {
- if (!AlmIsTonePlaying())
- {
- PlaySmsVibratorOnce();
- }
- }
- if (msg_popup_tonID)
- {
- if ((msg_popup_tonID == (U8) MESSAGE_TONE) && !(mdi_audio_is_background_play_suspended()))
- {
- mdi_audio_suspend_background_play();
- backgroundaudioresume = TRUE;
- }
- playRequestedTone(msg_popup_tonID);
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_exit_new_msg_popup
- * DESCRIPTION
- * Exit new message popup.
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_exit_new_msg_popup(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (msg_popup_tonID)
- {
- stopRequestedTone(msg_popup_tonID);
- if (backgroundaudioresume)
- {
- mdi_audio_resume_background_play();
- backgroundaudioresume = FALSE;
- }
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_entry_sending
- * DESCRIPTION
- * Entry sending screen.
- *
- * PARAMETERS
- * none
- * RETURNS
- * none
- * GLOBALS AFFECTED
- * none
- *****************************************************************************/
- /*
- * void mmi_msg_entry_sending (void)
- * {
- * EntryNewScreen(SCR_ID_MSG_SENDING, mmi_msg_exit_generic, mmi_msg_entry_sending, NULL);
- * PRINT_INFORMATION_2 ((MMI_TRACE_G6_SMS, "*[SmsMoMtGuiInterface.c] mmi_msg_entry_sending *n"));
- *
- * SetMessagesCurrScrnID (SCR_ID_MSG_SENDING); // may be temp func...
- *
- * ShowCategory8Screen (STR_SENDING_SMS, 0, 0,0, STR_GLOBAL_ABORT, IMG_SMS_COMMON_NOIMAGE,
- * STR_SENDIING_SMS_BODY, IMG_NEW_SMS_SEND, NULL);
- *
- * ClearInputEventHandler(MMI_DEVICE_ALL);
- * ClearKeyHandler(KEY_END, KEY_EVENT_UP);
- * ClearKeyHandler(KEY_END, KEY_EVENT_DOWN);
- * ClearKeyHandler(KEY_END, KEY_LONG_PRESS);
- * ClearKeyHandler(KEY_END, KEY_REPEAT);
- * SetKeyHandler(mmi_msg_abort_msg, KEY_END, KEY_EVENT_DOWN);
- * SetRightSoftkeyFunction (mmi_msg_abort_msg, KEY_EVENT_UP);
- * }
- */
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_set_msg_num_hint
- * DESCRIPTION
- * Set message number hint
- * PARAMETERS
- * totalInbox [IN]
- * totalOutbox [IN]
- * totalDraftbox [IN]
- * a(?) [IN] Total inbox
- * c(?) [IN] Total draftbox
- * b(?) [IN] Total outbox
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_set_msg_num_hint(U16 totalInbox, U16 totalOutbox, U16 totalDraftbox)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- S8 LocalData1[10];
- S8 LocalData2[10];
- S8 LocalData3[10];
- S8 LocalData1_unicode[10 * 2];
- S8 LocalData2_unicode[10 * 2];
- S8 LocalData3_unicode[10 * 2];
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- sprintf(LocalData1, "%d ", totalInbox);
- sprintf(LocalData2, "%d ", totalOutbox);
- sprintf(LocalData3, "%d ", totalDraftbox);
- AnsiiToUnicodeString(LocalData1_unicode, LocalData1);
- AnsiiToUnicodeString(LocalData2_unicode, LocalData2);
- AnsiiToUnicodeString(LocalData3_unicode, LocalData3);
- pfnUnicodeStrcpy((PS8) TotalInboxOutboxStatus.totalInboxStr, LocalData1_unicode);
- pfnUnicodeStrncat(
- (PS8) TotalInboxOutboxStatus.totalInboxStr,
- GetString(STR_SMS_COUNT_POPUP_SUFFIX),
- MAX_SUBMENU_CHARACTERS);
- pfnUnicodeStrcpy((PS8) TotalInboxOutboxStatus.totalOutboxStr, LocalData2_unicode);
- pfnUnicodeStrncat(
- (PS8) TotalInboxOutboxStatus.totalOutboxStr,
- GetString(STR_SMS_COUNT_POPUP_SUFFIX),
- MAX_SUBMENU_CHARACTERS);
- #ifdef __MMI_MESSAGES_DRAFT_BOX__
- pfnUnicodeStrcpy((PS8) TotalInboxOutboxStatus.totalDraftboxStr, LocalData3_unicode);
- pfnUnicodeStrncat(
- (PS8) TotalInboxOutboxStatus.totalDraftboxStr,
- GetString(STR_SMS_COUNT_POPUP_SUFFIX),
- MAX_SUBMENU_CHARACTERS);
- #endif /* __MMI_MESSAGES_DRAFT_BOX__ */
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_inline_generic_custom_function
- * DESCRIPTION
- * Set LSK handle for inline full screen edit
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_inline_generic_custom_function(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- SetInputMethodAndDoneCaptionIcon(IMG_SMS_ENTRY_SCRN_CAPTION);
- ChangeLeftSoftkey(STR_GLOBAL_OPTIONS, IMG_GLOBAL_OPTIONS);
- SetLeftSoftkeyFunction(EntryScrForInputMethodAndDone, KEY_EVENT_UP);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_highlight_inline_generic_done
- * DESCRIPTION
- * Highlight inline done handler
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_highlight_inline_generic_done(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- mmi_msg_highlight_generic(
- STR_GLOBAL_OK,
- IMG_GLOBAL_OK,
- STR_GLOBAL_BACK,
- IMG_GLOBAL_BACK,
- ConfirmInlineFullScreenEdit,
- GoBackHistory);
- ClearKeyHandler(KEY_RIGHT_ARROW, KEY_EVENT_DOWN);
- }
- /*****************************************************************************
- * FUNCTION
- * GetFirstSemiOctetTarget
- * DESCRIPTION
- * Get first semi octet
- * PARAMETERS
- * ch [IN]
- * a(?) [IN] Input character
- * RETURNS
- * first semi octet of input
- *****************************************************************************/
- U8 GetFirstSemiOctetTarget(U8 ch)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- return (ch & 0xf0) >> 4;
- }
- /*****************************************************************************
- * FUNCTION
- * GetSecondSemiOctetTarget
- * DESCRIPTION
- * Get second semi octet
- * PARAMETERS
- * ch [IN]
- * a(?) [IN] Input character
- * RETURNS
- * second semi octet of input
- *****************************************************************************/
- U8 GetSecondSemiOctetTarget(U8 ch)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- return (ch & 0x0f);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_init_msg_data
- * DESCRIPTION
- * Init message data
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- #ifndef MMI_ON_HARDWARE_P
- extern void InitSMSSetting(void);
- #endif
- void mmi_msg_init_msg_data(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 i = 0;
- #ifndef MMI_ON_HARDWARE_P
- /* U8 index=0; */
- #endif
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- memset(&TotalInboxOutboxStatus, 0, sizeof(msg_in_out_struct));
- memset(&activeProfile, 0, sizeof(msg_active_profile_struct));
- #ifdef MMI_ON_HARDWARE_P
- g_msg_cntx.msg_init = FALSE; /* init to be false */
- #else
- g_msg_cntx.msg_init = TRUE; /* init to be false */
- #endif
- g_msg_cntx.number_from_phb = 0; /* init to be 0 */
- g_msg_cntx.msg_ind_index = SMSAL_INVALID_INDEX;
- g_msg_cntx.msg_ind_in_idle = FALSE;
- g_msg_cntx.msg_ind_after_call = FALSE;
- g_msg_cntx.msg_class0_ind = FALSE;
- g_msg_cntx.msg_full_ind = FALSE;
- g_msg_cntx.msg_exceed_ind = FALSE;
- g_msg_cntx.msg_deliver_ind = FALSE;
- g_msg_cntx.msg_waiting_ind = FALSE;
- #ifdef __MMI_UNIFIED_MESSAGE__
- g_msg_cntx.is_background_process = KAL_FALSE;
- #endif
- g_msg_cntx.toDisplayMessageList = TO_DISPLAY_MESSAGE_LIST_NONE;
- g_msg_cntx.sendSaveStatus = SEND_SAVE_NIL;
- g_msg_cntx.sendMessageCase = SEND_CASE_SEND_ONLY;
- g_msg_cntx.PhbSmsInterfaceState = MMI_PHB_SMS_INTERFACE_NONE;
- g_msg_cntx.msg_status = MSG_STATUS_IDLE;
- g_msg_cntx.msg_class0_p = NULL;
- /* g_msg_cntx.msg_class0_p->data=NULL; */
- for (i = 0; i < MAX_STATUS_REPORT_NUM; i++)
- {
- g_msg_cntx.msg_deliver_report[i] = NULL;
- }
- memset(g_msg_cntx.smsPhoneNumber, 0, (MAX_DIGITS + 1) * ENCODING_LENGTH);
- //KP Jerry add for third sevice on 2007-03-26 start
- #ifdef __KONG_NET_SP__
- memset(g_msg_cntx.dfmsg,0,50);
- #endif
- //KP Jerry add for third sevice on 2007-03-26 end
- memset(&g_msg_cntx.msg_waiting_info, 0, MAX_WAITING_LINE_NUM * sizeof(msg_waiting_ind_struct));
- #if defined(__MMI_MESSAGES_SEND_BY_GROUP__) || defined(__MMI_MESSAGES_SEND_TO_MANY__)
- memset(&(g_msg_cntx.msg_send_info), 0, sizeof(msg_send_many_struct));
- #endif
- #ifdef __MMI_MESSAGES_TEMPLATE__
- for (i = 0; i < NUM_TEMPLATES; i++)
- {
- g_msg_cntx.templates[i] = NULL;
- }
- memset(g_msg_cntx.scratchTemplRec, 0, NVRAM_SMS_TEMPL_RECORD_SIZE + ENCODING_LENGTH);
- #endif /* __MMI_MESSAGES_TEMPLATE__ */
- #ifdef __MMI_MESSAGES_USE_URL__
- memset(g_msg_cntx.URLlist, 0x00, sizeof(g_msg_cntx.URLlist));
- g_msg_cntx.URLCount = 0;
- #endif /* __MMI_MESSAGES_USE_URL__ */
- #ifndef MMI_ON_HARDWARE_P
- InitSMSSetting();
- #endif
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_deinit_msg_data
- * DESCRIPTION
- * Deinit message data
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_deinit_msg_data(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 i = 0;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- if (g_msg_cntx.msg_class0_p != NULL)
- {
- OslMfree(g_msg_cntx.msg_class0_p);
- g_msg_cntx.msg_class0_p = NULL;
- }
- for (i = 0; i < MAX_STATUS_REPORT_NUM; i++)
- {
- if (g_msg_cntx.msg_deliver_report[i] != NULL)
- {
- OslMfree(g_msg_cntx.msg_deliver_report[i]);
- }
- g_msg_cntx.msg_deliver_report[i] = NULL;
- }
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_go_back_from_write_msg
- * DESCRIPTION
- * Enable schedule power off before go back screen
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_go_back_from_write_msg(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- AlmEnableSPOF();
- GoBackHistory();
- }
- #if (defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__))
- /*****************************************************************************
- * FUNCTION
- * mmi_nsm2_exit_write_msg
- * DESCRIPTION
- * Exit write message
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_nsm2_exit_write_msg(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- mmi_nsm2_add_text_in_pEMS(&g_nsm_msg_context);
- mmi_msg_exit_generic();
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_nsm2_add_text_in_pEMS
- * DESCRIPTION
- * Save textbuffer in pEMS
- * PARAMETERS
- * nsm_msg_context [?]
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_nsm2_add_text_in_pEMS(nsm_msg_struct *nsm_msg_context)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- EMSData *pEMS;
- U8 dcs = SMSAL_DEFAULT_DCS;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- pEMS = GetEMSDataForEdit(0, 1);
- if (nsm_msg_context->UCS2_count) /* JP : 20050625 for trackre issue 429 */
- {
- dcs = SMSAL_UCS2_DCS;
- }
- EMSSetDCS(pEMS, dcs); /* Set DCS before AddString : for Issue 429 */
- AddString(
- pEMS,
- (U8*) nsm_msg_context->textbuffer,
- (U16) pfnUnicodeStrlen((S8*) nsm_msg_context->textbuffer),
- NULL);
- }
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_entry_write_msg
- * DESCRIPTION
- * Entry write message.
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_entry_write_msg(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *guiBuffer = NULL;
- EMSData *pEMS;
- /*----------------------------------------------------------------*/
- /* Code Body */
- /*----------------------------------------------------------------*/
- /* disallow re-entering SMS application when there is a pending SMS job running in the background */
- if (mmi_frm_sms_check_action_pending())
- {
- DisplayPopup(
- (PU8) GetString(STR_SMS_MSG_NOT_READY_YET),
- IMG_GLOBAL_UNFINISHED,
- 1,
- MESSAGES_POPUP_TIME_OUT,
- (U8) ERROR_TONE);
- return;
- }
- EntryNewScreen(SCR_ID_MSG_WRITE, mmi_nsm2_exit_write_msg, mmi_msg_entry_write_msg, NULL);
- PRINT_INFORMATION_2((MMI_TRACE_G6_SMS, "*[SmsMoMtGuiInterface.c] mmi_msg_entry_write_msg*n"));
- AlmDisableSPOF();
- guiBuffer = GetCurrGuiBuffer(SCR_ID_MSG_WRITE);
- SetMessagesCurrScrnID(SCR_ID_MSG_WRITE);
- GetEMSDataForEdit(&pEMS, 0);
- SetMessagesCurrScrnID(SCR_ID_MSG_WRITE);
- /* Check previously picture present and set height and header fptr */
- if (g_nsm_msg_context.is_picmsg == TRUE)
- {
- g_nsm_msg_context.pic_height = MAX_NSM_PIC_HEIGHT;
- g_nsm_msg_context.header_fptr = mmi_nsm2_category275_draw_header;
- }
- else
- {
- g_nsm_msg_context.pic_height = 0;
- g_nsm_msg_context.header_fptr = NULL;
- }
- memset(g_nsm_msg_context.textbuffer, ' ', sizeof(g_nsm_msg_context.textbuffer));
- if ((*pEMS).textLength > 0)
- {
- pfnUnicodeStrncpy(
- (S8*) g_nsm_msg_context.textbuffer,
- (S8*) (*pEMS).textBuffer,
- (U32) (((*pEMS).textLength) / 2));
- }
- ShowCategoryNSM275Screen(
- STR_WMESSAGE_MENUENTRY,
- STR_GLOBAL_OPTIONS,
- IMG_SMS_COMMON_NOIMAGE,
- STR_GLOBAL_BACK,
- IMG_SMS_COMMON_NOIMAGE,
- INPUT_TYPE_ALPHANUMERIC_LOWERCASE | INPUT_TYPE_USE_ENCODING_BASED_LENGTH,
- g_nsm_msg_context.textbuffer,
- (g_nsm_msg_context.remaining_length + 1),
- 4,
- mmi_nsm2_category275_draw_tile,
- (U16) g_nsm_msg_context.pic_height,
- g_nsm_msg_context.header_fptr,
- 0,
- NULL,
- guiBuffer);
- SetKeyHandler(mmi_msg_entry_send_option, KEY_SEND, KEY_EVENT_UP);
- SetLeftSoftkeyFunction(mmi_msg_entry_option_write, KEY_EVENT_UP);
- SetCategory275RightSoftkeyFunction(mmi_msg_go_back_from_write_msg, KEY_EVENT_UP);
- }
- #else /* (defined(__MMI_SMART_MESSAGE_MO__) && !defined(__MMI_MESSAGES_EMS__)) */
- /*****************************************************************************
- * FUNCTION
- * mmi_msg_entry_write_msg
- * DESCRIPTION
- * Entry write message.
- * PARAMETERS
- * void
- * RETURNS
- * void
- *****************************************************************************/
- void mmi_msg_entry_write_msg(void)
- {
- /*----------------------------------------------------------------*/
- /* Local Variables */
- /*----------------------------------------------------------------*/
- U8 *guiBuffer = NULL;
- EMSData *pEMS;
- /*----------------------------------------------------------------*/
- /* Code Body */