protocolwwaninstance.java

来自「270的linux说明」· Java 代码 · 共 139 行

JAVA
139
字号
/*

Copyright (c) 2008, Intel Corporation. 

All rights reserved.

 

Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:


    * Redistributions of source code must retain the above copyright notice, 
this list of conditions and the following disclaimer.

    * Redistributions in binary form must reproduce the above copyright notice, 
this list of conditions and the following disclaimer in the documentation and/or 
other materials provided with the distribution.

    * Neither the name of Intel Corporation nor the names of its contributors 
may be used to endorse or promote products derived from this software without 
specific prior written permission.

 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.

*/package com.intel.mobile.network;import com.intel.mobile.base.*;/** * The instance object for protocol WWAN. */public class ProtocolWwanInstance extends LinkProtocolInstance{    public final WwanEncryptionModeEnumArrayProperty    EncryptionModes  = null;    public final WwanEncryptionModeEnumProperty         EncryptionMode = null;    public final BoolProperty                           Encrypted = null;    public final BoolProperty                           DeviceLocked = null;    public final BoolProperty                           SimLoaded = null;    public final BoolProperty                           SimBlocked = null;    public final BoolProperty                           SimLocked = null;    public final BoolProperty                           SimPinInitialized = null;    public final UIntProperty                           SimCountdown = null;    public final IntProperty                            Rssi = null;    public final UIntProperty                           Channel = null;    public final ChannelStateEnumProperty               ChannelState = null;    public final RoamingStateEnumProperty               RoamingState = null;    public final UIntProperty                           DataTxBytes = null;    public final UIntProperty                           DataRxBytes = null;    public final ServiceIndicationEnumProperty          ServiceIndication = null;    public final CallStateEnumProperty                  CallState = null;    public final WwanPowerModeEnumProperty              PowerMode = null;    public final StringProperty                         CallerId = null;    public final WwanBandEnumProperty                   Band = null;    public final BoolProperty                           EmergencyMode = null;    public final BoolProperty                           NamActivated = null;    public final StringProperty                         PhoneNumber = null;    public final StringProperty                         MobileDirectoryNumber = null;    public final StringProperty                         Imsi = null;    public final CallCategoryEnumProperty               CallCategory = null;    public final IntProperty                            Temperature = null;    public final LinkQualityEnumProperty                LinkQuality = null;    public final DateTimeProperty                       SystemTime = null;    public final StringProperty                         Esn = null;    public final StringProperty                         Operator = null;    // Events    public EventProperty EnteringCoverage;    public EventProperty LeavingCoverage;    public EventProperty CallIncoming;    public EventProperty CallConnecting;    public EventProperty CallConnected;    public EventProperty CallDisconnected;    public EventProperty Reset;    public EventProperty EnteringPowerSave;    public EventProperty LeavingPowerSave;    // Constructor    protected ProtocolWwanInstance(long objRef) throws IntelMobileException    {        super(objRef);        init(objRef);    }    public boolean AnswerCall() throws IntelMobileException    {        return AnswerCallNative();    }    public boolean OriginateCall(String callNumber) throws IntelMobileException    {        return OriginateCallNative(callNumber);    }    public boolean HangupCall() throws IntelMobileException    {        return HangupCallNative();    }    public boolean EnableModem(boolean enabled) throws IntelMobileException    {        return EnableModemNative(enabled);    }    public boolean ConnectInternet() throws IntelMobileException    {        return ConnectInternetNative();    }    public boolean DisconnectInternet() throws IntelMobileException    {        return DisconnectInternetNative();    }    private native void init(long objRef) throws IntelMobileException;    private native boolean AnswerCallNative() throws IntelMobileException;    private native boolean OriginateCallNative(String callNumber) throws IntelMobileException;    private native boolean HangupCallNative() throws IntelMobileException;    private native boolean EnableModemNative(boolean enabled) throws IntelMobileException;    private native boolean ConnectInternetNative() throws IntelMobileException;    private native boolean DisconnectInternetNative() throws IntelMobileException;}

⌨️ 快捷键说明

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