⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 networkfunctions.c

📁 MTK6226修改平台UI的文件介绍
💻 C
📖 第 1 页 / 共 5 页
字号:
/*****************************************************************************
*  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:
 * ---------
 *  NetworkFunctions.c
 *
 * Project:
 * --------
 *  MAUI
 *
 * Description:
 * ------------
 *  
 *
 * Author:
 * -------
 *  
* $Log: NetworkFunctions.c,v $
* Revision 1.1.1.1  2007/05/11 08:53:35  zhouxiang
* no message
*
* Revision 1.2  2007/04/26 03:01:33  zhangruixian
* MT158-10
* Modification Author:zrx
* Date: 20070420
* Content: 增加朗元无线的手机狗和备份狗的功能
 *
 *==============================================================================
 *             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!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
 *==============================================================================
 *******************************************************************************/


#include "MMI_features.h"       /* Robin 1217 */
#include "StdC.h"
#include "L4Dr1.h"

#include "MiscFunctions.h"
#include "CustDataRes.h"
#include "ProtocolEvents.h"
#include "TimerEvents.h"
#include "SimDetectionGprot.h"
#include "SimDetectionDef.h"
#include "PixtelDataTypes.h"
#include "SimDetectionGexdcl.h"

#include "EventsDcl.h"
#include "QueueGProt.h"
#include "Unicodexdcl.h"
#include "ProtocolEvents.h"
#include "DebugInitDef.h"
#include "UCS2prot.h"
#include "TaskInit.h"
#include "wgui_status_icons.h"
#include "Globaldefs.h"
#include "IdleAppDef.h"
#include "ProfileGprots.h"
#include "gpioInc.h"
#include "KeyBrd.h"
#include "bootup.h"
#include "IdleAppProt.h"
#include "SimDetectionHwMapFile.h"
#include "NetworkSetupGProt.h"
#include "NetworkSetupDefs.h"
#include "CustResDef.h"
#include "SettingDefs.h"
#include "SettingsGdcl.h"
#include "PhoneSetupGprots.h"
#include "CallManagementGprot.h"

#ifdef _NETWORK_CIPHER_SUPPORT_
#include "mm_mmi_enums.h"
#endif 

#ifdef __MMI_IMPS__
#include "mmi_imps_gprot.h"
#endif 

#ifdef __MMI_POC__
#include "PoCGProt.h"
#endif 

#ifdef __HOMEZONE_SUPPORT__
#include "GSM7BitDefaultAlphabet.h"
#endif 

#ifdef WAP_SUPPORT
#include "wap_ps_struct.h"
#include "wapadp.h"
#endif /* WAP_SUPPORT */


extern void refresh_status_icon_display(void);  /* in Wgui_status_icons.c */
extern void BatteryStatusRsp(void *);           /* in PwronCharger.c */

#ifdef MMS_SUPPORT
extern void wap_plmn_number_indication_callback(const U8 *curPLMN);
#endif

#if ( (defined __MMI_EONS_SUPPORT__) && (defined MMI_ON_HARDWARE_P) )
extern void mmi_eons_get_opn_file_info_req(void);
extern void mmi_eons_get_pnn_record_req(U8);
extern void mmi_eons_read_opn_from_nvram(void);
extern U8 mmi_eons_check_if_plmn_present(U8 *);
extern kal_bool is_sim_replaced(void);
#endif /* ( (defined __MMI_EONS_SUPPORT__) && (defined MMI_ON_HARDWARE_P) ) */ 

extern S8 gHomePLMNNum[MAX_PLMN_LEN_MMI + 1];

U8 gGPRSStatusModified = 0;
U8 gSignalStrengthLevel = 0;

U8 gNWProviderName[MAX_LENGTH_DISPLAY_NAME * ENCODING_LENGTH];
U8 gPLMN[MAX_PLMN_LEN_MMI + 1];

U8 lastNwStatus = MMI_RAC_LIMITED_SERVICE;
U8 lastPLMN[MAX_PLMN_LEN_MMI + 1];

#ifdef __HOMEZONE_SUPPORT__
U8 *gHomezoneText = NULL;
#endif 

// zrx add begin 20070420
#ifdef __CAIVS_SUPPORT__
extern  char CaivsIMSI[20];
#endif
// zrx add end

/*****************************************************************************
 * FUNCTION
 *  InitNetWorkBootUpEventsCallBack
 * DESCRIPTION
 *  This function initializes all network related protocol handlers
 * PARAMETERS
 *  void
 * RETURNS
 *  void
 *****************************************************************************/
void InitNetWorkBootUpEventsCallBack(void)
{
    /*----------------------------------------------------------------*/
    /* Local Variables                                                */
    /*----------------------------------------------------------------*/

    /*----------------------------------------------------------------*/
    /* Code Body                                                      */
    /*----------------------------------------------------------------*/
    SetProtocolEventHandler(NetWorkAttachedIndication, PRT_NW_ATTACH_IND);
    SetProtocolEventHandler(NetWorkSignalLevelIndication, PRT_NW_RX_LEVEL_IND);
    SetProtocolEventHandler(NetWorkServiceTypeIndication, PRT_SERVICE_TYPE_IND);
    SetProtocolEventHandler(NumberOfPLMNSuported, PRT_PLMN_LIST_IND);
    SetProtocolEventHandler(RspToTestRoamingEnabled, PRT_GET_IMSI_RSP);
    SetProtocolEventHandler(BatteryStatusRsp, PRT_BATTERY_STATUS_IND);  /* not in this file */

#ifdef _NETWORK_CIPHER_SUPPORT_
    SetProtocolEventHandler(NetWorkCipherIndication, PRT_MMI_SMU_CIPHER_IND);
#endif 

#ifdef __MANUAL_MODE_NW_SEL__
    SetProtocolEventHandler(PLMNSelectionModeIndication, MSG_ID_MMI_NW_SEL_MODE_IND);
#endif 

#ifdef __MMI_GPRS_FEATURES__
    SetProtocolEventHandler(GPRSStatusUpdateIndication, PRT_MMI_PS_GPRS_STATUS_UPDATE_IND);
#endif 

#ifdef __HOMEZONE_SUPPORT__
    SetProtocolEventHandler(HomezoneStatusIndication, PRT_MMI_HZ_TAG_IND);
#endif 

    memset(gPLMN, 0, MAX_PLMN_LEN_MMI + 1);
}

/**************************************************************************
         API of Network Attachment
**************************************************************************/


/*****************************************************************************
 * FUNCTION
 *  NetWorkAttachedIndication
 * DESCRIPTION
 *  This function is a call back for MSG_ID_MMI_NW_ATTACH_IND
 * PARAMETERS
 *  inMsg       [?]     

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -