javacommons/connectionmanager/javasrc.s60/com/nokia/mj/impl/connectionmanager/AccessPoint.java
/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
package com.nokia.mj.impl.connectionmanager;
import com.nokia.mj.impl.rt.support.*;
import com.nokia.mj.impl.utils.Uid;
/*
* JavaImplementation of AccessPoint class This class holds the application
* specific IAP/SNAP id and its type
*/
public class AccessPoint
{
public static int NAP_INITIAL = -1;
public static int NAP_ERR = 0;
public static int NAP_NONE = 1;
public static int NAP_SNAP = 2;
public static int NAP_IAP = 3;
public static int NAP_ONCE = 4;
public static int NAP_ASKALWAYS = 5;
public static int NAP_DEFAULT = 6;
private int iType;
private int iNapId;
/**
* default constructor when app mgr settings are not defined
*/
public AccessPoint()
{
iType = NAP_NONE;
iNapId = 0;
}
/**
* Constructor @param appUid Applcation suite Uid @param aType type of
* IAP/SNAP @param aId IAP/SNAP id
*/
public AccessPoint(int aType, int aId)
{
iType = aType;
iNapId = aId;
}
/**
* returns the type of access point @return type of IAP/SNAP Id
*/
public int getType()
{
return iType;
}
/**
* @return IAP/SNAP Id
*/
public int getNapId()
{
return iNapId;
}
public void setType(int aType)
{
iType = aType;
}
}